diff --git a/CHANGELOG.md b/CHANGELOG.md index b3241efd1f..2a944ead9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,11 @@ # v12.0.0a1-snapshot -Kubernetes API Version: 1.16.9 +Kubernetes API Version: 1.16.11 **API Change:** +- Resolve regression in metadata.managedFields handling in update/patch requests submitted by older API clients ([#91748](https://github.com/kubernetes/kubernetes/pull/91748), [@apelisse](https://github.com/apelisse)) [SIG API Machinery and Testing] +- Fix bug where sending a status update completely wipes managedFields for some types. ([#90033](https://github.com/kubernetes/kubernetes/pull/90033), [@apelisse](https://github.com/apelisse)) [SIG API Machinery and Testing] - The `MutatingWebhookConfiguration` and `ValidatingWebhookConfiguration` APIs have been promoted to `admissionregistration.k8s.io/v1`: - `failurePolicy` default changed from `Ignore` to `Fail` for v1 - `matchPolicy` default changed from `Exact` to `Equivalent` for v1 @@ -37,6 +39,36 @@ Kubernetes API Version: 1.16.9 - Property `conditions` in `apiextensions.v1beta1.CustomResourceDefinitionStatus` and `apiextensions.v1.CustomResourceDefinitionStatus` is now optional instead of required. ([#64996](https://github.com/kubernetes/kubernetes/pull/64996), [@roycaihw](https://github.com/roycaihw)) - When the status of a CustomResourceDefinition condition changes, its corresponding `lastTransitionTime` is now updated. ([#69655](https://github.com/kubernetes/kubernetes/pull/69655), [@CaoShuFeng](https://github.com/CaoShuFeng)) +**New Feature:** + +- Adds the ability to load kubeconfig from a dictionary [kubernetes-client/python-base#195](https://github.com/kubernetes-client/python-base/pull/195) +- Allow incluster to accept pass-in config [kubernetes-client/python-base#193](https://github.com/kubernetes-client/python-base/pull/193) +- Set expiration on token of incluster config and reload the token if it expires [kubernetes-client/python-base#191](https://github.com/kubernetes-client/python-base/pull/191) + +**Bug Fix:** + +- Fixes a bug in loading kubeconfig when there are no users in the config [kubernetes-client/python-base#198](https://github.com/kubernetes-client/python-base/pull/198) +- Retry expired watches [kubernetes-client/python-base#133](https://github.com/kubernetes-client/python-base/pull/133) + +**OpenAPI Generator Changes:** + +OpenAPI Generator has been updated to v4.3.0 from v3.3.4. Following are links to Python client related changes throughout the OpenAPI releases above v3.3.4 to v4.3.0: + +- [v4.3.0](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.3.0+label%3A%22Client%3A+Python%22) +- [v4.2.3](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.2.3+label%3A%22Client%3A+Python%22) +- [v4.2.2](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.2.2+label%3A%22Client%3A+Python%22) +- [v4.2.1](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.2.1+label%3A%22Client%3A+Python%22) +- [v4.2.0](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.2.0+label%3A%22Client%3A+Python%22) +- [v4.1.3](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.1.3+label%3A%22Client%3A+Python%22) +- [v4.1.2](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.1.2+label%3A%22Client%3A+Python%22) +- [v4.1.1](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.1.1+label%3A%22Client%3A+Python%22) +- [v4.1.0](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.1.0+label%3A%22Client%3A+Python%22) +- [v4.0.3](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.0.3+label%3A%22Client%3A+Python%22) +- [v4.0.2](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Amerged+is%3Apr+milestone%3A4.0.2+label%3A%22Client%3A+Python%22) +- [v4.0.1](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Apr+milestone%3A4.0.1+is%3Amerged+label%3A%22Client%3A+Python%22) +- [v4.0.0](https://github.com/OpenAPITools/openapi-generator/pulls?q=is%3Apr+milestone%3A4.0.0+is%3Amerged+label%3A%22Client%3A+Python%22) + + # v11.0.0 Kubernetes API Version: 1.15.10 @@ -423,4 +455,3 @@ be deprecated as and when Kubernetes version v1.15 gets deprecated. # v1.0.0-alpha1 Skipped because of a failed initial release. - diff --git a/kubernetes/.openapi-generator/COMMIT b/kubernetes/.openapi-generator/COMMIT index 768730d965..7badef3a89 100644 --- a/kubernetes/.openapi-generator/COMMIT +++ b/kubernetes/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit: v3.3.4 -Actual Commit: 2353d71d4b02be6dbabe25aac1a9e56eb3b812a2 +Requested Commit: v4.3.0 +Actual Commit: c224cf484b020a7f5997d883cf331715df3fb52a diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION index 2c6109e5bb..8191138914 100644 --- a/kubernetes/.openapi-generator/VERSION +++ b/kubernetes/.openapi-generator/VERSION @@ -1 +1 @@ -3.3.4 \ No newline at end of file +4.3.0 \ No newline at end of file diff --git a/kubernetes/.openapi-generator/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256 index 58003d5dc5..94a8c91a92 100644 --- a/kubernetes/.openapi-generator/swagger.json.sha256 +++ b/kubernetes/.openapi-generator/swagger.json.sha256 @@ -1 +1 @@ -c42abf3bdfe7d91346cc5b0972b1ef8c5de539671c8ffa1612ec63a14b9ee9d3 \ No newline at end of file +92a199ec5d6f1d4a6df0bbfe509b5bbd504bba8a817a2e6a4c60e8ba2a0049e8 \ No newline at end of file diff --git a/kubernetes/README.md b/kubernetes/README.md index 43394a7684..1ca0c3b5ea 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -14,7 +14,7 @@ Python 2.7 and 3.4+ ## Installation & Usage ### pip install -If the python package is hosted on Github, you can install directly from Github +If the python package is hosted on a repository, you can install directly using: ```sh pip install git+https://github.com/kubernetes-client/python.git @@ -23,7 +23,7 @@ pip install git+https://github.com/kubernetes-client/python.git Then import the package: ```python -import kubernetes.client +import kubernetes.client ``` ### Setuptools @@ -51,21 +51,28 @@ import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationApi->get_api_group: %s\n" % e) + ``` ## Documentation for API Endpoints @@ -648,10 +655,10 @@ Class | Method | HTTP request | Description *CoreV1Api* | [**replace_persistent_volume_status**](docs/CoreV1Api.md#replace_persistent_volume_status) | **PUT** /api/v1/persistentvolumes/{name}/status | *CustomObjectsApi* | [**create_cluster_custom_object**](docs/CustomObjectsApi.md#create_cluster_custom_object) | **POST** /apis/{group}/{version}/{plural} | *CustomObjectsApi* | [**create_namespaced_custom_object**](docs/CustomObjectsApi.md#create_namespaced_custom_object) | **POST** /apis/{group}/{version}/namespaces/{namespace}/{plural} | -*CustomObjectsApi* | [**delete_cluster_custom_object**](docs/CustomObjectsApi.md#delete_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural} | -*CustomObjectsApi* | [**delete_cluster_custom_object_0**](docs/CustomObjectsApi.md#delete_cluster_custom_object_0) | **DELETE** /apis/{group}/{version}/{plural}/{name} | -*CustomObjectsApi* | [**delete_namespaced_custom_object**](docs/CustomObjectsApi.md#delete_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | -*CustomObjectsApi* | [**delete_namespaced_custom_object_0**](docs/CustomObjectsApi.md#delete_namespaced_custom_object_0) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +*CustomObjectsApi* | [**delete_cluster_custom_object**](docs/CustomObjectsApi.md#delete_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural}/{name} | +*CustomObjectsApi* | [**delete_collection_cluster_custom_object**](docs/CustomObjectsApi.md#delete_collection_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural} | +*CustomObjectsApi* | [**delete_collection_namespaced_custom_object**](docs/CustomObjectsApi.md#delete_collection_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | +*CustomObjectsApi* | [**delete_namespaced_custom_object**](docs/CustomObjectsApi.md#delete_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | *CustomObjectsApi* | [**get_cluster_custom_object**](docs/CustomObjectsApi.md#get_cluster_custom_object) | **GET** /apis/{group}/{version}/{plural}/{name} | *CustomObjectsApi* | [**get_cluster_custom_object_scale**](docs/CustomObjectsApi.md#get_cluster_custom_object_scale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale | *CustomObjectsApi* | [**get_cluster_custom_object_status**](docs/CustomObjectsApi.md#get_cluster_custom_object_status) | **GET** /apis/{group}/{version}/{plural}/{name}/status | diff --git a/kubernetes/base b/kubernetes/base index 3ea80032c3..fb86b8acb6 160000 --- a/kubernetes/base +++ b/kubernetes/base @@ -1 +1 @@ -Subproject commit 3ea80032c3a1f3736a30f103e9c37bc154ad3a88 +Subproject commit fb86b8acb66830b098c691fa14f4e6edbf9f7317 diff --git a/kubernetes/client/__init__.py b/kubernetes/client/__init__.py index aff5b9c0ef..3159d9534d 100644 --- a/kubernetes/client/__init__.py +++ b/kubernetes/client/__init__.py @@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -89,6 +89,11 @@ # import ApiClient from kubernetes.client.api_client import ApiClient from kubernetes.client.configuration import Configuration +from kubernetes.client.exceptions import OpenApiException +from kubernetes.client.exceptions import ApiTypeError +from kubernetes.client.exceptions import ApiValueError +from kubernetes.client.exceptions import ApiKeyError +from kubernetes.client.exceptions import ApiException # import models into sdk package from kubernetes.client.models.admissionregistration_v1_service_reference import AdmissionregistrationV1ServiceReference from kubernetes.client.models.admissionregistration_v1_webhook_client_config import AdmissionregistrationV1WebhookClientConfig @@ -735,3 +740,4 @@ from kubernetes.client.models.v2beta2_resource_metric_source import V2beta2ResourceMetricSource from kubernetes.client.models.v2beta2_resource_metric_status import V2beta2ResourceMetricStatus from kubernetes.client.models.version_info import VersionInfo + diff --git a/kubernetes/client/api/admissionregistration_api.py b/kubernetes/client/api/admissionregistration_api.py index 6702890992..83fa6abf0c 100644 --- a/kubernetes/client/api/admissionregistration_api.py +++ b/kubernetes/client/api/admissionregistration_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AdmissionregistrationApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/admissionregistration_v1_api.py b/kubernetes/client/api/admissionregistration_v1_api.py index c322a057f9..2bb8900c99 100644 --- a/kubernetes/client/api/admissionregistration_v1_api.py +++ b/kubernetes/client/api/admissionregistration_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AdmissionregistrationV1Api(object): @@ -41,21 +45,24 @@ def create_mutating_webhook_configuration(self, body, **kwargs): # noqa: E501 >>> thread = api.create_mutating_webhook_configuration(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1MutatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1MutatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 def create_mutating_webhook_configuration_with_http_info(self, body, **kwargs): # noqa: E501 """create_mutating_webhook_configuration # noqa: E501 @@ -66,47 +73,65 @@ def create_mutating_webhook_configuration_with_http_info(self, body, **kwargs): >>> thread = api.create_mutating_webhook_configuration_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1MutatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1MutatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1MutatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,21 +174,24 @@ def create_validating_webhook_configuration(self, body, **kwargs): # noqa: E501 >>> thread = api.create_validating_webhook_configuration(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1ValidatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ValidatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_validating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_validating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_validating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 def create_validating_webhook_configuration_with_http_info(self, body, **kwargs): # noqa: E501 """create_validating_webhook_configuration # noqa: E501 @@ -174,47 +202,65 @@ def create_validating_webhook_configuration_with_http_info(self, body, **kwargs) >>> thread = api.create_validating_webhook_configuration_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1ValidatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ValidatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ValidatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_validating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -257,9 +303,8 @@ def delete_collection_mutating_webhook_configuration(self, **kwargs): # noqa: E >>> thread = api.delete_collection_mutating_webhook_configuration(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -270,18 +315,20 @@ def delete_collection_mutating_webhook_configuration(self, **kwargs): # noqa: E :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_mutating_webhook_configuration # noqa: E501 @@ -292,9 +339,8 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar >>> thread = api.delete_collection_mutating_webhook_configuration_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -305,24 +351,49 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_mutating_webhook_configuration" % key ) @@ -334,32 +405,28 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -367,8 +434,8 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -401,9 +468,8 @@ def delete_collection_validating_webhook_configuration(self, **kwargs): # noqa: >>> thread = api.delete_collection_validating_webhook_configuration(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -414,18 +480,20 @@ def delete_collection_validating_webhook_configuration(self, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 def delete_collection_validating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_validating_webhook_configuration # noqa: E501 @@ -436,9 +504,8 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw >>> thread = api.delete_collection_validating_webhook_configuration_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -449,24 +516,49 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_validating_webhook_configuration" % key ) @@ -478,32 +570,28 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -511,8 +599,8 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -545,7 +633,7 @@ def delete_mutating_webhook_configuration(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_mutating_webhook_configuration(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -553,16 +641,19 @@ def delete_mutating_webhook_configuration(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 """delete_mutating_webhook_configuration # noqa: E501 @@ -573,7 +664,7 @@ def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): >>> thread = api.delete_mutating_webhook_configuration_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -581,31 +672,52 @@ def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -614,15 +726,15 @@ def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -665,7 +777,7 @@ def delete_validating_webhook_configuration(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_validating_webhook_configuration(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -673,16 +785,19 @@ def delete_validating_webhook_configuration(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 """delete_validating_webhook_configuration # noqa: E501 @@ -693,7 +808,7 @@ def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs) >>> thread = api.delete_validating_webhook_configuration_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -701,31 +816,52 @@ def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_validating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -734,15 +870,15 @@ def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs) path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -785,17 +921,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -806,23 +945,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -873,7 +1026,7 @@ def list_mutating_webhook_configuration(self, **kwargs): # noqa: E501 >>> thread = api.list_mutating_webhook_configuration(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -883,16 +1036,19 @@ def list_mutating_webhook_configuration(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1MutatingWebhookConfigurationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 def list_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 """list_mutating_webhook_configuration # noqa: E501 @@ -903,7 +1059,7 @@ def list_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_mutating_webhook_configuration_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -913,22 +1069,45 @@ def list_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1MutatingWebhookConfigurationList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1MutatingWebhookConfigurationList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_mutating_webhook_configuration" % key ) @@ -940,23 +1119,23 @@ def list_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -997,7 +1176,7 @@ def list_validating_webhook_configuration(self, **kwargs): # noqa: E501 >>> thread = api.list_validating_webhook_configuration(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1007,16 +1186,19 @@ def list_validating_webhook_configuration(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ValidatingWebhookConfigurationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 def list_validating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 """list_validating_webhook_configuration # noqa: E501 @@ -1027,7 +1209,7 @@ def list_validating_webhook_configuration_with_http_info(self, **kwargs): # noq >>> thread = api.list_validating_webhook_configuration_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1037,22 +1219,45 @@ def list_validating_webhook_configuration_with_http_info(self, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ValidatingWebhookConfigurationList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ValidatingWebhookConfigurationList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_validating_webhook_configuration" % key ) @@ -1064,23 +1269,23 @@ def list_validating_webhook_configuration_with_http_info(self, **kwargs): # noq path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1121,23 +1326,26 @@ def patch_mutating_webhook_configuration(self, name, body, **kwargs): # noqa: E >>> thread = api.patch_mutating_webhook_configuration(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1MutatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_mutating_webhook_configuration # noqa: E501 @@ -1148,42 +1356,62 @@ def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwar >>> thread = api.patch_mutating_webhook_configuration_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1MutatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1MutatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_mutating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1192,13 +1420,13 @@ def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwar path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1245,23 +1473,26 @@ def patch_validating_webhook_configuration(self, name, body, **kwargs): # noqa: >>> thread = api.patch_validating_webhook_configuration(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ValidatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 def patch_validating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_validating_webhook_configuration # noqa: E501 @@ -1272,42 +1503,62 @@ def patch_validating_webhook_configuration_with_http_info(self, name, body, **kw >>> thread = api.patch_validating_webhook_configuration_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ValidatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ValidatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_validating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_validating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1316,13 +1567,13 @@ def patch_validating_webhook_configuration_with_http_info(self, name, body, **kw path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1369,21 +1620,24 @@ def read_mutating_webhook_configuration(self, name, **kwargs): # noqa: E501 >>> thread = api.read_mutating_webhook_configuration(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1MutatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 """read_mutating_webhook_configuration # noqa: E501 @@ -1394,36 +1648,54 @@ def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # >>> thread = api.read_mutating_webhook_configuration_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1MutatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1MutatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1432,11 +1704,11 @@ def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1477,21 +1749,24 @@ def read_validating_webhook_configuration(self, name, **kwargs): # noqa: E501 >>> thread = api.read_validating_webhook_configuration(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ValidatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 """read_validating_webhook_configuration # noqa: E501 @@ -1502,36 +1777,54 @@ def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): >>> thread = api.read_validating_webhook_configuration_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1ValidatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ValidatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_validating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1540,11 +1833,11 @@ def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1585,22 +1878,25 @@ def replace_mutating_webhook_configuration(self, name, body, **kwargs): # noqa: >>> thread = api.replace_mutating_webhook_configuration(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param V1MutatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1MutatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_mutating_webhook_configuration # noqa: E501 @@ -1611,41 +1907,60 @@ def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kw >>> thread = api.replace_mutating_webhook_configuration_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param V1MutatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1MutatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1MutatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_mutating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1654,11 +1969,11 @@ def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kw path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1701,22 +2016,25 @@ def replace_validating_webhook_configuration(self, name, body, **kwargs): # noq >>> thread = api.replace_validating_webhook_configuration(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param V1ValidatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ValidatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 def replace_validating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_validating_webhook_configuration # noqa: E501 @@ -1727,41 +2045,60 @@ def replace_validating_webhook_configuration_with_http_info(self, name, body, ** >>> thread = api.replace_validating_webhook_configuration_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param V1ValidatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ValidatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ValidatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_validating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_validating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1770,11 +2107,11 @@ def replace_validating_webhook_configuration_with_http_info(self, name, body, ** path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/admissionregistration_v1beta1_api.py b/kubernetes/client/api/admissionregistration_v1beta1_api.py index f3e82d7e08..7e38d03154 100644 --- a/kubernetes/client/api/admissionregistration_v1beta1_api.py +++ b/kubernetes/client/api/admissionregistration_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AdmissionregistrationV1beta1Api(object): @@ -41,21 +45,24 @@ def create_mutating_webhook_configuration(self, body, **kwargs): # noqa: E501 >>> thread = api.create_mutating_webhook_configuration(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1MutatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1MutatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_mutating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 def create_mutating_webhook_configuration_with_http_info(self, body, **kwargs): # noqa: E501 """create_mutating_webhook_configuration # noqa: E501 @@ -66,47 +73,65 @@ def create_mutating_webhook_configuration_with_http_info(self, body, **kwargs): >>> thread = api.create_mutating_webhook_configuration_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1MutatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1MutatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1MutatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,21 +174,24 @@ def create_validating_webhook_configuration(self, body, **kwargs): # noqa: E501 >>> thread = api.create_validating_webhook_configuration(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1ValidatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ValidatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_validating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_validating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_validating_webhook_configuration_with_http_info(body, **kwargs) # noqa: E501 def create_validating_webhook_configuration_with_http_info(self, body, **kwargs): # noqa: E501 """create_validating_webhook_configuration # noqa: E501 @@ -174,47 +202,65 @@ def create_validating_webhook_configuration_with_http_info(self, body, **kwargs) >>> thread = api.create_validating_webhook_configuration_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1ValidatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ValidatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ValidatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_validating_webhook_configuration`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -257,9 +303,8 @@ def delete_collection_mutating_webhook_configuration(self, **kwargs): # noqa: E >>> thread = api.delete_collection_mutating_webhook_configuration(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -270,18 +315,20 @@ def delete_collection_mutating_webhook_configuration(self, **kwargs): # noqa: E :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_mutating_webhook_configuration # noqa: E501 @@ -292,9 +339,8 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar >>> thread = api.delete_collection_mutating_webhook_configuration_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -305,24 +351,49 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_mutating_webhook_configuration" % key ) @@ -334,32 +405,28 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -367,8 +434,8 @@ def delete_collection_mutating_webhook_configuration_with_http_info(self, **kwar local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -401,9 +468,8 @@ def delete_collection_validating_webhook_configuration(self, **kwargs): # noqa: >>> thread = api.delete_collection_validating_webhook_configuration(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -414,18 +480,20 @@ def delete_collection_validating_webhook_configuration(self, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 def delete_collection_validating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_validating_webhook_configuration # noqa: E501 @@ -436,9 +504,8 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw >>> thread = api.delete_collection_validating_webhook_configuration_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -449,24 +516,49 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_validating_webhook_configuration" % key ) @@ -478,32 +570,28 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -511,8 +599,8 @@ def delete_collection_validating_webhook_configuration_with_http_info(self, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -545,7 +633,7 @@ def delete_mutating_webhook_configuration(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_mutating_webhook_configuration(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -553,16 +641,19 @@ def delete_mutating_webhook_configuration(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 """delete_mutating_webhook_configuration # noqa: E501 @@ -573,7 +664,7 @@ def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): >>> thread = api.delete_mutating_webhook_configuration_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -581,31 +672,52 @@ def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -614,15 +726,15 @@ def delete_mutating_webhook_configuration_with_http_info(self, name, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -665,7 +777,7 @@ def delete_validating_webhook_configuration(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_validating_webhook_configuration(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -673,16 +785,19 @@ def delete_validating_webhook_configuration(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 """delete_validating_webhook_configuration # noqa: E501 @@ -693,7 +808,7 @@ def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs) >>> thread = api.delete_validating_webhook_configuration_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -701,31 +816,52 @@ def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_validating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -734,15 +870,15 @@ def delete_validating_webhook_configuration_with_http_info(self, name, **kwargs) path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -785,17 +921,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -806,23 +945,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -873,7 +1026,7 @@ def list_mutating_webhook_configuration(self, **kwargs): # noqa: E501 >>> thread = api.list_mutating_webhook_configuration(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -883,16 +1036,19 @@ def list_mutating_webhook_configuration(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1MutatingWebhookConfigurationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_mutating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 def list_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 """list_mutating_webhook_configuration # noqa: E501 @@ -903,7 +1059,7 @@ def list_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_mutating_webhook_configuration_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -913,22 +1069,45 @@ def list_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1MutatingWebhookConfigurationList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1MutatingWebhookConfigurationList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_mutating_webhook_configuration" % key ) @@ -940,23 +1119,23 @@ def list_mutating_webhook_configuration_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -997,7 +1176,7 @@ def list_validating_webhook_configuration(self, **kwargs): # noqa: E501 >>> thread = api.list_validating_webhook_configuration(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1007,16 +1186,19 @@ def list_validating_webhook_configuration(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ValidatingWebhookConfigurationList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_validating_webhook_configuration_with_http_info(**kwargs) # noqa: E501 def list_validating_webhook_configuration_with_http_info(self, **kwargs): # noqa: E501 """list_validating_webhook_configuration # noqa: E501 @@ -1027,7 +1209,7 @@ def list_validating_webhook_configuration_with_http_info(self, **kwargs): # noq >>> thread = api.list_validating_webhook_configuration_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1037,22 +1219,45 @@ def list_validating_webhook_configuration_with_http_info(self, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ValidatingWebhookConfigurationList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ValidatingWebhookConfigurationList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_validating_webhook_configuration" % key ) @@ -1064,23 +1269,23 @@ def list_validating_webhook_configuration_with_http_info(self, **kwargs): # noq path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1121,23 +1326,26 @@ def patch_mutating_webhook_configuration(self, name, body, **kwargs): # noqa: E >>> thread = api.patch_mutating_webhook_configuration(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1MutatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_mutating_webhook_configuration # noqa: E501 @@ -1148,42 +1356,62 @@ def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwar >>> thread = api.patch_mutating_webhook_configuration_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1MutatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1MutatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_mutating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1192,13 +1420,13 @@ def patch_mutating_webhook_configuration_with_http_info(self, name, body, **kwar path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1245,23 +1473,26 @@ def patch_validating_webhook_configuration(self, name, body, **kwargs): # noqa: >>> thread = api.patch_validating_webhook_configuration(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ValidatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 def patch_validating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_validating_webhook_configuration # noqa: E501 @@ -1272,42 +1503,62 @@ def patch_validating_webhook_configuration_with_http_info(self, name, body, **kw >>> thread = api.patch_validating_webhook_configuration_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1ValidatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ValidatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_validating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_validating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1316,13 +1567,13 @@ def patch_validating_webhook_configuration_with_http_info(self, name, body, **kw path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1369,21 +1620,24 @@ def read_mutating_webhook_configuration(self, name, **kwargs): # noqa: E501 >>> thread = api.read_mutating_webhook_configuration(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1MutatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_mutating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 """read_mutating_webhook_configuration # noqa: E501 @@ -1394,36 +1648,54 @@ def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # >>> thread = api.read_mutating_webhook_configuration_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1MutatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1MutatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1432,11 +1704,11 @@ def read_mutating_webhook_configuration_with_http_info(self, name, **kwargs): # path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1477,21 +1749,24 @@ def read_validating_webhook_configuration(self, name, **kwargs): # noqa: E501 >>> thread = api.read_validating_webhook_configuration(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ValidatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_validating_webhook_configuration_with_http_info(name, **kwargs) # noqa: E501 def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): # noqa: E501 """read_validating_webhook_configuration # noqa: E501 @@ -1502,36 +1777,54 @@ def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): >>> thread = api.read_validating_webhook_configuration_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1ValidatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ValidatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_validating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1540,11 +1833,11 @@ def read_validating_webhook_configuration_with_http_info(self, name, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1585,22 +1878,25 @@ def replace_mutating_webhook_configuration(self, name, body, **kwargs): # noqa: >>> thread = api.replace_mutating_webhook_configuration(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param V1beta1MutatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1MutatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_mutating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_mutating_webhook_configuration # noqa: E501 @@ -1611,41 +1907,60 @@ def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kw >>> thread = api.replace_mutating_webhook_configuration_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the MutatingWebhookConfiguration (required) :param V1beta1MutatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1MutatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1MutatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_mutating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_mutating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_mutating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_mutating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1654,11 +1969,11 @@ def replace_mutating_webhook_configuration_with_http_info(self, name, body, **kw path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1701,22 +2016,25 @@ def replace_validating_webhook_configuration(self, name, body, **kwargs): # noq >>> thread = api.replace_validating_webhook_configuration(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param V1beta1ValidatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ValidatingWebhookConfiguration If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_validating_webhook_configuration_with_http_info(name, body, **kwargs) # noqa: E501 def replace_validating_webhook_configuration_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_validating_webhook_configuration # noqa: E501 @@ -1727,41 +2045,60 @@ def replace_validating_webhook_configuration_with_http_info(self, name, body, ** >>> thread = api.replace_validating_webhook_configuration_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ValidatingWebhookConfiguration (required) :param V1beta1ValidatingWebhookConfiguration body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ValidatingWebhookConfiguration + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ValidatingWebhookConfiguration, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_validating_webhook_configuration" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_validating_webhook_configuration`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_validating_webhook_configuration`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_validating_webhook_configuration`") # noqa: E501 collection_formats = {} @@ -1770,11 +2107,11 @@ def replace_validating_webhook_configuration_with_http_info(self, name, body, ** path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/apiextensions_api.py b/kubernetes/client/api/apiextensions_api.py index df78d2975e..293c45934b 100644 --- a/kubernetes/client/api/apiextensions_api.py +++ b/kubernetes/client/api/apiextensions_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ApiextensionsApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/apiextensions_v1_api.py b/kubernetes/client/api/apiextensions_v1_api.py index 676e267f3b..89f98d1a3c 100644 --- a/kubernetes/client/api/apiextensions_v1_api.py +++ b/kubernetes/client/api/apiextensions_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ApiextensionsV1Api(object): @@ -41,21 +45,24 @@ def create_custom_resource_definition(self, body, **kwargs): # noqa: E501 >>> thread = api.create_custom_resource_definition(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_custom_resource_definition_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_custom_resource_definition_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_custom_resource_definition_with_http_info(body, **kwargs) # noqa: E501 def create_custom_resource_definition_with_http_info(self, body, **kwargs): # noqa: E501 """create_custom_resource_definition # noqa: E501 @@ -66,47 +73,65 @@ def create_custom_resource_definition_with_http_info(self, body, **kwargs): # n >>> thread = api.create_custom_resource_definition_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_custom_resource_definition`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,9 +174,8 @@ def delete_collection_custom_resource_definition(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_custom_resource_definition(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -162,18 +186,20 @@ def delete_collection_custom_resource_definition(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_custom_resource_definition # noqa: E501 @@ -184,9 +210,8 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): >>> thread = api.delete_collection_custom_resource_definition_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -197,24 +222,49 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_custom_resource_definition" % key ) @@ -226,32 +276,28 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -259,8 +305,8 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -293,7 +339,7 @@ def delete_custom_resource_definition(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_custom_resource_definition(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -301,16 +347,19 @@ def delete_custom_resource_definition(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 def delete_custom_resource_definition_with_http_info(self, name, **kwargs): # noqa: E501 """delete_custom_resource_definition # noqa: E501 @@ -321,7 +370,7 @@ def delete_custom_resource_definition_with_http_info(self, name, **kwargs): # n >>> thread = api.delete_custom_resource_definition_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -329,31 +378,52 @@ def delete_custom_resource_definition_with_http_info(self, name, **kwargs): # n :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_custom_resource_definition`") # noqa: E501 collection_formats = {} @@ -362,15 +432,15 @@ def delete_custom_resource_definition_with_http_info(self, name, **kwargs): # n path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_custom_resource_definition(self, **kwargs): # noqa: E501 >>> thread = api.list_custom_resource_definition(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_custom_resource_definition(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1CustomResourceDefinitionList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 def list_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E501 """list_custom_resource_definition # noqa: E501 @@ -531,7 +621,7 @@ def list_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E50 >>> thread = api.list_custom_resource_definition_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1CustomResourceDefinitionList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1CustomResourceDefinitionList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_custom_resource_definition" % key ) @@ -568,23 +681,23 @@ def list_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E50 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_custom_resource_definition(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_custom_resource_definition(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_custom_resource_definition # noqa: E501 @@ -652,42 +768,62 @@ def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): >>> thread = api.patch_custom_resource_definition_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,23 +885,26 @@ def patch_custom_resource_definition_status(self, name, body, **kwargs): # noqa >>> thread = api.patch_custom_resource_definition_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 def patch_custom_resource_definition_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_custom_resource_definition_status # noqa: E501 @@ -776,42 +915,62 @@ def patch_custom_resource_definition_status_with_http_info(self, name, body, **k >>> thread = api.patch_custom_resource_definition_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_custom_resource_definition_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition_status`") # noqa: E501 collection_formats = {} @@ -820,13 +979,13 @@ def patch_custom_resource_definition_status_with_http_info(self, name, body, **k path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -873,21 +1032,24 @@ def read_custom_resource_definition(self, name, **kwargs): # noqa: E501 >>> thread = api.read_custom_resource_definition(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 def read_custom_resource_definition_with_http_info(self, name, **kwargs): # noqa: E501 """read_custom_resource_definition # noqa: E501 @@ -898,36 +1060,54 @@ def read_custom_resource_definition_with_http_info(self, name, **kwargs): # noq >>> thread = api.read_custom_resource_definition_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_custom_resource_definition`") # noqa: E501 collection_formats = {} @@ -936,11 +1116,11 @@ def read_custom_resource_definition_with_http_info(self, name, **kwargs): # noq path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -981,19 +1161,22 @@ def read_custom_resource_definition_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_custom_resource_definition_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_custom_resource_definition_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_custom_resource_definition_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_custom_resource_definition_status_with_http_info(name, **kwargs) # noqa: E501 def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_custom_resource_definition_status # noqa: E501 @@ -1004,34 +1187,50 @@ def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): >>> thread = api.read_custom_resource_definition_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_custom_resource_definition_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_custom_resource_definition_status`") # noqa: E501 collection_formats = {} @@ -1040,7 +1239,7 @@ def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1081,22 +1280,25 @@ def replace_custom_resource_definition(self, name, body, **kwargs): # noqa: E50 >>> thread = api.replace_custom_resource_definition(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param V1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_custom_resource_definition # noqa: E501 @@ -1107,41 +1309,60 @@ def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs >>> thread = api.replace_custom_resource_definition_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param V1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition`") # noqa: E501 collection_formats = {} @@ -1150,11 +1371,11 @@ def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1197,22 +1418,25 @@ def replace_custom_resource_definition_status(self, name, body, **kwargs): # no >>> thread = api.replace_custom_resource_definition_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param V1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 def replace_custom_resource_definition_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_custom_resource_definition_status # noqa: E501 @@ -1223,41 +1447,60 @@ def replace_custom_resource_definition_status_with_http_info(self, name, body, * >>> thread = api.replace_custom_resource_definition_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param V1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_custom_resource_definition_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition_status`") # noqa: E501 collection_formats = {} @@ -1266,11 +1509,11 @@ def replace_custom_resource_definition_status_with_http_info(self, name, body, * path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/apiextensions_v1beta1_api.py b/kubernetes/client/api/apiextensions_v1beta1_api.py index 222dfd4e60..9b86d763e6 100644 --- a/kubernetes/client/api/apiextensions_v1beta1_api.py +++ b/kubernetes/client/api/apiextensions_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ApiextensionsV1beta1Api(object): @@ -41,21 +45,24 @@ def create_custom_resource_definition(self, body, **kwargs): # noqa: E501 >>> thread = api.create_custom_resource_definition(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_custom_resource_definition_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_custom_resource_definition_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_custom_resource_definition_with_http_info(body, **kwargs) # noqa: E501 def create_custom_resource_definition_with_http_info(self, body, **kwargs): # noqa: E501 """create_custom_resource_definition # noqa: E501 @@ -66,47 +73,65 @@ def create_custom_resource_definition_with_http_info(self, body, **kwargs): # n >>> thread = api.create_custom_resource_definition_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_custom_resource_definition`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,9 +174,8 @@ def delete_collection_custom_resource_definition(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_custom_resource_definition(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -162,18 +186,20 @@ def delete_collection_custom_resource_definition(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_custom_resource_definition # noqa: E501 @@ -184,9 +210,8 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): >>> thread = api.delete_collection_custom_resource_definition_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -197,24 +222,49 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_custom_resource_definition" % key ) @@ -226,32 +276,28 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -259,8 +305,8 @@ def delete_collection_custom_resource_definition_with_http_info(self, **kwargs): local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -293,7 +339,7 @@ def delete_custom_resource_definition(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_custom_resource_definition(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -301,16 +347,19 @@ def delete_custom_resource_definition(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 def delete_custom_resource_definition_with_http_info(self, name, **kwargs): # noqa: E501 """delete_custom_resource_definition # noqa: E501 @@ -321,7 +370,7 @@ def delete_custom_resource_definition_with_http_info(self, name, **kwargs): # n >>> thread = api.delete_custom_resource_definition_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -329,31 +378,52 @@ def delete_custom_resource_definition_with_http_info(self, name, **kwargs): # n :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_custom_resource_definition`") # noqa: E501 collection_formats = {} @@ -362,15 +432,15 @@ def delete_custom_resource_definition_with_http_info(self, name, **kwargs): # n path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_custom_resource_definition(self, **kwargs): # noqa: E501 >>> thread = api.list_custom_resource_definition(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_custom_resource_definition(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CustomResourceDefinitionList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_custom_resource_definition_with_http_info(**kwargs) # noqa: E501 def list_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E501 """list_custom_resource_definition # noqa: E501 @@ -531,7 +621,7 @@ def list_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E50 >>> thread = api.list_custom_resource_definition_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1CustomResourceDefinitionList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CustomResourceDefinitionList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_custom_resource_definition" % key ) @@ -568,23 +681,23 @@ def list_custom_resource_definition_with_http_info(self, **kwargs): # noqa: E50 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_custom_resource_definition(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_custom_resource_definition(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_custom_resource_definition # noqa: E501 @@ -652,42 +768,62 @@ def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): >>> thread = api.patch_custom_resource_definition_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_custom_resource_definition_with_http_info(self, name, body, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,23 +885,26 @@ def patch_custom_resource_definition_status(self, name, body, **kwargs): # noqa >>> thread = api.patch_custom_resource_definition_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 def patch_custom_resource_definition_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_custom_resource_definition_status # noqa: E501 @@ -776,42 +915,62 @@ def patch_custom_resource_definition_status_with_http_info(self, name, body, **k >>> thread = api.patch_custom_resource_definition_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_custom_resource_definition_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_custom_resource_definition_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_custom_resource_definition_status`") # noqa: E501 collection_formats = {} @@ -820,13 +979,13 @@ def patch_custom_resource_definition_status_with_http_info(self, name, body, **k path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -873,21 +1032,24 @@ def read_custom_resource_definition(self, name, **kwargs): # noqa: E501 >>> thread = api.read_custom_resource_definition(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_custom_resource_definition_with_http_info(name, **kwargs) # noqa: E501 def read_custom_resource_definition_with_http_info(self, name, **kwargs): # noqa: E501 """read_custom_resource_definition # noqa: E501 @@ -898,36 +1060,54 @@ def read_custom_resource_definition_with_http_info(self, name, **kwargs): # noq >>> thread = api.read_custom_resource_definition_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_custom_resource_definition`") # noqa: E501 collection_formats = {} @@ -936,11 +1116,11 @@ def read_custom_resource_definition_with_http_info(self, name, **kwargs): # noq path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -981,19 +1161,22 @@ def read_custom_resource_definition_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_custom_resource_definition_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_custom_resource_definition_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_custom_resource_definition_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_custom_resource_definition_status_with_http_info(name, **kwargs) # noqa: E501 def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_custom_resource_definition_status # noqa: E501 @@ -1004,34 +1187,50 @@ def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): >>> thread = api.read_custom_resource_definition_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_custom_resource_definition_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_custom_resource_definition_status`") # noqa: E501 collection_formats = {} @@ -1040,7 +1239,7 @@ def read_custom_resource_definition_status_with_http_info(self, name, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1081,22 +1280,25 @@ def replace_custom_resource_definition(self, name, body, **kwargs): # noqa: E50 >>> thread = api.replace_custom_resource_definition(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param V1beta1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_custom_resource_definition_with_http_info(name, body, **kwargs) # noqa: E501 def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_custom_resource_definition # noqa: E501 @@ -1107,41 +1309,60 @@ def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs >>> thread = api.replace_custom_resource_definition_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param V1beta1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_custom_resource_definition" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition`") # noqa: E501 collection_formats = {} @@ -1150,11 +1371,11 @@ def replace_custom_resource_definition_with_http_info(self, name, body, **kwargs path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1197,22 +1418,25 @@ def replace_custom_resource_definition_status(self, name, body, **kwargs): # no >>> thread = api.replace_custom_resource_definition_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param V1beta1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CustomResourceDefinition If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_custom_resource_definition_status_with_http_info(name, body, **kwargs) # noqa: E501 def replace_custom_resource_definition_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_custom_resource_definition_status # noqa: E501 @@ -1223,41 +1447,60 @@ def replace_custom_resource_definition_status_with_http_info(self, name, body, * >>> thread = api.replace_custom_resource_definition_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CustomResourceDefinition (required) :param V1beta1CustomResourceDefinition body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CustomResourceDefinition + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CustomResourceDefinition, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_custom_resource_definition_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_custom_resource_definition_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_custom_resource_definition_status`") # noqa: E501 collection_formats = {} @@ -1266,11 +1509,11 @@ def replace_custom_resource_definition_status_with_http_info(self, name, body, * path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/apiregistration_api.py b/kubernetes/client/api/apiregistration_api.py index 123b3f4a83..bb8ed70e8f 100644 --- a/kubernetes/client/api/apiregistration_api.py +++ b/kubernetes/client/api/apiregistration_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ApiregistrationApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/apiregistration_v1_api.py b/kubernetes/client/api/apiregistration_v1_api.py index d4b554f9ce..1fd3d3fcf1 100644 --- a/kubernetes/client/api/apiregistration_v1_api.py +++ b/kubernetes/client/api/apiregistration_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ApiregistrationV1Api(object): @@ -41,21 +45,24 @@ def create_api_service(self, body, **kwargs): # noqa: E501 >>> thread = api.create_api_service(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 def create_api_service_with_http_info(self, body, **kwargs): # noqa: E501 """create_api_service # noqa: E501 @@ -66,47 +73,65 @@ def create_api_service_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_api_service_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_api_service`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,7 +174,7 @@ def delete_api_service(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_api_service(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -157,16 +182,19 @@ def delete_api_service(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 """delete_api_service # noqa: E501 @@ -177,7 +205,7 @@ def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_api_service_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :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,31 +213,52 @@ def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_api_service`") # noqa: E501 collection_formats = {} @@ -218,15 +267,15 @@ def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -269,9 +318,8 @@ def delete_collection_api_service(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_api_service(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -282,18 +330,20 @@ def delete_collection_api_service(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_api_service # noqa: E501 @@ -304,9 +354,8 @@ def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_api_service_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -317,24 +366,49 @@ def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_api_service" % key ) @@ -346,32 +420,28 @@ def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -379,8 +449,8 @@ def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_api_service(self, **kwargs): # noqa: E501 >>> thread = api.list_api_service(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_api_service(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIServiceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_api_service_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_api_service_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_api_service_with_http_info(**kwargs) # noqa: E501 def list_api_service_with_http_info(self, **kwargs): # noqa: E501 """list_api_service # noqa: E501 @@ -531,7 +621,7 @@ def list_api_service_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_api_service_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_api_service_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1APIServiceList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIServiceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_api_service" % key ) @@ -568,23 +681,23 @@ def list_api_service_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_api_service(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_api_service(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 def patch_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_api_service # noqa: E501 @@ -652,42 +768,62 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_api_service_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_api_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_api_service`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,23 +885,26 @@ def patch_api_service_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_api_service_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 def patch_api_service_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_api_service_status # noqa: E501 @@ -776,42 +915,62 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): # noqa >>> thread = api.patch_api_service_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_api_service_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_api_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_api_service_status`") # noqa: E501 collection_formats = {} @@ -820,13 +979,13 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): # noqa path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -873,21 +1032,24 @@ def read_api_service(self, name, **kwargs): # noqa: E501 >>> thread = api.read_api_service(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 def read_api_service_with_http_info(self, name, **kwargs): # noqa: E501 """read_api_service # noqa: E501 @@ -898,36 +1060,54 @@ def read_api_service_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_api_service_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_api_service`") # noqa: E501 collection_formats = {} @@ -936,11 +1116,11 @@ def read_api_service_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -981,19 +1161,22 @@ def read_api_service_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_api_service_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 def read_api_service_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_api_service_status # noqa: E501 @@ -1004,34 +1187,50 @@ def read_api_service_status_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_api_service_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_api_service_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_api_service_status`") # noqa: E501 collection_formats = {} @@ -1040,7 +1239,7 @@ def read_api_service_status_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1081,22 +1280,25 @@ def replace_api_service(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_api_service(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param V1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 def replace_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_api_service # noqa: E501 @@ -1107,41 +1309,60 @@ def replace_api_service_with_http_info(self, name, body, **kwargs): # noqa: E50 >>> thread = api.replace_api_service_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param V1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_api_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_api_service`") # noqa: E501 collection_formats = {} @@ -1150,11 +1371,11 @@ def replace_api_service_with_http_info(self, name, body, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1197,22 +1418,25 @@ def replace_api_service_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_api_service_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param V1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 def replace_api_service_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_api_service_status # noqa: E501 @@ -1223,41 +1447,60 @@ def replace_api_service_status_with_http_info(self, name, body, **kwargs): # no >>> thread = api.replace_api_service_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param V1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_api_service_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_api_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_api_service_status`") # noqa: E501 collection_formats = {} @@ -1266,11 +1509,11 @@ def replace_api_service_status_with_http_info(self, name, body, **kwargs): # no path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/apiregistration_v1beta1_api.py b/kubernetes/client/api/apiregistration_v1beta1_api.py index e36b0fc5b9..2eb06243e1 100644 --- a/kubernetes/client/api/apiregistration_v1beta1_api.py +++ b/kubernetes/client/api/apiregistration_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ApiregistrationV1beta1Api(object): @@ -41,21 +45,24 @@ def create_api_service(self, body, **kwargs): # noqa: E501 >>> thread = api.create_api_service(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_api_service_with_http_info(body, **kwargs) # noqa: E501 def create_api_service_with_http_info(self, body, **kwargs): # noqa: E501 """create_api_service # noqa: E501 @@ -66,47 +73,65 @@ def create_api_service_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_api_service_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_api_service`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,7 +174,7 @@ def delete_api_service(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_api_service(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -157,16 +182,19 @@ def delete_api_service(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_api_service_with_http_info(name, **kwargs) # noqa: E501 def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 """delete_api_service # noqa: E501 @@ -177,7 +205,7 @@ def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_api_service_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :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,31 +213,52 @@ def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_api_service`") # noqa: E501 collection_formats = {} @@ -218,15 +267,15 @@ def delete_api_service_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -269,9 +318,8 @@ def delete_collection_api_service(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_api_service(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -282,18 +330,20 @@ def delete_collection_api_service(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_api_service_with_http_info(**kwargs) # noqa: E501 def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_api_service # noqa: E501 @@ -304,9 +354,8 @@ def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_api_service_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -317,24 +366,49 @@ def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_api_service" % key ) @@ -346,32 +420,28 @@ def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -379,8 +449,8 @@ def delete_collection_api_service_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_api_service(self, **kwargs): # noqa: E501 >>> thread = api.list_api_service(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_api_service(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1APIServiceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_api_service_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_api_service_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_api_service_with_http_info(**kwargs) # noqa: E501 def list_api_service_with_http_info(self, **kwargs): # noqa: E501 """list_api_service # noqa: E501 @@ -531,7 +621,7 @@ def list_api_service_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_api_service_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_api_service_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1APIServiceList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1APIServiceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_api_service" % key ) @@ -568,23 +681,23 @@ def list_api_service_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_api_service(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_api_service(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_api_service_with_http_info(name, body, **kwargs) # noqa: E501 def patch_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_api_service # noqa: E501 @@ -652,42 +768,62 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_api_service_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_api_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_api_service`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,23 +885,26 @@ def patch_api_service_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_api_service_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 def patch_api_service_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_api_service_status # noqa: E501 @@ -776,42 +915,62 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): # noqa >>> thread = api.patch_api_service_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_api_service_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_api_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_api_service_status`") # noqa: E501 collection_formats = {} @@ -820,13 +979,13 @@ def patch_api_service_status_with_http_info(self, name, body, **kwargs): # noqa path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -873,21 +1032,24 @@ def read_api_service(self, name, **kwargs): # noqa: E501 >>> thread = api.read_api_service(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_api_service_with_http_info(name, **kwargs) # noqa: E501 def read_api_service_with_http_info(self, name, **kwargs): # noqa: E501 """read_api_service # noqa: E501 @@ -898,36 +1060,54 @@ def read_api_service_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_api_service_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_api_service`") # noqa: E501 collection_formats = {} @@ -936,11 +1116,11 @@ def read_api_service_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -981,19 +1161,22 @@ def read_api_service_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_api_service_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_api_service_status_with_http_info(name, **kwargs) # noqa: E501 def read_api_service_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_api_service_status # noqa: E501 @@ -1004,34 +1187,50 @@ def read_api_service_status_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_api_service_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_api_service_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_api_service_status`") # noqa: E501 collection_formats = {} @@ -1040,7 +1239,7 @@ def read_api_service_status_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1081,22 +1280,25 @@ def replace_api_service(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_api_service(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_api_service_with_http_info(name, body, **kwargs) # noqa: E501 def replace_api_service_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_api_service # noqa: E501 @@ -1107,41 +1309,60 @@ def replace_api_service_with_http_info(self, name, body, **kwargs): # noqa: E50 >>> thread = api.replace_api_service_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_api_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_api_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_api_service`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_api_service`") # noqa: E501 collection_formats = {} @@ -1150,11 +1371,11 @@ def replace_api_service_with_http_info(self, name, body, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1197,22 +1418,25 @@ def replace_api_service_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_api_service_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1APIService If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_api_service_status_with_http_info(name, body, **kwargs) # noqa: E501 def replace_api_service_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_api_service_status # noqa: E501 @@ -1223,41 +1447,60 @@ def replace_api_service_status_with_http_info(self, name, body, **kwargs): # no >>> thread = api.replace_api_service_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the APIService (required) :param V1beta1APIService body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1APIService + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1APIService, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_api_service_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_api_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_api_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_api_service_status`") # noqa: E501 collection_formats = {} @@ -1266,11 +1509,11 @@ def replace_api_service_status_with_http_info(self, name, body, **kwargs): # no path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/apis_api.py b/kubernetes/client/api/apis_api.py index 23522f8749..22bd88c337 100644 --- a/kubernetes/client/api/apis_api.py +++ b/kubernetes/client/api/apis_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ApisApi(object): @@ -41,17 +45,20 @@ def get_api_versions(self, **kwargs): # noqa: E501 >>> thread = api.get_api_versions(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroupList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_versions_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_versions_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_versions_with_http_info(**kwargs) # noqa: E501 def get_api_versions_with_http_info(self, **kwargs): # noqa: E501 """get_api_versions # noqa: E501 @@ -62,23 +69,37 @@ def get_api_versions_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_versions_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroupList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroupList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_versions" % key ) diff --git a/kubernetes/client/api/apps_api.py b/kubernetes/client/api/apps_api.py index 9f9f5760b0..80825d0c52 100644 --- a/kubernetes/client/api/apps_api.py +++ b/kubernetes/client/api/apps_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AppsApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/apps_v1_api.py b/kubernetes/client/api/apps_v1_api.py index 2458df21d8..b49e57b34d 100644 --- a/kubernetes/client/api/apps_v1_api.py +++ b/kubernetes/client/api/apps_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AppsV1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_controller_revision(self, namespace, body, **kwargs): # n >>> thread = api.create_namespaced_controller_revision(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_controller_revision_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_controller_revision # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, >>> thread = api.create_namespaced_controller_revision_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,22 +183,25 @@ def create_namespaced_daemon_set(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_daemon_set(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_daemon_set # noqa: E501 @@ -183,41 +212,60 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_daemon_set_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -226,11 +274,11 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -273,22 +321,25 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_deployment(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_deployment # noqa: E501 @@ -299,41 +350,60 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -342,11 +412,11 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -389,22 +459,25 @@ def create_namespaced_replica_set(self, namespace, body, **kwargs): # noqa: E50 >>> thread = api.create_namespaced_replica_set(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_replica_set # noqa: E501 @@ -415,41 +488,60 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs >>> thread = api.create_namespaced_replica_set_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -458,11 +550,11 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -505,22 +597,25 @@ def create_namespaced_stateful_set(self, namespace, body, **kwargs): # noqa: E5 >>> thread = api.create_namespaced_stateful_set(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_stateful_set # noqa: E501 @@ -531,41 +626,60 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg >>> thread = api.create_namespaced_stateful_set_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -574,11 +688,11 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -621,10 +735,9 @@ def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): >>> thread = api.delete_collection_namespaced_controller_revision(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -635,18 +748,20 @@ def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_controller_revision # noqa: E501 @@ -657,10 +772,9 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp >>> thread = api.delete_collection_namespaced_controller_revision_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -671,33 +785,59 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -706,32 +846,28 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -739,8 +875,8 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -773,10 +909,9 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_daemon_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -787,18 +922,20 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_daemon_set # noqa: E501 @@ -809,10 +946,9 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw >>> thread = api.delete_collection_namespaced_daemon_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -823,33 +959,59 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -858,32 +1020,28 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -891,8 +1049,8 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -925,10 +1083,9 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_deployment(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -939,18 +1096,20 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_deployment # noqa: E501 @@ -961,10 +1120,9 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -975,33 +1133,59 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -1010,32 +1194,28 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1043,8 +1223,8 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1077,10 +1257,9 @@ def delete_collection_namespaced_replica_set(self, namespace, **kwargs): # noqa >>> thread = api.delete_collection_namespaced_replica_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1091,18 +1270,20 @@ def delete_collection_namespaced_replica_set(self, namespace, **kwargs): # noqa :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_replica_set # noqa: E501 @@ -1113,10 +1294,9 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1127,33 +1307,59 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -1162,32 +1368,28 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1195,8 +1397,8 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1229,10 +1431,9 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): # noq >>> thread = api.delete_collection_namespaced_stateful_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1243,18 +1444,20 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): # noq :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_stateful_set # noqa: E501 @@ -1265,10 +1468,9 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** >>> thread = api.delete_collection_namespaced_stateful_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1279,33 +1481,59 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -1314,32 +1542,28 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1347,8 +1571,8 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1381,7 +1605,7 @@ def delete_namespaced_controller_revision(self, name, namespace, **kwargs): # n >>> thread = api.delete_namespaced_controller_revision(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1390,16 +1614,19 @@ def delete_namespaced_controller_revision(self, name, namespace, **kwargs): # n :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_controller_revision # noqa: E501 @@ -1410,7 +1637,7 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, >>> thread = api.delete_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1419,35 +1646,57 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -1458,15 +1707,15 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1509,7 +1758,7 @@ def delete_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_daemon_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1518,16 +1767,19 @@ def delete_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_daemon_set # noqa: E501 @@ -1538,7 +1790,7 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1547,35 +1799,57 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -1586,15 +1860,15 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1637,7 +1911,7 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_deployment(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1646,16 +1920,19 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_deployment # noqa: E501 @@ -1666,7 +1943,7 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1675,35 +1952,57 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -1714,15 +2013,15 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1765,7 +2064,7 @@ def delete_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E50 >>> thread = api.delete_namespaced_replica_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1774,16 +2073,19 @@ def delete_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E50 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_replica_set # noqa: E501 @@ -1794,7 +2096,7 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs >>> thread = api.delete_namespaced_replica_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1803,35 +2105,57 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -1842,15 +2166,15 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1893,7 +2217,7 @@ def delete_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.delete_namespaced_stateful_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1902,16 +2226,19 @@ def delete_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E5 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_stateful_set # noqa: E501 @@ -1922,7 +2249,7 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg >>> thread = api.delete_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1931,35 +2258,57 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -1970,15 +2319,15 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2021,17 +2370,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -2042,23 +2394,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -2109,7 +2475,7 @@ def list_controller_revision_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_controller_revision_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2119,16 +2485,19 @@ def list_controller_revision_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ControllerRevisionList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_controller_revision_for_all_namespaces # noqa: E501 @@ -2139,7 +2508,7 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): >>> thread = api.list_controller_revision_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2149,22 +2518,45 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ControllerRevisionList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ControllerRevisionList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_controller_revision_for_all_namespaces" % key ) @@ -2176,23 +2568,23 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2233,7 +2625,7 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_daemon_set_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2243,16 +2635,19 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DaemonSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_daemon_set_for_all_namespaces # noqa: E501 @@ -2263,7 +2658,7 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_daemon_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2273,22 +2668,45 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1DaemonSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DaemonSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_daemon_set_for_all_namespaces" % key ) @@ -2300,23 +2718,23 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2357,7 +2775,7 @@ def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_deployment_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2367,16 +2785,19 @@ def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DeploymentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_deployment_for_all_namespaces # noqa: E501 @@ -2387,7 +2808,7 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_deployment_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2397,22 +2818,45 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1DeploymentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DeploymentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_deployment_for_all_namespaces" % key ) @@ -2424,23 +2868,23 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2481,7 +2925,7 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E50 >>> thread = api.list_namespaced_controller_revision(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2492,16 +2936,19 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ControllerRevisionList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_controller_revision # noqa: E501 @@ -2512,7 +2959,7 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs >>> thread = api.list_namespaced_controller_revision_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2523,31 +2970,55 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ControllerRevisionList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ControllerRevisionList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -2556,23 +3027,23 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2613,7 +3084,7 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_daemon_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2624,16 +3095,19 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DaemonSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_daemon_set # noqa: E501 @@ -2644,7 +3118,7 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_daemon_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2655,31 +3129,55 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1DaemonSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DaemonSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -2688,23 +3186,23 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2745,7 +3243,7 @@ def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_deployment(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2756,16 +3254,19 @@ def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DeploymentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_deployment # noqa: E501 @@ -2776,7 +3277,7 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_deployment_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2787,31 +3288,55 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1DeploymentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DeploymentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -2820,23 +3345,23 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2877,7 +3402,7 @@ def list_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_replica_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2888,16 +3413,19 @@ def list_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_replica_set # noqa: E501 @@ -2908,7 +3436,7 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # no >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2919,31 +3447,55 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # no :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ReplicaSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicaSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -2952,23 +3504,23 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3009,7 +3561,7 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_stateful_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3020,16 +3572,19 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StatefulSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_stateful_set # noqa: E501 @@ -3040,7 +3595,7 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # n >>> thread = api.list_namespaced_stateful_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3051,31 +3606,55 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # n :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1StatefulSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StatefulSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -3084,23 +3663,23 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3141,7 +3720,7 @@ def list_replica_set_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_replica_set_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3151,16 +3730,19 @@ def list_replica_set_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_replica_set_for_all_namespaces # noqa: E501 @@ -3171,7 +3753,7 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3181,22 +3763,45 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ReplicaSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicaSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_replica_set_for_all_namespaces" % key ) @@ -3208,23 +3813,23 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3265,7 +3870,7 @@ def list_stateful_set_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_stateful_set_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3275,16 +3880,19 @@ def list_stateful_set_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StatefulSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_stateful_set_for_all_namespaces # noqa: E501 @@ -3295,7 +3903,7 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa >>> thread = api.list_stateful_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3305,22 +3913,45 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1StatefulSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StatefulSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_stateful_set_for_all_namespaces" % key ) @@ -3332,23 +3963,23 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3389,24 +4020,27 @@ def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_controller_revision(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_controller_revision # noqa: E501 @@ -3417,47 +4051,68 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b >>> thread = api.patch_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -3468,13 +4123,13 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3521,24 +4176,27 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_daemon_set # noqa: E501 @@ -3549,47 +4207,68 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -3600,13 +4279,13 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3653,24 +4332,27 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_daemon_set_status # noqa: E501 @@ -3681,47 +4363,68 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} @@ -3732,13 +4435,13 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3785,24 +4488,27 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_deployment(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment # noqa: E501 @@ -3813,47 +4519,68 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -3864,13 +4591,13 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3917,24 +4644,27 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # >>> thread = api.patch_namespaced_deployment_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment_scale # noqa: E501 @@ -3945,47 +4675,68 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body >>> thread = api.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -3996,13 +4747,13 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4049,24 +4800,27 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment_status # noqa: E501 @@ -4077,47 +4831,68 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -4128,13 +4903,13 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4181,24 +4956,27 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): # noqa >>> thread = api.patch_namespaced_replica_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replica_set # noqa: E501 @@ -4209,47 +4987,68 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k >>> thread = api.patch_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -4260,13 +5059,13 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4313,24 +5112,27 @@ def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_replica_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replica_set_scale # noqa: E501 @@ -4341,47 +5143,68 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} @@ -4392,13 +5215,13 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4445,24 +5268,27 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_replica_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replica_set_status # noqa: E501 @@ -4473,47 +5299,68 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo >>> thread = api.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} @@ -4524,13 +5371,13 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4577,24 +5424,27 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): # noq >>> thread = api.patch_namespaced_stateful_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_stateful_set # noqa: E501 @@ -4605,47 +5455,68 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** >>> thread = api.patch_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -4656,13 +5527,13 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4709,24 +5580,27 @@ def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_stateful_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_stateful_set_scale # noqa: E501 @@ -4737,47 +5611,68 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo >>> thread = api.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} @@ -4788,13 +5683,13 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4841,24 +5736,27 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_stateful_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_stateful_set_status # noqa: E501 @@ -4869,47 +5767,68 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b >>> thread = api.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} @@ -4920,13 +5839,13 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4973,22 +5892,25 @@ def read_namespaced_controller_revision(self, name, namespace, **kwargs): # noq >>> thread = api.read_namespaced_controller_revision(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_controller_revision # noqa: E501 @@ -4999,41 +5921,60 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** >>> thread = api.read_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -5044,11 +5985,11 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5089,22 +6030,25 @@ def read_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_daemon_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_daemon_set # noqa: E501 @@ -5115,41 +6059,60 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -5160,11 +6123,11 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5205,20 +6168,23 @@ def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_daemon_set_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_daemon_set_status # noqa: E501 @@ -5229,39 +6195,56 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_daemon_set_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} @@ -5272,7 +6255,7 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5313,22 +6296,25 @@ def read_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_deployment(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment # noqa: E501 @@ -5339,41 +6325,60 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -5384,11 +6389,11 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5429,20 +6434,23 @@ def read_namespaced_deployment_scale(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_deployment_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment_scale # noqa: E501 @@ -5453,39 +6461,56 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa >>> thread = api.read_namespaced_deployment_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -5496,7 +6521,7 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5537,20 +6562,23 @@ def read_namespaced_deployment_status(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_deployment_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment_status # noqa: E501 @@ -5561,39 +6589,56 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -5604,7 +6649,7 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5645,22 +6690,25 @@ def read_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_replica_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replica_set # noqa: E501 @@ -5671,41 +6719,60 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_replica_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -5716,11 +6783,11 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5761,20 +6828,23 @@ def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_replica_set_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replica_set_scale # noqa: E501 @@ -5785,39 +6855,56 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_replica_set_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} @@ -5828,7 +6915,7 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5869,20 +6956,23 @@ def read_namespaced_replica_set_status(self, name, namespace, **kwargs): # noqa >>> thread = api.read_namespaced_replica_set_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replica_set_status # noqa: E501 @@ -5893,39 +6983,56 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k >>> thread = api.read_namespaced_replica_set_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} @@ -5936,7 +7043,7 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5977,22 +7084,25 @@ def read_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_stateful_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_stateful_set # noqa: E501 @@ -6003,41 +7113,60 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) >>> thread = api.read_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -6048,11 +7177,11 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6093,20 +7222,23 @@ def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): # noqa >>> thread = api.read_namespaced_stateful_set_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_stateful_set_scale # noqa: E501 @@ -6117,39 +7249,56 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k >>> thread = api.read_namespaced_stateful_set_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} @@ -6160,7 +7309,7 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6201,20 +7350,23 @@ def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): # noq >>> thread = api.read_namespaced_stateful_set_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_stateful_set_status # noqa: E501 @@ -6225,39 +7377,56 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** >>> thread = api.read_namespaced_stateful_set_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} @@ -6268,7 +7437,7 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6309,23 +7478,26 @@ def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs >>> thread = api.replace_namespaced_controller_revision(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_controller_revision # noqa: E501 @@ -6336,46 +7508,66 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -6386,11 +7578,11 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6433,23 +7625,26 @@ def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_daemon_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_daemon_set # noqa: E501 @@ -6460,46 +7655,66 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -6510,11 +7725,11 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6557,23 +7772,26 @@ def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_daemon_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_daemon_set_status # noqa: E501 @@ -6584,46 +7802,66 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} @@ -6634,11 +7872,11 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6681,23 +7919,26 @@ def replace_namespaced_deployment(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_deployment(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment # noqa: E501 @@ -6708,46 +7949,66 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -6758,11 +8019,11 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6805,23 +8066,26 @@ def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_deployment_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment_scale # noqa: E501 @@ -6832,46 +8096,66 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo >>> thread = api.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -6882,11 +8166,11 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6929,23 +8213,26 @@ def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment_status # noqa: E501 @@ -6956,46 +8243,66 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -7006,11 +8313,11 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7053,23 +8360,26 @@ def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): # no >>> thread = api.replace_namespaced_replica_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replica_set # noqa: E501 @@ -7080,46 +8390,66 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * >>> thread = api.replace_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -7130,11 +8460,11 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7177,23 +8507,26 @@ def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_replica_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replica_set_scale # noqa: E501 @@ -7204,46 +8537,66 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} @@ -7254,11 +8607,11 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7301,23 +8654,26 @@ def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs) >>> thread = api.replace_namespaced_replica_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replica_set_status # noqa: E501 @@ -7328,46 +8684,66 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} @@ -7378,11 +8754,11 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7425,23 +8801,26 @@ def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): # n >>> thread = api.replace_namespaced_stateful_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_stateful_set # noqa: E501 @@ -7452,46 +8831,66 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, >>> thread = api.replace_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -7502,11 +8901,11 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7549,23 +8948,26 @@ def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs) >>> thread = api.replace_namespaced_stateful_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_stateful_set_scale # noqa: E501 @@ -7576,46 +8978,66 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} @@ -7626,11 +9048,11 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7673,23 +9095,26 @@ def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs >>> thread = api.replace_namespaced_stateful_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_stateful_set_status # noqa: E501 @@ -7700,46 +9125,66 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} @@ -7750,11 +9195,11 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/apps_v1beta1_api.py b/kubernetes/client/api/apps_v1beta1_api.py index 51ea651902..5296f69201 100644 --- a/kubernetes/client/api/apps_v1beta1_api.py +++ b/kubernetes/client/api/apps_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AppsV1beta1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_controller_revision(self, namespace, body, **kwargs): # n >>> thread = api.create_namespaced_controller_revision(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_controller_revision_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_controller_revision # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, >>> thread = api.create_namespaced_controller_revision_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,22 +183,25 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_deployment(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_deployment # noqa: E501 @@ -183,41 +212,60 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: AppsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -226,11 +274,11 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -273,23 +321,26 @@ def create_namespaced_deployment_rollback(self, name, namespace, body, **kwargs) >>> thread = api.create_namespaced_deployment_rollback(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DeploymentRollback (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1DeploymentRollback body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """create_namespaced_deployment_rollback # noqa: E501 @@ -300,46 +351,66 @@ def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, >>> thread = api.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DeploymentRollback (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1DeploymentRollback body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment_rollback" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback`") # noqa: E501 collection_formats = {} @@ -350,11 +421,11 @@ def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -397,22 +468,25 @@ def create_namespaced_stateful_set(self, namespace, body, **kwargs): # noqa: E5 >>> thread = api.create_namespaced_stateful_set(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_stateful_set # noqa: E501 @@ -423,41 +497,60 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg >>> thread = api.create_namespaced_stateful_set_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -466,11 +559,11 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -513,10 +606,9 @@ def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): >>> thread = api.delete_collection_namespaced_controller_revision(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -527,18 +619,20 @@ def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_controller_revision # noqa: E501 @@ -549,10 +643,9 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp >>> thread = api.delete_collection_namespaced_controller_revision_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -563,33 +656,59 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -598,32 +717,28 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -631,8 +746,8 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -665,10 +780,9 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_deployment(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -679,18 +793,20 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_deployment # noqa: E501 @@ -701,10 +817,9 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -715,33 +830,59 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -750,32 +891,28 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -783,8 +920,8 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -817,10 +954,9 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): # noq >>> thread = api.delete_collection_namespaced_stateful_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -831,18 +967,20 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): # noq :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_stateful_set # noqa: E501 @@ -853,10 +991,9 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** >>> thread = api.delete_collection_namespaced_stateful_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -867,33 +1004,59 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -902,32 +1065,28 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -935,8 +1094,8 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -969,7 +1128,7 @@ def delete_namespaced_controller_revision(self, name, namespace, **kwargs): # n >>> thread = api.delete_namespaced_controller_revision(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -978,16 +1137,19 @@ def delete_namespaced_controller_revision(self, name, namespace, **kwargs): # n :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_controller_revision # noqa: E501 @@ -998,7 +1160,7 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, >>> thread = api.delete_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1007,35 +1169,57 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -1046,15 +1230,15 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1097,7 +1281,7 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_deployment(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1106,16 +1290,19 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_deployment # noqa: E501 @@ -1126,7 +1313,7 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1135,35 +1322,57 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -1174,15 +1383,15 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1225,7 +1434,7 @@ def delete_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.delete_namespaced_stateful_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1234,16 +1443,19 @@ def delete_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E5 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_stateful_set # noqa: E501 @@ -1254,7 +1466,7 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg >>> thread = api.delete_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1263,35 +1475,57 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -1302,15 +1536,15 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1353,17 +1587,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -1374,23 +1611,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -1441,7 +1692,7 @@ def list_controller_revision_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_controller_revision_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1451,16 +1702,19 @@ def list_controller_revision_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ControllerRevisionList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_controller_revision_for_all_namespaces # noqa: E501 @@ -1471,7 +1725,7 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): >>> thread = api.list_controller_revision_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1481,22 +1735,45 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ControllerRevisionList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ControllerRevisionList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_controller_revision_for_all_namespaces" % key ) @@ -1508,23 +1785,23 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1565,7 +1842,7 @@ def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_deployment_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1575,16 +1852,19 @@ def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_deployment_for_all_namespaces # noqa: E501 @@ -1595,7 +1875,7 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_deployment_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1605,22 +1885,45 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: AppsV1beta1DeploymentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1DeploymentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_deployment_for_all_namespaces" % key ) @@ -1632,23 +1935,23 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1689,7 +1992,7 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E50 >>> thread = api.list_namespaced_controller_revision(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1700,16 +2003,19 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ControllerRevisionList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_controller_revision # noqa: E501 @@ -1720,7 +2026,7 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs >>> thread = api.list_namespaced_controller_revision_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1731,31 +2037,55 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ControllerRevisionList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ControllerRevisionList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -1764,23 +2094,23 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1821,7 +2151,7 @@ def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_deployment(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1832,16 +2162,19 @@ def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_deployment # noqa: E501 @@ -1852,7 +2185,7 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_deployment_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1863,31 +2196,55 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: AppsV1beta1DeploymentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1DeploymentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -1896,23 +2253,23 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1953,7 +2310,7 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_stateful_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1964,16 +2321,19 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StatefulSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_stateful_set # noqa: E501 @@ -1984,7 +2344,7 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # n >>> thread = api.list_namespaced_stateful_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1995,31 +2355,55 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # n :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1StatefulSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StatefulSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -2028,23 +2412,23 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2085,7 +2469,7 @@ def list_stateful_set_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_stateful_set_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2095,16 +2479,19 @@ def list_stateful_set_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StatefulSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_stateful_set_for_all_namespaces # noqa: E501 @@ -2115,7 +2502,7 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa >>> thread = api.list_stateful_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2125,22 +2512,45 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1StatefulSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StatefulSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_stateful_set_for_all_namespaces" % key ) @@ -2152,23 +2562,23 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2209,24 +2619,27 @@ def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_controller_revision(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_controller_revision # noqa: E501 @@ -2237,47 +2650,68 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b >>> thread = api.patch_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -2288,13 +2722,13 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2341,24 +2775,27 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_deployment(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment # noqa: E501 @@ -2369,47 +2806,68 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: AppsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -2420,13 +2878,13 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2473,24 +2931,27 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # >>> thread = api.patch_namespaced_deployment_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment_scale # noqa: E501 @@ -2501,47 +2962,68 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body >>> thread = api.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: AppsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -2552,13 +3034,13 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2605,24 +3087,27 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment_status # noqa: E501 @@ -2633,47 +3118,68 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: AppsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -2684,13 +3190,13 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2737,24 +3243,27 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): # noq >>> thread = api.patch_namespaced_stateful_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_stateful_set # noqa: E501 @@ -2765,47 +3274,68 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** >>> thread = api.patch_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -2816,13 +3346,13 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2869,24 +3399,27 @@ def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_stateful_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_stateful_set_scale # noqa: E501 @@ -2897,47 +3430,68 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo >>> thread = api.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: AppsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} @@ -2948,13 +3502,13 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3001,24 +3555,27 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_stateful_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_stateful_set_status # noqa: E501 @@ -3029,47 +3586,68 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b >>> thread = api.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} @@ -3080,13 +3658,13 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3133,22 +3711,25 @@ def read_namespaced_controller_revision(self, name, namespace, **kwargs): # noq >>> thread = api.read_namespaced_controller_revision(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_controller_revision # noqa: E501 @@ -3159,41 +3740,60 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** >>> thread = api.read_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -3204,11 +3804,11 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -3249,22 +3849,25 @@ def read_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_deployment(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment # noqa: E501 @@ -3275,41 +3878,60 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: AppsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -3320,11 +3942,11 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -3365,20 +3987,23 @@ def read_namespaced_deployment_scale(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_deployment_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment_scale # noqa: E501 @@ -3389,39 +4014,56 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa >>> thread = api.read_namespaced_deployment_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -3432,7 +4074,7 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3473,20 +4115,23 @@ def read_namespaced_deployment_status(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_deployment_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment_status # noqa: E501 @@ -3497,39 +4142,56 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -3540,7 +4202,7 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3581,22 +4243,25 @@ def read_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_stateful_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_stateful_set # noqa: E501 @@ -3607,41 +4272,60 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) >>> thread = api.read_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -3652,11 +4336,11 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -3697,20 +4381,23 @@ def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): # noqa >>> thread = api.read_namespaced_stateful_set_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_stateful_set_scale # noqa: E501 @@ -3721,39 +4408,56 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k >>> thread = api.read_namespaced_stateful_set_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: AppsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} @@ -3764,7 +4468,7 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3805,20 +4509,23 @@ def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): # noq >>> thread = api.read_namespaced_stateful_set_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_stateful_set_status # noqa: E501 @@ -3829,39 +4536,56 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** >>> thread = api.read_namespaced_stateful_set_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} @@ -3872,7 +4596,7 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3913,23 +4637,26 @@ def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs >>> thread = api.replace_namespaced_controller_revision(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_controller_revision # noqa: E501 @@ -3940,46 +4667,66 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -3990,11 +4737,11 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4037,23 +4784,26 @@ def replace_namespaced_deployment(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_deployment(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment # noqa: E501 @@ -4064,46 +4814,66 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: AppsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -4114,11 +4884,11 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4161,23 +4931,26 @@ def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_deployment_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment_scale # noqa: E501 @@ -4188,46 +4961,66 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo >>> thread = api.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: AppsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -4238,11 +5031,11 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4285,23 +5078,26 @@ def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment_status # noqa: E501 @@ -4312,46 +5108,66 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: AppsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -4362,11 +5178,11 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4409,23 +5225,26 @@ def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): # n >>> thread = api.replace_namespaced_stateful_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_stateful_set # noqa: E501 @@ -4436,46 +5255,66 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, >>> thread = api.replace_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -4486,11 +5325,11 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4533,23 +5372,26 @@ def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs) >>> thread = api.replace_namespaced_stateful_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: AppsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_stateful_set_scale # noqa: E501 @@ -4560,46 +5402,66 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param AppsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: AppsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(AppsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} @@ -4610,11 +5472,11 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -4657,23 +5519,26 @@ def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs >>> thread = api.replace_namespaced_stateful_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_stateful_set_status # noqa: E501 @@ -4684,46 +5549,66 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} @@ -4734,11 +5619,11 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/apps_v1beta2_api.py b/kubernetes/client/api/apps_v1beta2_api.py index ffcb6512d9..f284ee6936 100644 --- a/kubernetes/client/api/apps_v1beta2_api.py +++ b/kubernetes/client/api/apps_v1beta2_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AppsV1beta2Api(object): @@ -41,22 +45,25 @@ def create_namespaced_controller_revision(self, namespace, body, **kwargs): # n >>> thread = api.create_namespaced_controller_revision(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_controller_revision_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_controller_revision_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_controller_revision # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, >>> thread = api.create_namespaced_controller_revision_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_controller_revision_with_http_info(self, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,22 +183,25 @@ def create_namespaced_daemon_set(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_daemon_set(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_daemon_set # noqa: E501 @@ -183,41 +212,60 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_daemon_set_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -226,11 +274,11 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -273,22 +321,25 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_deployment(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_deployment # noqa: E501 @@ -299,41 +350,60 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -342,11 +412,11 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -389,22 +459,25 @@ def create_namespaced_replica_set(self, namespace, body, **kwargs): # noqa: E50 >>> thread = api.create_namespaced_replica_set(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_replica_set # noqa: E501 @@ -415,41 +488,60 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs >>> thread = api.create_namespaced_replica_set_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -458,11 +550,11 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -505,22 +597,25 @@ def create_namespaced_stateful_set(self, namespace, body, **kwargs): # noqa: E5 >>> thread = api.create_namespaced_stateful_set(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_stateful_set_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_stateful_set # noqa: E501 @@ -531,41 +626,60 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg >>> thread = api.create_namespaced_stateful_set_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -574,11 +688,11 @@ def create_namespaced_stateful_set_with_http_info(self, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -621,10 +735,9 @@ def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): >>> thread = api.delete_collection_namespaced_controller_revision(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -635,18 +748,20 @@ def delete_collection_namespaced_controller_revision(self, namespace, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_controller_revision # noqa: E501 @@ -657,10 +772,9 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp >>> thread = api.delete_collection_namespaced_controller_revision_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -671,33 +785,59 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -706,32 +846,28 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -739,8 +875,8 @@ def delete_collection_namespaced_controller_revision_with_http_info(self, namesp local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -773,10 +909,9 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_daemon_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -787,18 +922,20 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_daemon_set # noqa: E501 @@ -809,10 +946,9 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw >>> thread = api.delete_collection_namespaced_daemon_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -823,33 +959,59 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -858,32 +1020,28 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -891,8 +1049,8 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -925,10 +1083,9 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_deployment(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -939,18 +1096,20 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_deployment # noqa: E501 @@ -961,10 +1120,9 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -975,33 +1133,59 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -1010,32 +1194,28 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1043,8 +1223,8 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1077,10 +1257,9 @@ def delete_collection_namespaced_replica_set(self, namespace, **kwargs): # noqa >>> thread = api.delete_collection_namespaced_replica_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1091,18 +1270,20 @@ def delete_collection_namespaced_replica_set(self, namespace, **kwargs): # noqa :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_replica_set # noqa: E501 @@ -1113,10 +1294,9 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1127,33 +1307,59 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -1162,32 +1368,28 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1195,8 +1397,8 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1229,10 +1431,9 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): # noq >>> thread = api.delete_collection_namespaced_stateful_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1243,18 +1444,20 @@ def delete_collection_namespaced_stateful_set(self, namespace, **kwargs): # noq :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_stateful_set # noqa: E501 @@ -1265,10 +1468,9 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** >>> thread = api.delete_collection_namespaced_stateful_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1279,33 +1481,59 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -1314,32 +1542,28 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1347,8 +1571,8 @@ def delete_collection_namespaced_stateful_set_with_http_info(self, namespace, ** local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1381,7 +1605,7 @@ def delete_namespaced_controller_revision(self, name, namespace, **kwargs): # n >>> thread = api.delete_namespaced_controller_revision(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1390,16 +1614,19 @@ def delete_namespaced_controller_revision(self, name, namespace, **kwargs): # n :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_controller_revision # noqa: E501 @@ -1410,7 +1637,7 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, >>> thread = api.delete_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1419,35 +1646,57 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -1458,15 +1707,15 @@ def delete_namespaced_controller_revision_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1509,7 +1758,7 @@ def delete_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_daemon_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1518,16 +1767,19 @@ def delete_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_daemon_set # noqa: E501 @@ -1538,7 +1790,7 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1547,35 +1799,57 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -1586,15 +1860,15 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1637,7 +1911,7 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_deployment(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1646,16 +1920,19 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_deployment # noqa: E501 @@ -1666,7 +1943,7 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1675,35 +1952,57 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -1714,15 +2013,15 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1765,7 +2064,7 @@ def delete_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E50 >>> thread = api.delete_namespaced_replica_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1774,16 +2073,19 @@ def delete_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E50 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_replica_set # noqa: E501 @@ -1794,7 +2096,7 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs >>> thread = api.delete_namespaced_replica_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1803,35 +2105,57 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -1842,15 +2166,15 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1893,7 +2217,7 @@ def delete_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.delete_namespaced_stateful_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1902,16 +2226,19 @@ def delete_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E5 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_stateful_set # noqa: E501 @@ -1922,7 +2249,7 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg >>> thread = api.delete_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1931,35 +2258,57 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -1970,15 +2319,15 @@ def delete_namespaced_stateful_set_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2021,17 +2370,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -2042,23 +2394,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -2109,7 +2475,7 @@ def list_controller_revision_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_controller_revision_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2119,16 +2485,19 @@ def list_controller_revision_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ControllerRevisionList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_controller_revision_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_controller_revision_for_all_namespaces # noqa: E501 @@ -2139,7 +2508,7 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): >>> thread = api.list_controller_revision_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2149,22 +2518,45 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2ControllerRevisionList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ControllerRevisionList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_controller_revision_for_all_namespaces" % key ) @@ -2176,23 +2568,23 @@ def list_controller_revision_for_all_namespaces_with_http_info(self, **kwargs): path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2233,7 +2625,7 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_daemon_set_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2243,16 +2635,19 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DaemonSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_daemon_set_for_all_namespaces # noqa: E501 @@ -2263,7 +2658,7 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_daemon_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2273,22 +2668,45 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2DaemonSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DaemonSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_daemon_set_for_all_namespaces" % key ) @@ -2300,23 +2718,23 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2357,7 +2775,7 @@ def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_deployment_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2367,16 +2785,19 @@ def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DeploymentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_deployment_for_all_namespaces # noqa: E501 @@ -2387,7 +2808,7 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_deployment_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2397,22 +2818,45 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2DeploymentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DeploymentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_deployment_for_all_namespaces" % key ) @@ -2424,23 +2868,23 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2481,7 +2925,7 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E50 >>> thread = api.list_namespaced_controller_revision(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2492,16 +2936,19 @@ def list_namespaced_controller_revision(self, namespace, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ControllerRevisionList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_controller_revision_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_controller_revision # noqa: E501 @@ -2512,7 +2959,7 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs >>> thread = api.list_namespaced_controller_revision_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2523,31 +2970,55 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2ControllerRevisionList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ControllerRevisionList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -2556,23 +3027,23 @@ def list_namespaced_controller_revision_with_http_info(self, namespace, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2613,7 +3084,7 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_daemon_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2624,16 +3095,19 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DaemonSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_daemon_set # noqa: E501 @@ -2644,7 +3118,7 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_daemon_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2655,31 +3129,55 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2DaemonSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DaemonSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -2688,23 +3186,23 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2745,7 +3243,7 @@ def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_deployment(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2756,16 +3254,19 @@ def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DeploymentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_deployment # noqa: E501 @@ -2776,7 +3277,7 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_deployment_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2787,31 +3288,55 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2DeploymentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DeploymentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -2820,23 +3345,23 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2877,7 +3402,7 @@ def list_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_replica_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2888,16 +3413,19 @@ def list_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_replica_set # noqa: E501 @@ -2908,7 +3436,7 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # no >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2919,31 +3447,55 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # no :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2ReplicaSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ReplicaSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -2952,23 +3504,23 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3009,7 +3561,7 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_stateful_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3020,16 +3572,19 @@ def list_namespaced_stateful_set(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2StatefulSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_stateful_set_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_stateful_set # noqa: E501 @@ -3040,7 +3595,7 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # n >>> thread = api.list_namespaced_stateful_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3051,31 +3606,55 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # n :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2StatefulSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2StatefulSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -3084,23 +3663,23 @@ def list_namespaced_stateful_set_with_http_info(self, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3141,7 +3720,7 @@ def list_replica_set_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_replica_set_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3151,16 +3730,19 @@ def list_replica_set_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_replica_set_for_all_namespaces # noqa: E501 @@ -3171,7 +3753,7 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3181,22 +3763,45 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2ReplicaSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ReplicaSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_replica_set_for_all_namespaces" % key ) @@ -3208,23 +3813,23 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3265,7 +3870,7 @@ def list_stateful_set_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_stateful_set_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3275,16 +3880,19 @@ def list_stateful_set_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2StatefulSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_stateful_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_stateful_set_for_all_namespaces # noqa: E501 @@ -3295,7 +3903,7 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa >>> thread = api.list_stateful_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3305,22 +3913,45 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta2StatefulSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2StatefulSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_stateful_set_for_all_namespaces" % key ) @@ -3332,23 +3963,23 @@ def list_stateful_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3389,24 +4020,27 @@ def patch_namespaced_controller_revision(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_controller_revision(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_controller_revision # noqa: E501 @@ -3417,47 +4051,68 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b >>> thread = api.patch_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -3468,13 +4123,13 @@ def patch_namespaced_controller_revision_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3521,24 +4176,27 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_daemon_set # noqa: E501 @@ -3549,47 +4207,68 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -3600,13 +4279,13 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3653,24 +4332,27 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_daemon_set_status # noqa: E501 @@ -3681,47 +4363,68 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} @@ -3732,13 +4435,13 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3785,24 +4488,27 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_deployment(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment # noqa: E501 @@ -3813,47 +4519,68 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -3864,13 +4591,13 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -3917,24 +4644,27 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # >>> thread = api.patch_namespaced_deployment_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment_scale # noqa: E501 @@ -3945,47 +4675,68 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body >>> thread = api.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -3996,13 +4747,13 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4049,24 +4800,27 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment_status # noqa: E501 @@ -4077,47 +4831,68 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -4128,13 +4903,13 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4181,24 +4956,27 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): # noqa >>> thread = api.patch_namespaced_replica_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replica_set # noqa: E501 @@ -4209,47 +4987,68 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k >>> thread = api.patch_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -4260,13 +5059,13 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4313,24 +5112,27 @@ def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_replica_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replica_set_scale # noqa: E501 @@ -4341,47 +5143,68 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} @@ -4392,13 +5215,13 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4445,24 +5268,27 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_replica_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replica_set_status # noqa: E501 @@ -4473,47 +5299,68 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo >>> thread = api.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} @@ -4524,13 +5371,13 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4577,24 +5424,27 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): # noq >>> thread = api.patch_namespaced_stateful_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_stateful_set # noqa: E501 @@ -4605,47 +5455,68 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** >>> thread = api.patch_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -4656,13 +5527,13 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4709,24 +5580,27 @@ def patch_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_stateful_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_stateful_set_scale # noqa: E501 @@ -4737,47 +5611,68 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo >>> thread = api.patch_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} @@ -4788,13 +5683,13 @@ def patch_namespaced_stateful_set_scale_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4841,24 +5736,27 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_stateful_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_stateful_set_status # noqa: E501 @@ -4869,47 +5767,68 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b >>> thread = api.patch_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta2StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_stateful_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} @@ -4920,13 +5839,13 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4973,22 +5892,25 @@ def read_namespaced_controller_revision(self, name, namespace, **kwargs): # noq >>> thread = api.read_namespaced_controller_revision(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_controller_revision_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_controller_revision_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_controller_revision # noqa: E501 @@ -4999,41 +5921,60 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** >>> thread = api.read_namespaced_controller_revision_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta2ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -5044,11 +5985,11 @@ def read_namespaced_controller_revision_with_http_info(self, name, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5089,22 +6030,25 @@ def read_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_daemon_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_daemon_set # noqa: E501 @@ -5115,41 +6059,60 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta2DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -5160,11 +6123,11 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5205,20 +6168,23 @@ def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_daemon_set_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_daemon_set_status # noqa: E501 @@ -5229,39 +6195,56 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_daemon_set_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta2DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} @@ -5272,7 +6255,7 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5313,22 +6296,25 @@ def read_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_deployment(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment # noqa: E501 @@ -5339,41 +6325,60 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta2Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -5384,11 +6389,11 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5429,20 +6434,23 @@ def read_namespaced_deployment_scale(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_deployment_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment_scale # noqa: E501 @@ -5453,39 +6461,56 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa >>> thread = api.read_namespaced_deployment_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta2Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -5496,7 +6521,7 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5537,20 +6562,23 @@ def read_namespaced_deployment_status(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_deployment_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment_status # noqa: E501 @@ -5561,39 +6589,56 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta2Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -5604,7 +6649,7 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5645,22 +6690,25 @@ def read_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_replica_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replica_set # noqa: E501 @@ -5671,41 +6719,60 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_replica_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta2ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -5716,11 +6783,11 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5761,20 +6828,23 @@ def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_replica_set_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replica_set_scale # noqa: E501 @@ -5785,39 +6855,56 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_replica_set_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta2Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} @@ -5828,7 +6915,7 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5869,20 +6956,23 @@ def read_namespaced_replica_set_status(self, name, namespace, **kwargs): # noqa >>> thread = api.read_namespaced_replica_set_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replica_set_status # noqa: E501 @@ -5893,39 +6983,56 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k >>> thread = api.read_namespaced_replica_set_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta2ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} @@ -5936,7 +7043,7 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5977,22 +7084,25 @@ def read_namespaced_stateful_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_stateful_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_stateful_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_stateful_set # noqa: E501 @@ -6003,41 +7113,60 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) >>> thread = api.read_namespaced_stateful_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta2StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -6048,11 +7177,11 @@ def read_namespaced_stateful_set_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6093,20 +7222,23 @@ def read_namespaced_stateful_set_scale(self, name, namespace, **kwargs): # noqa >>> thread = api.read_namespaced_stateful_set_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_stateful_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_stateful_set_scale # noqa: E501 @@ -6117,39 +7249,56 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k >>> thread = api.read_namespaced_stateful_set_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta2Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} @@ -6160,7 +7309,7 @@ def read_namespaced_stateful_set_scale_with_http_info(self, name, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6201,20 +7350,23 @@ def read_namespaced_stateful_set_status(self, name, namespace, **kwargs): # noq >>> thread = api.read_namespaced_stateful_set_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_stateful_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_stateful_set_status # noqa: E501 @@ -6225,39 +7377,56 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** >>> thread = api.read_namespaced_stateful_set_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta2StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_stateful_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} @@ -6268,7 +7437,7 @@ def read_namespaced_stateful_set_status_with_http_info(self, name, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6309,23 +7478,26 @@ def replace_namespaced_controller_revision(self, name, namespace, body, **kwargs >>> thread = api.replace_namespaced_controller_revision(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ControllerRevision If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_controller_revision_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_controller_revision_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_controller_revision # noqa: E501 @@ -6336,46 +7508,66 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_controller_revision_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ControllerRevision (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ControllerRevision body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2ControllerRevision + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ControllerRevision, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_controller_revision" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_controller_revision`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_controller_revision`") # noqa: E501 collection_formats = {} @@ -6386,11 +7578,11 @@ def replace_namespaced_controller_revision_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6433,23 +7625,26 @@ def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_daemon_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_daemon_set # noqa: E501 @@ -6460,46 +7655,66 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -6510,11 +7725,11 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6557,23 +7772,26 @@ def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_daemon_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_daemon_set_status # noqa: E501 @@ -6584,46 +7802,66 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} @@ -6634,11 +7872,11 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6681,23 +7919,26 @@ def replace_namespaced_deployment(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_deployment(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment # noqa: E501 @@ -6708,46 +7949,66 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -6758,11 +8019,11 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6805,23 +8066,26 @@ def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_deployment_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment_scale # noqa: E501 @@ -6832,46 +8096,66 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo >>> thread = api.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -6882,11 +8166,11 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6929,23 +8213,26 @@ def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment_status # noqa: E501 @@ -6956,46 +8243,66 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -7006,11 +8313,11 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7053,23 +8360,26 @@ def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): # no >>> thread = api.replace_namespaced_replica_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replica_set # noqa: E501 @@ -7080,46 +8390,66 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * >>> thread = api.replace_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -7130,11 +8460,11 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7177,23 +8507,26 @@ def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_replica_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replica_set_scale # noqa: E501 @@ -7204,46 +8537,66 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} @@ -7254,11 +8607,11 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7301,23 +8654,26 @@ def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs) >>> thread = api.replace_namespaced_replica_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replica_set_status # noqa: E501 @@ -7328,46 +8684,66 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} @@ -7378,11 +8754,11 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7425,23 +8801,26 @@ def replace_namespaced_stateful_set(self, name, namespace, body, **kwargs): # n >>> thread = api.replace_namespaced_stateful_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_stateful_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_stateful_set # noqa: E501 @@ -7452,46 +8831,66 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, >>> thread = api.replace_namespaced_stateful_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set`") # noqa: E501 collection_formats = {} @@ -7502,11 +8901,11 @@ def replace_namespaced_stateful_set_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7549,23 +8948,26 @@ def replace_namespaced_stateful_set_scale(self, name, namespace, body, **kwargs) >>> thread = api.replace_namespaced_stateful_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_stateful_set_scale # noqa: E501 @@ -7576,46 +8978,66 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_stateful_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_scale`") # noqa: E501 collection_formats = {} @@ -7626,11 +9048,11 @@ def replace_namespaced_stateful_set_scale_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7673,23 +9095,26 @@ def replace_namespaced_stateful_set_status(self, name, namespace, body, **kwargs >>> thread = api.replace_namespaced_stateful_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta2StatefulSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_stateful_set_status # noqa: E501 @@ -7700,46 +9125,66 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_stateful_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta2StatefulSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta2StatefulSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta2StatefulSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_stateful_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_stateful_set_status`") # noqa: E501 collection_formats = {} @@ -7750,11 +9195,11 @@ def replace_namespaced_stateful_set_status_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/auditregistration_api.py b/kubernetes/client/api/auditregistration_api.py index 2d3ca47bd4..742a76278f 100644 --- a/kubernetes/client/api/auditregistration_api.py +++ b/kubernetes/client/api/auditregistration_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AuditregistrationApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/auditregistration_v1alpha1_api.py b/kubernetes/client/api/auditregistration_v1alpha1_api.py index 00375ca3f2..12cec77c3f 100644 --- a/kubernetes/client/api/auditregistration_v1alpha1_api.py +++ b/kubernetes/client/api/auditregistration_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AuditregistrationV1alpha1Api(object): @@ -41,21 +45,24 @@ def create_audit_sink(self, body, **kwargs): # noqa: E501 >>> thread = api.create_audit_sink(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1AuditSink body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1AuditSink If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_audit_sink_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_audit_sink_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_audit_sink_with_http_info(body, **kwargs) # noqa: E501 def create_audit_sink_with_http_info(self, body, **kwargs): # noqa: E501 """create_audit_sink # noqa: E501 @@ -66,47 +73,65 @@ def create_audit_sink_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_audit_sink_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1AuditSink body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1AuditSink + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1AuditSink, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_audit_sink" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_audit_sink`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_audit_sink`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,7 +174,7 @@ def delete_audit_sink(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_audit_sink(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the AuditSink (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -157,16 +182,19 @@ def delete_audit_sink(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_audit_sink_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_audit_sink_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_audit_sink_with_http_info(name, **kwargs) # noqa: E501 def delete_audit_sink_with_http_info(self, name, **kwargs): # noqa: E501 """delete_audit_sink # noqa: E501 @@ -177,7 +205,7 @@ def delete_audit_sink_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_audit_sink_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the AuditSink (required) :param str pretty: If 'true', then the output is pretty printed. :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,31 +213,52 @@ def delete_audit_sink_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_audit_sink" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_audit_sink`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_audit_sink`") # noqa: E501 collection_formats = {} @@ -218,15 +267,15 @@ def delete_audit_sink_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -269,9 +318,8 @@ def delete_collection_audit_sink(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_audit_sink(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -282,18 +330,20 @@ def delete_collection_audit_sink(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_audit_sink_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_audit_sink_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_audit_sink_with_http_info(**kwargs) # noqa: E501 def delete_collection_audit_sink_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_audit_sink # noqa: E501 @@ -304,9 +354,8 @@ def delete_collection_audit_sink_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_audit_sink_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -317,24 +366,49 @@ def delete_collection_audit_sink_with_http_info(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_audit_sink" % key ) @@ -346,32 +420,28 @@ def delete_collection_audit_sink_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -379,8 +449,8 @@ def delete_collection_audit_sink_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_audit_sink(self, **kwargs): # noqa: E501 >>> thread = api.list_audit_sink(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_audit_sink(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1AuditSinkList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_audit_sink_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_audit_sink_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_audit_sink_with_http_info(**kwargs) # noqa: E501 def list_audit_sink_with_http_info(self, **kwargs): # noqa: E501 """list_audit_sink # noqa: E501 @@ -531,7 +621,7 @@ def list_audit_sink_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_audit_sink_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_audit_sink_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1AuditSinkList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1AuditSinkList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_audit_sink" % key ) @@ -568,23 +681,23 @@ def list_audit_sink_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_audit_sink(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_audit_sink(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the AuditSink (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1AuditSink If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 def patch_audit_sink_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_audit_sink # noqa: E501 @@ -652,42 +768,62 @@ def patch_audit_sink_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_audit_sink_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the AuditSink (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1AuditSink + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1AuditSink, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_audit_sink" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_audit_sink`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_audit_sink`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_audit_sink`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_audit_sink`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_audit_sink_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,21 +885,24 @@ def read_audit_sink(self, name, **kwargs): # noqa: E501 >>> thread = api.read_audit_sink(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the AuditSink (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1AuditSink If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_audit_sink_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_audit_sink_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_audit_sink_with_http_info(name, **kwargs) # noqa: E501 def read_audit_sink_with_http_info(self, name, **kwargs): # noqa: E501 """read_audit_sink # noqa: E501 @@ -774,36 +913,54 @@ def read_audit_sink_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_audit_sink_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the AuditSink (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1alpha1AuditSink + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1AuditSink, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_audit_sink" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_audit_sink`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_audit_sink`") # noqa: E501 collection_formats = {} @@ -812,11 +969,11 @@ def read_audit_sink_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -857,22 +1014,25 @@ def replace_audit_sink(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_audit_sink(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the AuditSink (required) :param V1alpha1AuditSink body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1AuditSink If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_audit_sink_with_http_info(name, body, **kwargs) # noqa: E501 def replace_audit_sink_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_audit_sink # noqa: E501 @@ -883,41 +1043,60 @@ def replace_audit_sink_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_audit_sink_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the AuditSink (required) :param V1alpha1AuditSink body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1AuditSink + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1AuditSink, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_audit_sink" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_audit_sink`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_audit_sink`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_audit_sink`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_audit_sink`") # noqa: E501 collection_formats = {} @@ -926,11 +1105,11 @@ def replace_audit_sink_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/authentication_api.py b/kubernetes/client/api/authentication_api.py index f2b7aad6fd..ea7b91f1e3 100644 --- a/kubernetes/client/api/authentication_api.py +++ b/kubernetes/client/api/authentication_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AuthenticationApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/authentication_v1_api.py b/kubernetes/client/api/authentication_v1_api.py index 5720f1b327..e73e2e6627 100644 --- a/kubernetes/client/api/authentication_v1_api.py +++ b/kubernetes/client/api/authentication_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AuthenticationV1Api(object): @@ -41,21 +45,24 @@ def create_token_review(self, body, **kwargs): # noqa: E501 >>> thread = api.create_token_review(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1TokenReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1TokenReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 def create_token_review_with_http_info(self, body, **kwargs): # noqa: E501 """create_token_review # noqa: E501 @@ -66,47 +73,65 @@ def create_token_review_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_token_review_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1TokenReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1TokenReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1TokenReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_token_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_token_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_token_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -149,17 +174,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -170,23 +198,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) diff --git a/kubernetes/client/api/authentication_v1beta1_api.py b/kubernetes/client/api/authentication_v1beta1_api.py index 6b3cd4dff7..456989dd71 100644 --- a/kubernetes/client/api/authentication_v1beta1_api.py +++ b/kubernetes/client/api/authentication_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AuthenticationV1beta1Api(object): @@ -41,21 +45,24 @@ def create_token_review(self, body, **kwargs): # noqa: E501 >>> thread = api.create_token_review(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1TokenReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1TokenReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_token_review_with_http_info(body, **kwargs) # noqa: E501 def create_token_review_with_http_info(self, body, **kwargs): # noqa: E501 """create_token_review # noqa: E501 @@ -66,47 +73,65 @@ def create_token_review_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_token_review_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1TokenReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1TokenReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1TokenReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_token_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_token_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_token_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -149,17 +174,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -170,23 +198,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) diff --git a/kubernetes/client/api/authorization_api.py b/kubernetes/client/api/authorization_api.py index bc570c49b3..395f077060 100644 --- a/kubernetes/client/api/authorization_api.py +++ b/kubernetes/client/api/authorization_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AuthorizationApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/authorization_v1_api.py b/kubernetes/client/api/authorization_v1_api.py index 7aa129ebb4..8324e5156b 100644 --- a/kubernetes/client/api/authorization_v1_api.py +++ b/kubernetes/client/api/authorization_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AuthorizationV1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_local_subject_access_review(self, namespace, body, **kwarg >>> thread = api.create_namespaced_local_subject_access_review(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1LocalSubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1LocalSubjectAccessReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_local_subject_access_review # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1LocalSubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1LocalSubjectAccessReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1LocalSubjectAccessReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_local_subject_access_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -157,21 +183,24 @@ def create_self_subject_access_review(self, body, **kwargs): # noqa: E501 >>> thread = api.create_self_subject_access_review(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1SelfSubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1SelfSubjectAccessReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 def create_self_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501 """create_self_subject_access_review # noqa: E501 @@ -182,47 +211,65 @@ def create_self_subject_access_review_with_http_info(self, body, **kwargs): # n >>> thread = api.create_self_subject_access_review_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1SelfSubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1SelfSubjectAccessReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1SelfSubjectAccessReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_self_subject_access_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -265,21 +312,24 @@ def create_self_subject_rules_review(self, body, **kwargs): # noqa: E501 >>> thread = api.create_self_subject_rules_review(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1SelfSubjectRulesReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1SelfSubjectRulesReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 def create_self_subject_rules_review_with_http_info(self, body, **kwargs): # noqa: E501 """create_self_subject_rules_review # noqa: E501 @@ -290,47 +340,65 @@ def create_self_subject_rules_review_with_http_info(self, body, **kwargs): # no >>> thread = api.create_self_subject_rules_review_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1SelfSubjectRulesReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1SelfSubjectRulesReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1SelfSubjectRulesReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_self_subject_rules_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -373,21 +441,24 @@ def create_subject_access_review(self, body, **kwargs): # noqa: E501 >>> thread = api.create_subject_access_review(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1SubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1SubjectAccessReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 def create_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501 """create_subject_access_review # noqa: E501 @@ -398,47 +469,65 @@ def create_subject_access_review_with_http_info(self, body, **kwargs): # noqa: >>> thread = api.create_subject_access_review_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1SubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1SubjectAccessReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1SubjectAccessReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_subject_access_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_subject_access_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -481,17 +570,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -502,23 +594,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) diff --git a/kubernetes/client/api/authorization_v1beta1_api.py b/kubernetes/client/api/authorization_v1beta1_api.py index c628a1b502..4e47e235c5 100644 --- a/kubernetes/client/api/authorization_v1beta1_api.py +++ b/kubernetes/client/api/authorization_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AuthorizationV1beta1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_local_subject_access_review(self, namespace, body, **kwarg >>> thread = api.create_namespaced_local_subject_access_review(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1LocalSubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1LocalSubjectAccessReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_local_subject_access_review_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_local_subject_access_review_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_local_subject_access_review # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace >>> thread = api.create_namespaced_local_subject_access_review_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1LocalSubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1LocalSubjectAccessReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1LocalSubjectAccessReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_local_subject_access_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_local_subject_access_review`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_local_subject_access_review_with_http_info(self, namespace path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -157,21 +183,24 @@ def create_self_subject_access_review(self, body, **kwargs): # noqa: E501 >>> thread = api.create_self_subject_access_review(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1SelfSubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1SelfSubjectAccessReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_self_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 def create_self_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501 """create_self_subject_access_review # noqa: E501 @@ -182,47 +211,65 @@ def create_self_subject_access_review_with_http_info(self, body, **kwargs): # n >>> thread = api.create_self_subject_access_review_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1SelfSubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1SelfSubjectAccessReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1SelfSubjectAccessReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_self_subject_access_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -265,21 +312,24 @@ def create_self_subject_rules_review(self, body, **kwargs): # noqa: E501 >>> thread = api.create_self_subject_rules_review(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1SelfSubjectRulesReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1SelfSubjectRulesReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_self_subject_rules_review_with_http_info(body, **kwargs) # noqa: E501 def create_self_subject_rules_review_with_http_info(self, body, **kwargs): # noqa: E501 """create_self_subject_rules_review # noqa: E501 @@ -290,47 +340,65 @@ def create_self_subject_rules_review_with_http_info(self, body, **kwargs): # no >>> thread = api.create_self_subject_rules_review_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1SelfSubjectRulesReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1SelfSubjectRulesReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1SelfSubjectRulesReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_self_subject_rules_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_self_subject_rules_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -373,21 +441,24 @@ def create_subject_access_review(self, body, **kwargs): # noqa: E501 >>> thread = api.create_subject_access_review(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1SubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1SubjectAccessReview If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_subject_access_review_with_http_info(body, **kwargs) # noqa: E501 def create_subject_access_review_with_http_info(self, body, **kwargs): # noqa: E501 """create_subject_access_review # noqa: E501 @@ -398,47 +469,65 @@ def create_subject_access_review_with_http_info(self, body, **kwargs): # noqa: >>> thread = api.create_subject_access_review_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1SubjectAccessReview body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1SubjectAccessReview + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1SubjectAccessReview, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_subject_access_review" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_subject_access_review`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_subject_access_review`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -481,17 +570,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -502,23 +594,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) diff --git a/kubernetes/client/api/autoscaling_api.py b/kubernetes/client/api/autoscaling_api.py index 6a10ba5e8e..9829f455eb 100644 --- a/kubernetes/client/api/autoscaling_api.py +++ b/kubernetes/client/api/autoscaling_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AutoscalingApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/autoscaling_v1_api.py b/kubernetes/client/api/autoscaling_v1_api.py index 0905a7bc17..ac5ac1d048 100644 --- a/kubernetes/client/api/autoscaling_v1_api.py +++ b/kubernetes/client/api/autoscaling_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AutoscalingV1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_horizontal_pod_autoscaler(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, >>> thread = api.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names >>> thread = api.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): # noqa: >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_horizontal_pod_autoscaler_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1HorizontalPodAutoscalerList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1HorizontalPodAutoscalerList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_horizontal_pod_autoscaler_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** >>> thread = api.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1HorizontalPodAutoscalerList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1HorizontalPodAutoscalerList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,24 +1080,27 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_horizontal_pod_autoscaler_status # noqa: E501 @@ -941,47 +1111,68 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} @@ -992,13 +1183,13 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1045,22 +1236,25 @@ def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -1071,41 +1265,60 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa >>> thread = api.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -1116,11 +1329,11 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1161,20 +1374,23 @@ def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kw >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_horizontal_pod_autoscaler_status # noqa: E501 @@ -1185,39 +1401,56 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} @@ -1228,7 +1461,7 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1269,23 +1502,26 @@ def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, ** >>> thread = api.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -1296,46 +1532,66 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -1346,11 +1602,11 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1393,23 +1649,26 @@ def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, b >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_horizontal_pod_autoscaler_status # noqa: E501 @@ -1420,46 +1679,66 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} @@ -1470,11 +1749,11 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/autoscaling_v2beta1_api.py b/kubernetes/client/api/autoscaling_v2beta1_api.py index b6e4c01e04..271bc3ed9f 100644 --- a/kubernetes/client/api/autoscaling_v2beta1_api.py +++ b/kubernetes/client/api/autoscaling_v2beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AutoscalingV2beta1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_horizontal_pod_autoscaler(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, >>> thread = api.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V2beta1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names >>> thread = api.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): # noqa: >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_horizontal_pod_autoscaler_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2beta1HorizontalPodAutoscalerList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta1HorizontalPodAutoscalerList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_horizontal_pod_autoscaler_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta1HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** >>> thread = api.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2beta1HorizontalPodAutoscalerList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta1HorizontalPodAutoscalerList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V2beta1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,24 +1080,27 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_horizontal_pod_autoscaler_status # noqa: E501 @@ -941,47 +1111,68 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V2beta1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} @@ -992,13 +1183,13 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1045,22 +1236,25 @@ def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -1071,41 +1265,60 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa >>> thread = api.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V2beta1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -1116,11 +1329,11 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1161,20 +1374,23 @@ def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kw >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_horizontal_pod_autoscaler_status # noqa: E501 @@ -1185,39 +1401,56 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2beta1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} @@ -1228,7 +1461,7 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1269,23 +1502,26 @@ def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, ** >>> thread = api.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -1296,46 +1532,66 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V2beta1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -1346,11 +1602,11 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1393,23 +1649,26 @@ def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, b >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta1HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_horizontal_pod_autoscaler_status # noqa: E501 @@ -1420,46 +1679,66 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta1HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V2beta1HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta1HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} @@ -1470,11 +1749,11 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/autoscaling_v2beta2_api.py b/kubernetes/client/api/autoscaling_v2beta2_api.py index 2482c9d899..c48123c623 100644 --- a/kubernetes/client/api/autoscaling_v2beta2_api.py +++ b/kubernetes/client/api/autoscaling_v2beta2_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class AutoscalingV2beta2Api(object): @@ -41,22 +45,25 @@ def create_namespaced_horizontal_pod_autoscaler(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_horizontal_pod_autoscaler(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta2HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta2HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, >>> thread = api.create_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta2HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V2beta2HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta2HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_horizontal_pod_autoscaler(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, >>> thread = api.delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_horizontal_pod_autoscaler_with_http_info(self, local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names >>> thread = api.delete_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, names path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): # noqa: >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_horizontal_pod_autoscaler_for_all_namespaces(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta2HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_horizontal_pod_autoscaler_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa >>> thread = api.list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2beta2HorizontalPodAutoscalerList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta2HorizontalPodAutoscalerList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_horizontal_pod_autoscaler_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_horizontal_pod_autoscaler_for_all_namespaces_with_http_info(self, **kwa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_horizontal_pod_autoscaler(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_horizontal_pod_autoscaler(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta2HorizontalPodAutoscalerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** >>> thread = api.list_namespaced_horizontal_pod_autoscaler_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2beta2HorizontalPodAutoscalerList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta2HorizontalPodAutoscalerList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_horizontal_pod_autoscaler_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta2HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V2beta2HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta2HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,24 +1080,27 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta2HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_horizontal_pod_autoscaler_status # noqa: E501 @@ -941,47 +1111,68 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, >>> thread = api.patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V2beta2HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta2HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_horizontal_pod_autoscaler_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} @@ -992,13 +1183,13 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1045,22 +1236,25 @@ def read_namespaced_horizontal_pod_autoscaler(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_horizontal_pod_autoscaler(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta2HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -1071,41 +1265,60 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa >>> thread = api.read_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V2beta2HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta2HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -1116,11 +1329,11 @@ def read_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1161,20 +1374,23 @@ def read_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, **kw >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta2HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_horizontal_pod_autoscaler_status # noqa: E501 @@ -1185,39 +1401,56 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, >>> thread = api.read_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2beta2HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta2HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_horizontal_pod_autoscaler_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} @@ -1228,7 +1461,7 @@ def read_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1269,23 +1502,26 @@ def replace_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, ** >>> thread = api.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta2HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta2HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_horizontal_pod_autoscaler # noqa: E501 @@ -1296,46 +1532,66 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta2HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V2beta2HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta2HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler`") # noqa: E501 collection_formats = {} @@ -1346,11 +1602,11 @@ def replace_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, name path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1393,23 +1649,26 @@ def replace_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, b >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta2HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2beta2HorizontalPodAutoscaler If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_horizontal_pod_autoscaler_status # noqa: E501 @@ -1420,46 +1679,66 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam >>> thread = api.replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2beta2HorizontalPodAutoscaler body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V2beta2HorizontalPodAutoscaler + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2beta2HorizontalPodAutoscaler, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_horizontal_pod_autoscaler_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_horizontal_pod_autoscaler_status`") # noqa: E501 collection_formats = {} @@ -1470,11 +1749,11 @@ def replace_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, nam path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/batch_api.py b/kubernetes/client/api/batch_api.py index edb31df2b5..6e4fe0401e 100644 --- a/kubernetes/client/api/batch_api.py +++ b/kubernetes/client/api/batch_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class BatchApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/batch_v1_api.py b/kubernetes/client/api/batch_v1_api.py index fe46fef852..1f8e4f4e61 100644 --- a/kubernetes/client/api/batch_v1_api.py +++ b/kubernetes/client/api/batch_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class BatchV1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_job(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_job(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_job_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_job_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_job_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_job # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): # no >>> thread = api.create_namespaced_job_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Job + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Job, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_job`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_job_with_http_info(self, namespace, body, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_job(self, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_collection_namespaced_job(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_job(self, namespace, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_job # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): >>> thread = api.delete_collection_namespaced_job_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_job`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_job_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_job(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_job(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_job(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_job # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): # no >>> thread = api.delete_namespaced_job_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): # no :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_job`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_job_with_http_info(self, name, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_job_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_job_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_job_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1JobList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_job_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_job_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1JobList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1JobList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_job_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_job(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_job(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_job(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1JobList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_job_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_job_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_job # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_job_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1JobList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1JobList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_job`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_job_with_http_info(self, namespace, **kwargs): # noqa: E501 path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_job(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespaced_job(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_job # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_job_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Job + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Job, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_job`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,24 +1080,27 @@ def patch_namespaced_job_status(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_job_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_job_status # noqa: E501 @@ -941,47 +1111,68 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_job_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Job + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Job, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_job_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_job_status`") # noqa: E501 collection_formats = {} @@ -992,13 +1183,13 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1045,22 +1236,25 @@ def read_namespaced_job(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_job(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_job_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_job # noqa: E501 @@ -1071,41 +1265,60 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): # noqa >>> thread = api.read_namespaced_job_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Job + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Job, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_job`") # noqa: E501 collection_formats = {} @@ -1116,11 +1329,11 @@ def read_namespaced_job_with_http_info(self, name, namespace, **kwargs): # noqa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1161,20 +1374,23 @@ def read_namespaced_job_status(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_job_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_job_status # noqa: E501 @@ -1185,39 +1401,56 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_job_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Job + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Job, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_job_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_job_status`") # noqa: E501 collection_formats = {} @@ -1228,7 +1461,7 @@ def read_namespaced_job_status_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1269,23 +1502,26 @@ def replace_namespaced_job(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.replace_namespaced_job(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_job # noqa: E501 @@ -1296,46 +1532,66 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) >>> thread = api.replace_namespaced_job_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Job + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Job, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_job`") # noqa: E501 collection_formats = {} @@ -1346,11 +1602,11 @@ def replace_namespaced_job_with_http_info(self, name, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1393,23 +1649,26 @@ def replace_namespaced_job_status(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_job_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Job If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_job_status # noqa: E501 @@ -1420,46 +1679,66 @@ def replace_namespaced_job_status_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_job_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Job body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Job + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Job, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_job_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_job_status`") # noqa: E501 collection_formats = {} @@ -1470,11 +1749,11 @@ def replace_namespaced_job_status_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/batch_v1beta1_api.py b/kubernetes/client/api/batch_v1beta1_api.py index ac15a81c2e..4e95a23af2 100644 --- a/kubernetes/client/api/batch_v1beta1_api.py +++ b/kubernetes/client/api/batch_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class BatchV1beta1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_cron_job(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_cron_job(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_cron_job # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): >>> thread = api.create_namespaced_cron_job_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_cron_job(self, namespace, **kwargs): # noqa: E >>> thread = api.delete_collection_namespaced_cron_job(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_cron_job(self, namespace, **kwargs): # noqa: E :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_cron_job # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar >>> thread = api.delete_collection_namespaced_cron_job_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_cron_job(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_cron_job # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): >>> thread = api.delete_namespaced_cron_job_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_cron_job_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_cron_job_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_cron_job_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CronJobList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_cron_job_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E5 >>> thread = api.list_cron_job_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E5 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1CronJobList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CronJobList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_cron_job_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E5 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_cron_job(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_cron_job(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_cron_job(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CronJobList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_cron_job # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: >>> thread = api.list_namespaced_cron_job_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1CronJobList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CronJobList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): # noqa: E >>> thread = api.patch_namespaced_cron_job(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_cron_job # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar >>> thread = api.patch_namespaced_cron_job_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,24 +1080,27 @@ def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): # >>> thread = api.patch_namespaced_cron_job_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_cron_job_status # noqa: E501 @@ -941,47 +1111,68 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_cron_job_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} @@ -992,13 +1183,13 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1045,22 +1236,25 @@ def read_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_cron_job(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_cron_job # noqa: E501 @@ -1071,41 +1265,60 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.read_namespaced_cron_job_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -1116,11 +1329,11 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1161,20 +1374,23 @@ def read_namespaced_cron_job_status(self, name, namespace, **kwargs): # noqa: E >>> thread = api.read_namespaced_cron_job_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_cron_job_status # noqa: E501 @@ -1185,39 +1401,56 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar >>> thread = api.read_namespaced_cron_job_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_cron_job_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} @@ -1228,7 +1461,7 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1269,23 +1502,26 @@ def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.replace_namespaced_cron_job(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_cron_job # noqa: E501 @@ -1296,46 +1532,66 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw >>> thread = api.replace_namespaced_cron_job_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -1346,11 +1602,11 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1393,23 +1649,26 @@ def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_cron_job_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_cron_job_status # noqa: E501 @@ -1420,46 +1679,66 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod >>> thread = api.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_cron_job_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} @@ -1470,11 +1749,11 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/batch_v2alpha1_api.py b/kubernetes/client/api/batch_v2alpha1_api.py index c72cd6923a..afdcdb2990 100644 --- a/kubernetes/client/api/batch_v2alpha1_api.py +++ b/kubernetes/client/api/batch_v2alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class BatchV2alpha1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_cron_job(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_cron_job(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_cron_job_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_cron_job # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): >>> thread = api.create_namespaced_cron_job_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V2alpha1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2alpha1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_cron_job_with_http_info(self, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_cron_job(self, namespace, **kwargs): # noqa: E >>> thread = api.delete_collection_namespaced_cron_job(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_cron_job(self, namespace, **kwargs): # noqa: E :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_cron_job # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar >>> thread = api.delete_collection_namespaced_cron_job_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_cron_job_with_http_info(self, namespace, **kwar local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_cron_job(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_cron_job # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): >>> thread = api.delete_namespaced_cron_job_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_cron_job_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_cron_job_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_cron_job_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2alpha1CronJobList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_cron_job_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_cron_job_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E5 >>> thread = api.list_cron_job_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E5 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2alpha1CronJobList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_cron_job_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_cron_job_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E5 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_cron_job(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_cron_job(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_cron_job(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2alpha1CronJobList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_cron_job_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_cron_job # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: >>> thread = api.list_namespaced_cron_job_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V2alpha1CronJobList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2alpha1CronJobList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_cron_job_with_http_info(self, namespace, **kwargs): # noqa: path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): # noqa: E >>> thread = api.patch_namespaced_cron_job(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_cron_job # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar >>> thread = api.patch_namespaced_cron_job_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V2alpha1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2alpha1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,24 +1080,27 @@ def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): # >>> thread = api.patch_namespaced_cron_job_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_cron_job_status # noqa: E501 @@ -941,47 +1111,68 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_cron_job_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V2alpha1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2alpha1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_cron_job_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} @@ -992,13 +1183,13 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1045,22 +1236,25 @@ def read_namespaced_cron_job(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_cron_job(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_cron_job_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_cron_job # noqa: E501 @@ -1071,41 +1265,60 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.read_namespaced_cron_job_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V2alpha1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2alpha1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -1116,11 +1329,11 @@ def read_namespaced_cron_job_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1161,20 +1374,23 @@ def read_namespaced_cron_job_status(self, name, namespace, **kwargs): # noqa: E >>> thread = api.read_namespaced_cron_job_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_cron_job_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_cron_job_status # noqa: E501 @@ -1185,39 +1401,56 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar >>> thread = api.read_namespaced_cron_job_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V2alpha1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2alpha1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_cron_job_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} @@ -1228,7 +1461,7 @@ def read_namespaced_cron_job_status_with_http_info(self, name, namespace, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1269,23 +1502,26 @@ def replace_namespaced_cron_job(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.replace_namespaced_cron_job(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_cron_job_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_cron_job # noqa: E501 @@ -1296,46 +1532,66 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw >>> thread = api.replace_namespaced_cron_job_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V2alpha1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2alpha1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_cron_job" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job`") # noqa: E501 collection_formats = {} @@ -1346,11 +1602,11 @@ def replace_namespaced_cron_job_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1393,23 +1649,26 @@ def replace_namespaced_cron_job_status(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_cron_job_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V2alpha1CronJob If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_cron_job_status # noqa: E501 @@ -1420,46 +1679,66 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod >>> thread = api.replace_namespaced_cron_job_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V2alpha1CronJob body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V2alpha1CronJob + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V2alpha1CronJob, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_cron_job_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_cron_job_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_cron_job_status`") # noqa: E501 collection_formats = {} @@ -1470,11 +1749,11 @@ def replace_namespaced_cron_job_status_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/certificates_api.py b/kubernetes/client/api/certificates_api.py index f23bb5b703..a161526ca6 100644 --- a/kubernetes/client/api/certificates_api.py +++ b/kubernetes/client/api/certificates_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class CertificatesApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/certificates_v1beta1_api.py b/kubernetes/client/api/certificates_v1beta1_api.py index f8573e5ae7..be40aaf08d 100644 --- a/kubernetes/client/api/certificates_v1beta1_api.py +++ b/kubernetes/client/api/certificates_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class CertificatesV1beta1Api(object): @@ -41,21 +45,24 @@ def create_certificate_signing_request(self, body, **kwargs): # noqa: E501 >>> thread = api.create_certificate_signing_request(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_certificate_signing_request_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_certificate_signing_request_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_certificate_signing_request_with_http_info(body, **kwargs) # noqa: E501 def create_certificate_signing_request_with_http_info(self, body, **kwargs): # noqa: E501 """create_certificate_signing_request # noqa: E501 @@ -66,47 +73,65 @@ def create_certificate_signing_request_with_http_info(self, body, **kwargs): # >>> thread = api.create_certificate_signing_request_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CertificateSigningRequest + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CertificateSigningRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_certificate_signing_request" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_certificate_signing_request`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_certificate_signing_request`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,7 +174,7 @@ def delete_certificate_signing_request(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_certificate_signing_request(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -157,16 +182,19 @@ def delete_certificate_signing_request(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 def delete_certificate_signing_request_with_http_info(self, name, **kwargs): # noqa: E501 """delete_certificate_signing_request # noqa: E501 @@ -177,7 +205,7 @@ def delete_certificate_signing_request_with_http_info(self, name, **kwargs): # >>> thread = api.delete_certificate_signing_request_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param str pretty: If 'true', then the output is pretty printed. :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,31 +213,52 @@ def delete_certificate_signing_request_with_http_info(self, name, **kwargs): # :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_certificate_signing_request" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_certificate_signing_request`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_certificate_signing_request`") # noqa: E501 collection_formats = {} @@ -218,15 +267,15 @@ def delete_certificate_signing_request_with_http_info(self, name, **kwargs): # path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -269,9 +318,8 @@ def delete_collection_certificate_signing_request(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_certificate_signing_request(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -282,18 +330,20 @@ def delete_collection_certificate_signing_request(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 def delete_collection_certificate_signing_request_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_certificate_signing_request # noqa: E501 @@ -304,9 +354,8 @@ def delete_collection_certificate_signing_request_with_http_info(self, **kwargs) >>> thread = api.delete_collection_certificate_signing_request_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -317,24 +366,49 @@ def delete_collection_certificate_signing_request_with_http_info(self, **kwargs) :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_certificate_signing_request" % key ) @@ -346,32 +420,28 @@ def delete_collection_certificate_signing_request_with_http_info(self, **kwargs) path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -379,8 +449,8 @@ def delete_collection_certificate_signing_request_with_http_info(self, **kwargs) local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_certificate_signing_request(self, **kwargs): # noqa: E501 >>> thread = api.list_certificate_signing_request(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_certificate_signing_request(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CertificateSigningRequestList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_certificate_signing_request_with_http_info(**kwargs) # noqa: E501 def list_certificate_signing_request_with_http_info(self, **kwargs): # noqa: E501 """list_certificate_signing_request # noqa: E501 @@ -531,7 +621,7 @@ def list_certificate_signing_request_with_http_info(self, **kwargs): # noqa: E5 >>> thread = api.list_certificate_signing_request_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_certificate_signing_request_with_http_info(self, **kwargs): # noqa: E5 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1CertificateSigningRequestList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CertificateSigningRequestList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_certificate_signing_request" % key ) @@ -568,23 +681,23 @@ def list_certificate_signing_request_with_http_info(self, **kwargs): # noqa: E5 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_certificate_signing_request(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_certificate_signing_request(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_certificate_signing_request # noqa: E501 @@ -652,42 +768,62 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs) >>> thread = api.patch_certificate_signing_request_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1CertificateSigningRequest + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CertificateSigningRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_certificate_signing_request" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs) path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,23 +885,26 @@ def patch_certificate_signing_request_status(self, name, body, **kwargs): # noq >>> thread = api.patch_certificate_signing_request_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 def patch_certificate_signing_request_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_certificate_signing_request_status # noqa: E501 @@ -776,42 +915,62 @@ def patch_certificate_signing_request_status_with_http_info(self, name, body, ** >>> thread = api.patch_certificate_signing_request_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1CertificateSigningRequest + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CertificateSigningRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_certificate_signing_request_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_certificate_signing_request_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_certificate_signing_request_status`") # noqa: E501 collection_formats = {} @@ -820,13 +979,13 @@ def patch_certificate_signing_request_status_with_http_info(self, name, body, ** path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -873,21 +1032,24 @@ def read_certificate_signing_request(self, name, **kwargs): # noqa: E501 >>> thread = api.read_certificate_signing_request(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_certificate_signing_request_with_http_info(name, **kwargs) # noqa: E501 def read_certificate_signing_request_with_http_info(self, name, **kwargs): # noqa: E501 """read_certificate_signing_request # noqa: E501 @@ -898,36 +1060,54 @@ def read_certificate_signing_request_with_http_info(self, name, **kwargs): # no >>> thread = api.read_certificate_signing_request_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1CertificateSigningRequest + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CertificateSigningRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_certificate_signing_request" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_certificate_signing_request`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_certificate_signing_request`") # noqa: E501 collection_formats = {} @@ -936,11 +1116,11 @@ def read_certificate_signing_request_with_http_info(self, name, **kwargs): # no path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -981,19 +1161,22 @@ def read_certificate_signing_request_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_certificate_signing_request_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_certificate_signing_request_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_certificate_signing_request_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_certificate_signing_request_status_with_http_info(name, **kwargs) # noqa: E501 def read_certificate_signing_request_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_certificate_signing_request_status # noqa: E501 @@ -1004,34 +1187,50 @@ def read_certificate_signing_request_status_with_http_info(self, name, **kwargs) >>> thread = api.read_certificate_signing_request_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CertificateSigningRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_certificate_signing_request_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_certificate_signing_request_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_certificate_signing_request_status`") # noqa: E501 collection_formats = {} @@ -1040,7 +1239,7 @@ def read_certificate_signing_request_status_with_http_info(self, name, **kwargs) path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1081,22 +1280,25 @@ def replace_certificate_signing_request(self, name, body, **kwargs): # noqa: E5 >>> thread = api.replace_certificate_signing_request(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_certificate_signing_request_with_http_info(name, body, **kwargs) # noqa: E501 def replace_certificate_signing_request_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_certificate_signing_request # noqa: E501 @@ -1107,41 +1309,60 @@ def replace_certificate_signing_request_with_http_info(self, name, body, **kwarg >>> thread = api.replace_certificate_signing_request_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CertificateSigningRequest + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CertificateSigningRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_certificate_signing_request" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request`") # noqa: E501 collection_formats = {} @@ -1150,11 +1371,11 @@ def replace_certificate_signing_request_with_http_info(self, name, body, **kwarg path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1197,22 +1418,25 @@ def replace_certificate_signing_request_approval(self, name, body, **kwargs): # >>> thread = api.replace_certificate_signing_request_approval(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param V1beta1CertificateSigningRequest body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_certificate_signing_request_approval_with_http_info(name, body, **kwargs) # noqa: E501 def replace_certificate_signing_request_approval_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_certificate_signing_request_approval # noqa: E501 @@ -1223,41 +1447,60 @@ def replace_certificate_signing_request_approval_with_http_info(self, name, body >>> thread = api.replace_certificate_signing_request_approval_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param V1beta1CertificateSigningRequest body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1CertificateSigningRequest + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CertificateSigningRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_certificate_signing_request_approval" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_approval`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_approval`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_approval`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_approval`") # noqa: E501 collection_formats = {} @@ -1266,11 +1509,11 @@ def replace_certificate_signing_request_approval_with_http_info(self, name, body path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1313,22 +1556,25 @@ def replace_certificate_signing_request_status(self, name, body, **kwargs): # n >>> thread = api.replace_certificate_signing_request_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_certificate_signing_request_status_with_http_info(name, body, **kwargs) # noqa: E501 def replace_certificate_signing_request_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_certificate_signing_request_status # noqa: E501 @@ -1339,41 +1585,60 @@ def replace_certificate_signing_request_status_with_http_info(self, name, body, >>> thread = api.replace_certificate_signing_request_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CertificateSigningRequest (required) :param V1beta1CertificateSigningRequest body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CertificateSigningRequest + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CertificateSigningRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_certificate_signing_request_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_certificate_signing_request_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_certificate_signing_request_status`") # noqa: E501 collection_formats = {} @@ -1382,11 +1647,11 @@ def replace_certificate_signing_request_status_with_http_info(self, name, body, path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/coordination_api.py b/kubernetes/client/api/coordination_api.py index 123ec86502..4856969b2c 100644 --- a/kubernetes/client/api/coordination_api.py +++ b/kubernetes/client/api/coordination_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class CoordinationApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/coordination_v1_api.py b/kubernetes/client/api/coordination_v1_api.py index 864edfb67f..7ba82f8fb8 100644 --- a/kubernetes/client/api/coordination_v1_api.py +++ b/kubernetes/client/api/coordination_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class CoordinationV1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_lease(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_lease(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Lease body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Lease If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_lease # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): # >>> thread = api.create_namespaced_lease_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Lease body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Lease + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Lease, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_lease(self, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_collection_namespaced_lease(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_lease(self, namespace, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_lease # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) >>> thread = api.delete_collection_namespaced_lease_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_lease(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_lease # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.delete_namespaced_lease_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_lease_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_lease_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_lease_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1LeaseList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_lease_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_lease_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1LeaseList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1LeaseList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_lease_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_lease(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_lease(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_lease(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1LeaseList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_lease # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E5 >>> thread = api.list_namespaced_lease_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E5 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1LeaseList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1LeaseList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E5 path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_lease(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespaced_lease(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Lease If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_lease # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) >>> thread = api.patch_namespaced_lease_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Lease + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Lease, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,22 +1080,25 @@ def read_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_lease(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Lease If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_lease # noqa: E501 @@ -939,41 +1109,60 @@ def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # no >>> thread = api.read_namespaced_lease_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Lease + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Lease, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -984,11 +1173,11 @@ def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1029,23 +1218,26 @@ def replace_namespaced_lease(self, name, namespace, body, **kwargs): # noqa: E5 >>> thread = api.replace_namespaced_lease(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Lease body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Lease If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_lease # noqa: E501 @@ -1056,46 +1248,66 @@ def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwarg >>> thread = api.replace_namespaced_lease_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Lease body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Lease + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Lease, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -1106,11 +1318,11 @@ def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/coordination_v1beta1_api.py b/kubernetes/client/api/coordination_v1beta1_api.py index f339b610c7..2db812a877 100644 --- a/kubernetes/client/api/coordination_v1beta1_api.py +++ b/kubernetes/client/api/coordination_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class CoordinationV1beta1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_lease(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_lease(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Lease body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Lease If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_lease_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_lease # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): # >>> thread = api.create_namespaced_lease_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Lease body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1Lease + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Lease, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_lease_with_http_info(self, namespace, body, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_lease(self, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_collection_namespaced_lease(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_lease(self, namespace, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_lease # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) >>> thread = api.delete_collection_namespaced_lease_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_lease_with_http_info(self, namespace, **kwargs) local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_lease(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_lease # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.delete_namespaced_lease_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_lease_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_lease_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_lease_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1LeaseList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_lease_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_lease_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_lease_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1LeaseList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1LeaseList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_lease_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_lease_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_lease(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_lease(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_lease(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1LeaseList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_lease_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_lease # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E5 >>> thread = api.list_namespaced_lease_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E5 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1LeaseList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1LeaseList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_lease_with_http_info(self, namespace, **kwargs): # noqa: E5 path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_lease(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespaced_lease(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Lease If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_lease # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) >>> thread = api.patch_namespaced_lease_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1Lease + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Lease, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,22 +1080,25 @@ def read_namespaced_lease(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_lease(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Lease If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_lease_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_lease # noqa: E501 @@ -939,41 +1109,60 @@ def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # no >>> thread = api.read_namespaced_lease_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1Lease + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Lease, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -984,11 +1173,11 @@ def read_namespaced_lease_with_http_info(self, name, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1029,23 +1218,26 @@ def replace_namespaced_lease(self, name, namespace, body, **kwargs): # noqa: E5 >>> thread = api.replace_namespaced_lease(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Lease body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Lease If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_lease_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_lease # noqa: E501 @@ -1056,46 +1248,66 @@ def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwarg >>> thread = api.replace_namespaced_lease_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Lease (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Lease body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1Lease + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Lease, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_lease" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_lease`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_lease`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_lease`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_lease`") # noqa: E501 collection_formats = {} @@ -1106,11 +1318,11 @@ def replace_namespaced_lease_with_http_info(self, name, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/core_api.py b/kubernetes/client/api/core_api.py index 13c8db56f6..a2cb31e7e1 100644 --- a/kubernetes/client/api/core_api.py +++ b/kubernetes/client/api/core_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class CoreApi(object): @@ -41,17 +45,20 @@ def get_api_versions(self, **kwargs): # noqa: E501 >>> thread = api.get_api_versions(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIVersions If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_versions_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_versions_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_versions_with_http_info(**kwargs) # noqa: E501 def get_api_versions_with_http_info(self, **kwargs): # noqa: E501 """get_api_versions # noqa: E501 @@ -62,23 +69,37 @@ def get_api_versions_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_versions_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIVersions + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIVersions, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_versions" % key ) diff --git a/kubernetes/client/api/core_v1_api.py b/kubernetes/client/api/core_v1_api.py index 559e513f51..f6020c2d0f 100644 --- a/kubernetes/client/api/core_v1_api.py +++ b/kubernetes/client/api/core_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class CoreV1Api(object): @@ -41,20 +45,23 @@ def connect_delete_namespaced_pod_proxy(self, name, namespace, **kwargs): # noq >>> thread = api.connect_delete_namespaced_pod_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_delete_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_delete_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_delete_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_delete_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_delete_namespaced_pod_proxy # noqa: E501 @@ -65,39 +72,56 @@ def connect_delete_namespaced_pod_proxy_with_http_info(self, name, namespace, ** >>> thread = api.connect_delete_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_namespaced_pod_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} @@ -108,7 +132,7 @@ def connect_delete_namespaced_pod_proxy_with_http_info(self, name, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -149,21 +173,24 @@ def connect_delete_namespaced_pod_proxy_with_path(self, name, namespace, path, * >>> thread = api.connect_delete_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_delete_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_delete_namespaced_pod_proxy_with_path # noqa: E501 @@ -174,44 +201,62 @@ def connect_delete_namespaced_pod_proxy_with_path_with_http_info(self, name, nam >>> thread = api.connect_delete_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_namespaced_pod_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -224,7 +269,7 @@ def connect_delete_namespaced_pod_proxy_with_path_with_http_info(self, name, nam path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -265,20 +310,23 @@ def connect_delete_namespaced_service_proxy(self, name, namespace, **kwargs): # >>> thread = api.connect_delete_namespaced_service_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_delete_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_delete_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_delete_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_delete_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_delete_namespaced_service_proxy # noqa: E501 @@ -289,39 +337,56 @@ def connect_delete_namespaced_service_proxy_with_http_info(self, name, namespace >>> thread = api.connect_delete_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_namespaced_service_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy`") # noqa: E501 collection_formats = {} @@ -332,7 +397,7 @@ def connect_delete_namespaced_service_proxy_with_http_info(self, name, namespace path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -373,21 +438,24 @@ def connect_delete_namespaced_service_proxy_with_path(self, name, namespace, pat >>> thread = api.connect_delete_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_delete_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_delete_namespaced_service_proxy_with_path # noqa: E501 @@ -398,44 +466,62 @@ def connect_delete_namespaced_service_proxy_with_path_with_http_info(self, name, >>> thread = api.connect_delete_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_namespaced_service_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_delete_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_delete_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_delete_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -448,7 +534,7 @@ def connect_delete_namespaced_service_proxy_with_path_with_http_info(self, name, path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -489,19 +575,22 @@ def connect_delete_node_proxy(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_delete_node_proxy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_delete_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.connect_delete_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.connect_delete_node_proxy_with_http_info(name, **kwargs) # noqa: E501 def connect_delete_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 """connect_delete_node_proxy # noqa: E501 @@ -512,34 +601,50 @@ def connect_delete_node_proxy_with_http_info(self, name, **kwargs): # noqa: E50 >>> thread = api.connect_delete_node_proxy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_node_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_node_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_delete_node_proxy`") # noqa: E501 collection_formats = {} @@ -548,7 +653,7 @@ def connect_delete_node_proxy_with_http_info(self, name, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -589,20 +694,23 @@ def connect_delete_node_proxy_with_path(self, name, path, **kwargs): # noqa: E5 >>> thread = api.connect_delete_node_proxy_with_path(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_delete_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_delete_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - return data + return self.connect_delete_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 def connect_delete_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 """connect_delete_node_proxy_with_path # noqa: E501 @@ -613,39 +721,56 @@ def connect_delete_node_proxy_with_path_with_http_info(self, name, path, **kwarg >>> thread = api.connect_delete_node_proxy_with_path_with_http_info(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_delete_node_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_delete_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_delete_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_delete_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_delete_node_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -656,7 +781,7 @@ def connect_delete_node_proxy_with_path_with_http_info(self, name, path, **kwarg path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -697,7 +822,7 @@ def connect_get_namespaced_pod_attach(self, name, namespace, **kwargs): # noqa: >>> thread = api.connect_get_namespaced_pod_attach(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodAttachOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. @@ -705,16 +830,19 @@ def connect_get_namespaced_pod_attach(self, name, namespace, **kwargs): # noqa: :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_get_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_get_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_get_namespaced_pod_attach_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_get_namespaced_pod_attach # noqa: E501 @@ -725,7 +853,7 @@ def connect_get_namespaced_pod_attach_with_http_info(self, name, namespace, **kw >>> thread = api.connect_get_namespaced_pod_attach_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodAttachOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. @@ -733,35 +861,56 @@ def connect_get_namespaced_pod_attach_with_http_info(self, name, namespace, **kw :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'container', 'stderr', 'stdin', 'stdout', 'tty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'container', + 'stderr', + 'stdin', + 'stdout', + 'tty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_attach" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_attach`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_attach`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_attach`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_attach`") # noqa: E501 collection_formats = {} @@ -772,15 +921,15 @@ def connect_get_namespaced_pod_attach_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'container' in local_var_params: + if 'container' in local_var_params and local_var_params['container'] is not None: # noqa: E501 query_params.append(('container', local_var_params['container'])) # noqa: E501 - if 'stderr' in local_var_params: + if 'stderr' in local_var_params and local_var_params['stderr'] is not None: # noqa: E501 query_params.append(('stderr', local_var_params['stderr'])) # noqa: E501 - if 'stdin' in local_var_params: + if 'stdin' in local_var_params and local_var_params['stdin'] is not None: # noqa: E501 query_params.append(('stdin', local_var_params['stdin'])) # noqa: E501 - if 'stdout' in local_var_params: + if 'stdout' in local_var_params and local_var_params['stdout'] is not None: # noqa: E501 query_params.append(('stdout', local_var_params['stdout'])) # noqa: E501 - if 'tty' in local_var_params: + if 'tty' in local_var_params and local_var_params['tty'] is not None: # noqa: E501 query_params.append(('tty', local_var_params['tty'])) # noqa: E501 header_params = {} @@ -821,7 +970,7 @@ def connect_get_namespaced_pod_exec(self, name, namespace, **kwargs): # noqa: E >>> thread = api.connect_get_namespaced_pod_exec(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodExecOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str command: Command is the remote command to execute. argv array. Not executed within a shell. @@ -830,16 +979,19 @@ def connect_get_namespaced_pod_exec(self, name, namespace, **kwargs): # noqa: E :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_get_namespaced_pod_exec_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_get_namespaced_pod_exec # noqa: E501 @@ -850,7 +1002,7 @@ def connect_get_namespaced_pod_exec_with_http_info(self, name, namespace, **kwar >>> thread = api.connect_get_namespaced_pod_exec_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodExecOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str command: Command is the remote command to execute. argv array. Not executed within a shell. @@ -859,35 +1011,57 @@ def connect_get_namespaced_pod_exec_with_http_info(self, name, namespace, **kwar :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'command', 'container', 'stderr', 'stdin', 'stdout', 'tty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'command', + 'container', + 'stderr', + 'stdin', + 'stdout', + 'tty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_exec" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_exec`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_exec`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_exec`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_exec`") # noqa: E501 collection_formats = {} @@ -898,17 +1072,17 @@ def connect_get_namespaced_pod_exec_with_http_info(self, name, namespace, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'command' in local_var_params: + if 'command' in local_var_params and local_var_params['command'] is not None: # noqa: E501 query_params.append(('command', local_var_params['command'])) # noqa: E501 - if 'container' in local_var_params: + if 'container' in local_var_params and local_var_params['container'] is not None: # noqa: E501 query_params.append(('container', local_var_params['container'])) # noqa: E501 - if 'stderr' in local_var_params: + if 'stderr' in local_var_params and local_var_params['stderr'] is not None: # noqa: E501 query_params.append(('stderr', local_var_params['stderr'])) # noqa: E501 - if 'stdin' in local_var_params: + if 'stdin' in local_var_params and local_var_params['stdin'] is not None: # noqa: E501 query_params.append(('stdin', local_var_params['stdin'])) # noqa: E501 - if 'stdout' in local_var_params: + if 'stdout' in local_var_params and local_var_params['stdout'] is not None: # noqa: E501 query_params.append(('stdout', local_var_params['stdout'])) # noqa: E501 - if 'tty' in local_var_params: + if 'tty' in local_var_params and local_var_params['tty'] is not None: # noqa: E501 query_params.append(('tty', local_var_params['tty'])) # noqa: E501 header_params = {} @@ -949,20 +1123,23 @@ def connect_get_namespaced_pod_portforward(self, name, namespace, **kwargs): # >>> thread = api.connect_get_namespaced_pod_portforward(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPortForwardOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param int ports: List of ports to forward Required when using WebSockets + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_get_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_get_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_get_namespaced_pod_portforward # noqa: E501 @@ -973,39 +1150,56 @@ def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, >>> thread = api.connect_get_namespaced_pod_portforward_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPortForwardOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param int ports: List of ports to forward Required when using WebSockets - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'ports'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'ports' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_portforward" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_portforward`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_portforward`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_portforward`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_portforward`") # noqa: E501 collection_formats = {} @@ -1016,7 +1210,7 @@ def connect_get_namespaced_pod_portforward_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'ports' in local_var_params: + if 'ports' in local_var_params and local_var_params['ports'] is not None: # noqa: E501 query_params.append(('ports', local_var_params['ports'])) # noqa: E501 header_params = {} @@ -1057,20 +1251,23 @@ def connect_get_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: >>> thread = api.connect_get_namespaced_pod_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_get_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_get_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_get_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_get_namespaced_pod_proxy # noqa: E501 @@ -1081,39 +1278,56 @@ def connect_get_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwa >>> thread = api.connect_get_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} @@ -1124,7 +1338,7 @@ def connect_get_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -1165,21 +1379,24 @@ def connect_get_namespaced_pod_proxy_with_path(self, name, namespace, path, **kw >>> thread = api.connect_get_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_get_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_get_namespaced_pod_proxy_with_path # noqa: E501 @@ -1190,44 +1407,62 @@ def connect_get_namespaced_pod_proxy_with_path_with_http_info(self, name, namesp >>> thread = api.connect_get_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_pod_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_get_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_get_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -1240,7 +1475,7 @@ def connect_get_namespaced_pod_proxy_with_path_with_http_info(self, name, namesp path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -1281,20 +1516,23 @@ def connect_get_namespaced_service_proxy(self, name, namespace, **kwargs): # no >>> thread = api.connect_get_namespaced_service_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_get_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_get_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_get_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_get_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_get_namespaced_service_proxy # noqa: E501 @@ -1305,39 +1543,56 @@ def connect_get_namespaced_service_proxy_with_http_info(self, name, namespace, * >>> thread = api.connect_get_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_service_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy`") # noqa: E501 collection_formats = {} @@ -1348,7 +1603,7 @@ def connect_get_namespaced_service_proxy_with_http_info(self, name, namespace, * path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -1389,21 +1644,24 @@ def connect_get_namespaced_service_proxy_with_path(self, name, namespace, path, >>> thread = api.connect_get_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_get_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_get_namespaced_service_proxy_with_path # noqa: E501 @@ -1414,44 +1672,62 @@ def connect_get_namespaced_service_proxy_with_path_with_http_info(self, name, na >>> thread = api.connect_get_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_namespaced_service_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_get_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_get_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_get_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_get_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -1464,7 +1740,7 @@ def connect_get_namespaced_service_proxy_with_path_with_http_info(self, name, na path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -1505,19 +1781,22 @@ def connect_get_node_proxy(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_get_node_proxy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_get_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.connect_get_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.connect_get_node_proxy_with_http_info(name, **kwargs) # noqa: E501 def connect_get_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 """connect_get_node_proxy # noqa: E501 @@ -1528,34 +1807,50 @@ def connect_get_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_get_node_proxy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_node_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_node_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_get_node_proxy`") # noqa: E501 collection_formats = {} @@ -1564,7 +1859,7 @@ def connect_get_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -1605,20 +1900,23 @@ def connect_get_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 >>> thread = api.connect_get_node_proxy_with_path(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_get_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_get_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - return data + return self.connect_get_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 def connect_get_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 """connect_get_node_proxy_with_path # noqa: E501 @@ -1629,39 +1927,56 @@ def connect_get_node_proxy_with_path_with_http_info(self, name, path, **kwargs): >>> thread = api.connect_get_node_proxy_with_path_with_http_info(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_get_node_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_get_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_get_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_get_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_get_node_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -1672,7 +1987,7 @@ def connect_get_node_proxy_with_path_with_http_info(self, name, path, **kwargs): path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -1713,20 +2028,23 @@ def connect_head_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: >>> thread = api.connect_head_namespaced_pod_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_head_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_head_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_head_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_head_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_head_namespaced_pod_proxy # noqa: E501 @@ -1737,39 +2055,56 @@ def connect_head_namespaced_pod_proxy_with_http_info(self, name, namespace, **kw >>> thread = api.connect_head_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_namespaced_pod_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_head_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} @@ -1780,7 +2115,7 @@ def connect_head_namespaced_pod_proxy_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -1821,21 +2156,24 @@ def connect_head_namespaced_pod_proxy_with_path(self, name, namespace, path, **k >>> thread = api.connect_head_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_head_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_head_namespaced_pod_proxy_with_path # noqa: E501 @@ -1846,44 +2184,62 @@ def connect_head_namespaced_pod_proxy_with_path_with_http_info(self, name, names >>> thread = api.connect_head_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_namespaced_pod_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_head_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_head_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_head_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -1896,7 +2252,7 @@ def connect_head_namespaced_pod_proxy_with_path_with_http_info(self, name, names path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -1937,20 +2293,23 @@ def connect_head_namespaced_service_proxy(self, name, namespace, **kwargs): # n >>> thread = api.connect_head_namespaced_service_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_head_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_head_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_head_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_head_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_head_namespaced_service_proxy # noqa: E501 @@ -1961,39 +2320,56 @@ def connect_head_namespaced_service_proxy_with_http_info(self, name, namespace, >>> thread = api.connect_head_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_namespaced_service_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_head_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_service_proxy`") # noqa: E501 collection_formats = {} @@ -2004,7 +2380,7 @@ def connect_head_namespaced_service_proxy_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -2045,21 +2421,24 @@ def connect_head_namespaced_service_proxy_with_path(self, name, namespace, path, >>> thread = api.connect_head_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_head_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_head_namespaced_service_proxy_with_path # noqa: E501 @@ -2070,44 +2449,62 @@ def connect_head_namespaced_service_proxy_with_path_with_http_info(self, name, n >>> thread = api.connect_head_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_namespaced_service_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_head_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_head_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_head_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_head_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -2120,7 +2517,7 @@ def connect_head_namespaced_service_proxy_with_path_with_http_info(self, name, n path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -2161,19 +2558,22 @@ def connect_head_node_proxy(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_head_node_proxy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_head_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.connect_head_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.connect_head_node_proxy_with_http_info(name, **kwargs) # noqa: E501 def connect_head_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 """connect_head_node_proxy # noqa: E501 @@ -2184,34 +2584,50 @@ def connect_head_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_head_node_proxy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_node_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_node_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_head_node_proxy`") # noqa: E501 collection_formats = {} @@ -2220,7 +2636,7 @@ def connect_head_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -2261,20 +2677,23 @@ def connect_head_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 >>> thread = api.connect_head_node_proxy_with_path(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_head_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_head_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - return data + return self.connect_head_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 def connect_head_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 """connect_head_node_proxy_with_path # noqa: E501 @@ -2285,39 +2704,56 @@ def connect_head_node_proxy_with_path_with_http_info(self, name, path, **kwargs) >>> thread = api.connect_head_node_proxy_with_path_with_http_info(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_head_node_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_head_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_head_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_head_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_head_node_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -2328,7 +2764,7 @@ def connect_head_node_proxy_with_path_with_http_info(self, name, path, **kwargs) path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -2369,20 +2805,23 @@ def connect_options_namespaced_pod_proxy(self, name, namespace, **kwargs): # no >>> thread = api.connect_options_namespaced_pod_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_options_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_options_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_options_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_options_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_options_namespaced_pod_proxy # noqa: E501 @@ -2393,39 +2832,56 @@ def connect_options_namespaced_pod_proxy_with_http_info(self, name, namespace, * >>> thread = api.connect_options_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_namespaced_pod_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} @@ -2436,7 +2892,7 @@ def connect_options_namespaced_pod_proxy_with_http_info(self, name, namespace, * path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -2477,21 +2933,24 @@ def connect_options_namespaced_pod_proxy_with_path(self, name, namespace, path, >>> thread = api.connect_options_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_options_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_options_namespaced_pod_proxy_with_path # noqa: E501 @@ -2502,44 +2961,62 @@ def connect_options_namespaced_pod_proxy_with_path_with_http_info(self, name, na >>> thread = api.connect_options_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_namespaced_pod_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_options_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_options_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -2552,7 +3029,7 @@ def connect_options_namespaced_pod_proxy_with_path_with_http_info(self, name, na path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -2593,20 +3070,23 @@ def connect_options_namespaced_service_proxy(self, name, namespace, **kwargs): >>> thread = api.connect_options_namespaced_service_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_options_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_options_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_options_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_options_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_options_namespaced_service_proxy # noqa: E501 @@ -2617,39 +3097,56 @@ def connect_options_namespaced_service_proxy_with_http_info(self, name, namespac >>> thread = api.connect_options_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_namespaced_service_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy`") # noqa: E501 collection_formats = {} @@ -2660,7 +3157,7 @@ def connect_options_namespaced_service_proxy_with_http_info(self, name, namespac path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -2701,21 +3198,24 @@ def connect_options_namespaced_service_proxy_with_path(self, name, namespace, pa >>> thread = api.connect_options_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_options_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_options_namespaced_service_proxy_with_path # noqa: E501 @@ -2726,44 +3226,62 @@ def connect_options_namespaced_service_proxy_with_path_with_http_info(self, name >>> thread = api.connect_options_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_namespaced_service_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_options_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_options_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_options_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_options_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -2776,7 +3294,7 @@ def connect_options_namespaced_service_proxy_with_path_with_http_info(self, name path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -2817,19 +3335,22 @@ def connect_options_node_proxy(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_options_node_proxy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_options_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.connect_options_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.connect_options_node_proxy_with_http_info(name, **kwargs) # noqa: E501 def connect_options_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 """connect_options_node_proxy # noqa: E501 @@ -2840,34 +3361,50 @@ def connect_options_node_proxy_with_http_info(self, name, **kwargs): # noqa: E5 >>> thread = api.connect_options_node_proxy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_node_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_node_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_options_node_proxy`") # noqa: E501 collection_formats = {} @@ -2876,7 +3413,7 @@ def connect_options_node_proxy_with_http_info(self, name, **kwargs): # noqa: E5 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -2917,20 +3454,23 @@ def connect_options_node_proxy_with_path(self, name, path, **kwargs): # noqa: E >>> thread = api.connect_options_node_proxy_with_path(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_options_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_options_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - return data + return self.connect_options_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 def connect_options_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 """connect_options_node_proxy_with_path # noqa: E501 @@ -2941,39 +3481,56 @@ def connect_options_node_proxy_with_path_with_http_info(self, name, path, **kwar >>> thread = api.connect_options_node_proxy_with_path_with_http_info(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_options_node_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_options_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_options_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_options_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_options_node_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -2984,7 +3541,7 @@ def connect_options_node_proxy_with_path_with_http_info(self, name, path, **kwar path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -3025,20 +3582,23 @@ def connect_patch_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa >>> thread = api.connect_patch_namespaced_pod_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_patch_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_patch_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_patch_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_patch_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_patch_namespaced_pod_proxy # noqa: E501 @@ -3049,39 +3609,56 @@ def connect_patch_namespaced_pod_proxy_with_http_info(self, name, namespace, **k >>> thread = api.connect_patch_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_namespaced_pod_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} @@ -3092,7 +3669,7 @@ def connect_patch_namespaced_pod_proxy_with_http_info(self, name, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -3133,21 +3710,24 @@ def connect_patch_namespaced_pod_proxy_with_path(self, name, namespace, path, ** >>> thread = api.connect_patch_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_patch_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_patch_namespaced_pod_proxy_with_path # noqa: E501 @@ -3158,44 +3738,62 @@ def connect_patch_namespaced_pod_proxy_with_path_with_http_info(self, name, name >>> thread = api.connect_patch_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_namespaced_pod_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_patch_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_patch_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -3208,7 +3806,7 @@ def connect_patch_namespaced_pod_proxy_with_path_with_http_info(self, name, name path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -3249,20 +3847,23 @@ def connect_patch_namespaced_service_proxy(self, name, namespace, **kwargs): # >>> thread = api.connect_patch_namespaced_service_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_patch_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_patch_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_patch_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_patch_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_patch_namespaced_service_proxy # noqa: E501 @@ -3273,39 +3874,56 @@ def connect_patch_namespaced_service_proxy_with_http_info(self, name, namespace, >>> thread = api.connect_patch_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_namespaced_service_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_service_proxy`") # noqa: E501 collection_formats = {} @@ -3316,7 +3934,7 @@ def connect_patch_namespaced_service_proxy_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -3357,21 +3975,24 @@ def connect_patch_namespaced_service_proxy_with_path(self, name, namespace, path >>> thread = api.connect_patch_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_patch_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_patch_namespaced_service_proxy_with_path # noqa: E501 @@ -3382,44 +4003,62 @@ def connect_patch_namespaced_service_proxy_with_path_with_http_info(self, name, >>> thread = api.connect_patch_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_namespaced_service_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_patch_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_patch_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_patch_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_patch_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -3432,7 +4071,7 @@ def connect_patch_namespaced_service_proxy_with_path_with_http_info(self, name, path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -3473,19 +4112,22 @@ def connect_patch_node_proxy(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_patch_node_proxy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_patch_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.connect_patch_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.connect_patch_node_proxy_with_http_info(name, **kwargs) # noqa: E501 def connect_patch_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 """connect_patch_node_proxy # noqa: E501 @@ -3496,34 +4138,50 @@ def connect_patch_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_patch_node_proxy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_node_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_node_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_patch_node_proxy`") # noqa: E501 collection_formats = {} @@ -3532,7 +4190,7 @@ def connect_patch_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -3573,20 +4231,23 @@ def connect_patch_node_proxy_with_path(self, name, path, **kwargs): # noqa: E50 >>> thread = api.connect_patch_node_proxy_with_path(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_patch_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_patch_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - return data + return self.connect_patch_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 def connect_patch_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 """connect_patch_node_proxy_with_path # noqa: E501 @@ -3597,39 +4258,56 @@ def connect_patch_node_proxy_with_path_with_http_info(self, name, path, **kwargs >>> thread = api.connect_patch_node_proxy_with_path_with_http_info(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_patch_node_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_patch_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_patch_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_patch_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_patch_node_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -3640,7 +4318,7 @@ def connect_patch_node_proxy_with_path_with_http_info(self, name, path, **kwargs path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -3681,7 +4359,7 @@ def connect_post_namespaced_pod_attach(self, name, namespace, **kwargs): # noqa >>> thread = api.connect_post_namespaced_pod_attach(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodAttachOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. @@ -3689,16 +4367,19 @@ def connect_post_namespaced_pod_attach(self, name, namespace, **kwargs): # noqa :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_post_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_post_namespaced_pod_attach_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_post_namespaced_pod_attach_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_post_namespaced_pod_attach # noqa: E501 @@ -3709,7 +4390,7 @@ def connect_post_namespaced_pod_attach_with_http_info(self, name, namespace, **k >>> thread = api.connect_post_namespaced_pod_attach_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodAttachOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str container: The container in which to execute the command. Defaults to only container if there is only one container in the pod. @@ -3717,35 +4398,56 @@ def connect_post_namespaced_pod_attach_with_http_info(self, name, namespace, **k :param bool stdin: Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'container', 'stderr', 'stdin', 'stdout', 'tty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'container', + 'stderr', + 'stdin', + 'stdout', + 'tty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_attach" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_attach`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_attach`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_attach`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_attach`") # noqa: E501 collection_formats = {} @@ -3756,15 +4458,15 @@ def connect_post_namespaced_pod_attach_with_http_info(self, name, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'container' in local_var_params: + if 'container' in local_var_params and local_var_params['container'] is not None: # noqa: E501 query_params.append(('container', local_var_params['container'])) # noqa: E501 - if 'stderr' in local_var_params: + if 'stderr' in local_var_params and local_var_params['stderr'] is not None: # noqa: E501 query_params.append(('stderr', local_var_params['stderr'])) # noqa: E501 - if 'stdin' in local_var_params: + if 'stdin' in local_var_params and local_var_params['stdin'] is not None: # noqa: E501 query_params.append(('stdin', local_var_params['stdin'])) # noqa: E501 - if 'stdout' in local_var_params: + if 'stdout' in local_var_params and local_var_params['stdout'] is not None: # noqa: E501 query_params.append(('stdout', local_var_params['stdout'])) # noqa: E501 - if 'tty' in local_var_params: + if 'tty' in local_var_params and local_var_params['tty'] is not None: # noqa: E501 query_params.append(('tty', local_var_params['tty'])) # noqa: E501 header_params = {} @@ -3805,7 +4507,7 @@ def connect_post_namespaced_pod_exec(self, name, namespace, **kwargs): # noqa: >>> thread = api.connect_post_namespaced_pod_exec(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodExecOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str command: Command is the remote command to execute. argv array. Not executed within a shell. @@ -3814,16 +4516,19 @@ def connect_post_namespaced_pod_exec(self, name, namespace, **kwargs): # noqa: :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_post_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_post_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_post_namespaced_pod_exec_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_post_namespaced_pod_exec # noqa: E501 @@ -3834,7 +4539,7 @@ def connect_post_namespaced_pod_exec_with_http_info(self, name, namespace, **kwa >>> thread = api.connect_post_namespaced_pod_exec_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodExecOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str command: Command is the remote command to execute. argv array. Not executed within a shell. @@ -3843,35 +4548,57 @@ def connect_post_namespaced_pod_exec_with_http_info(self, name, namespace, **kwa :param bool stdin: Redirect the standard input stream of the pod for this call. Defaults to false. :param bool stdout: Redirect the standard output stream of the pod for this call. Defaults to true. :param bool tty: TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'command', 'container', 'stderr', 'stdin', 'stdout', 'tty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'command', + 'container', + 'stderr', + 'stdin', + 'stdout', + 'tty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_exec" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_exec`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_exec`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_exec`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_exec`") # noqa: E501 collection_formats = {} @@ -3882,17 +4609,17 @@ def connect_post_namespaced_pod_exec_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'command' in local_var_params: + if 'command' in local_var_params and local_var_params['command'] is not None: # noqa: E501 query_params.append(('command', local_var_params['command'])) # noqa: E501 - if 'container' in local_var_params: + if 'container' in local_var_params and local_var_params['container'] is not None: # noqa: E501 query_params.append(('container', local_var_params['container'])) # noqa: E501 - if 'stderr' in local_var_params: + if 'stderr' in local_var_params and local_var_params['stderr'] is not None: # noqa: E501 query_params.append(('stderr', local_var_params['stderr'])) # noqa: E501 - if 'stdin' in local_var_params: + if 'stdin' in local_var_params and local_var_params['stdin'] is not None: # noqa: E501 query_params.append(('stdin', local_var_params['stdin'])) # noqa: E501 - if 'stdout' in local_var_params: + if 'stdout' in local_var_params and local_var_params['stdout'] is not None: # noqa: E501 query_params.append(('stdout', local_var_params['stdout'])) # noqa: E501 - if 'tty' in local_var_params: + if 'tty' in local_var_params and local_var_params['tty'] is not None: # noqa: E501 query_params.append(('tty', local_var_params['tty'])) # noqa: E501 header_params = {} @@ -3933,20 +4660,23 @@ def connect_post_namespaced_pod_portforward(self, name, namespace, **kwargs): # >>> thread = api.connect_post_namespaced_pod_portforward(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPortForwardOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param int ports: List of ports to forward Required when using WebSockets + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_post_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_post_namespaced_pod_portforward_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_post_namespaced_pod_portforward # noqa: E501 @@ -3957,39 +4687,56 @@ def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace >>> thread = api.connect_post_namespaced_pod_portforward_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPortForwardOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param int ports: List of ports to forward Required when using WebSockets - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'ports'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'ports' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_portforward" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_portforward`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_portforward`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_portforward`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_portforward`") # noqa: E501 collection_formats = {} @@ -4000,7 +4747,7 @@ def connect_post_namespaced_pod_portforward_with_http_info(self, name, namespace path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'ports' in local_var_params: + if 'ports' in local_var_params and local_var_params['ports'] is not None: # noqa: E501 query_params.append(('ports', local_var_params['ports'])) # noqa: E501 header_params = {} @@ -4041,20 +4788,23 @@ def connect_post_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: >>> thread = api.connect_post_namespaced_pod_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_post_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_post_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_post_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_post_namespaced_pod_proxy # noqa: E501 @@ -4065,39 +4815,56 @@ def connect_post_namespaced_pod_proxy_with_http_info(self, name, namespace, **kw >>> thread = api.connect_post_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} @@ -4108,7 +4875,7 @@ def connect_post_namespaced_pod_proxy_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -4149,21 +4916,24 @@ def connect_post_namespaced_pod_proxy_with_path(self, name, namespace, path, **k >>> thread = api.connect_post_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_post_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_post_namespaced_pod_proxy_with_path # noqa: E501 @@ -4174,44 +4944,62 @@ def connect_post_namespaced_pod_proxy_with_path_with_http_info(self, name, names >>> thread = api.connect_post_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_pod_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_post_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_post_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -4224,7 +5012,7 @@ def connect_post_namespaced_pod_proxy_with_path_with_http_info(self, name, names path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -4265,20 +5053,23 @@ def connect_post_namespaced_service_proxy(self, name, namespace, **kwargs): # n >>> thread = api.connect_post_namespaced_service_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_post_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_post_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_post_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_post_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_post_namespaced_service_proxy # noqa: E501 @@ -4289,39 +5080,56 @@ def connect_post_namespaced_service_proxy_with_http_info(self, name, namespace, >>> thread = api.connect_post_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_service_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy`") # noqa: E501 collection_formats = {} @@ -4332,7 +5140,7 @@ def connect_post_namespaced_service_proxy_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -4373,21 +5181,24 @@ def connect_post_namespaced_service_proxy_with_path(self, name, namespace, path, >>> thread = api.connect_post_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_post_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_post_namespaced_service_proxy_with_path # noqa: E501 @@ -4398,44 +5209,62 @@ def connect_post_namespaced_service_proxy_with_path_with_http_info(self, name, n >>> thread = api.connect_post_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_namespaced_service_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_post_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_post_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_post_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_post_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -4448,7 +5277,7 @@ def connect_post_namespaced_service_proxy_with_path_with_http_info(self, name, n path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -4489,19 +5318,22 @@ def connect_post_node_proxy(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_post_node_proxy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_post_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.connect_post_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.connect_post_node_proxy_with_http_info(name, **kwargs) # noqa: E501 def connect_post_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 """connect_post_node_proxy # noqa: E501 @@ -4512,34 +5344,50 @@ def connect_post_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_post_node_proxy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_node_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_node_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_post_node_proxy`") # noqa: E501 collection_formats = {} @@ -4548,7 +5396,7 @@ def connect_post_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -4589,20 +5437,23 @@ def connect_post_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 >>> thread = api.connect_post_node_proxy_with_path(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_post_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_post_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - return data + return self.connect_post_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 def connect_post_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 """connect_post_node_proxy_with_path # noqa: E501 @@ -4613,39 +5464,56 @@ def connect_post_node_proxy_with_path_with_http_info(self, name, path, **kwargs) >>> thread = api.connect_post_node_proxy_with_path_with_http_info(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_post_node_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_post_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_post_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_post_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_post_node_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -4656,7 +5524,7 @@ def connect_post_node_proxy_with_path_with_http_info(self, name, path, **kwargs) path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -4697,20 +5565,23 @@ def connect_put_namespaced_pod_proxy(self, name, namespace, **kwargs): # noqa: >>> thread = api.connect_put_namespaced_pod_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_put_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_put_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_put_namespaced_pod_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_put_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_put_namespaced_pod_proxy # noqa: E501 @@ -4721,39 +5592,56 @@ def connect_put_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwa >>> thread = api.connect_put_namespaced_pod_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_namespaced_pod_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy`") # noqa: E501 collection_formats = {} @@ -4764,7 +5652,7 @@ def connect_put_namespaced_pod_proxy_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -4805,21 +5693,24 @@ def connect_put_namespaced_pod_proxy_with_path(self, name, namespace, path, **kw >>> thread = api.connect_put_namespaced_pod_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_put_namespaced_pod_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_put_namespaced_pod_proxy_with_path # noqa: E501 @@ -4830,44 +5721,62 @@ def connect_put_namespaced_pod_proxy_with_path_with_http_info(self, name, namesp >>> thread = api.connect_put_namespaced_pod_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to pod. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_namespaced_pod_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_put_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_pod_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_pod_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_put_namespaced_pod_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -4880,7 +5789,7 @@ def connect_put_namespaced_pod_proxy_with_path_with_http_info(self, name, namesp path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -4921,20 +5830,23 @@ def connect_put_namespaced_service_proxy(self, name, namespace, **kwargs): # no >>> thread = api.connect_put_namespaced_service_proxy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_put_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.connect_put_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.connect_put_namespaced_service_proxy_with_http_info(name, namespace, **kwargs) # noqa: E501 def connect_put_namespaced_service_proxy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """connect_put_namespaced_service_proxy # noqa: E501 @@ -4945,39 +5857,56 @@ def connect_put_namespaced_service_proxy_with_http_info(self, name, namespace, * >>> thread = api.connect_put_namespaced_service_proxy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_namespaced_service_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy`") # noqa: E501 collection_formats = {} @@ -4988,7 +5917,7 @@ def connect_put_namespaced_service_proxy_with_http_info(self, name, namespace, * path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -5029,21 +5958,24 @@ def connect_put_namespaced_service_proxy_with_path(self, name, namespace, path, >>> thread = api.connect_put_namespaced_service_proxy_with_path(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 - return data + return self.connect_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, **kwargs) # noqa: E501 def connect_put_namespaced_service_proxy_with_path_with_http_info(self, name, namespace, path, **kwargs): # noqa: E501 """connect_put_namespaced_service_proxy_with_path # noqa: E501 @@ -5054,44 +5986,62 @@ def connect_put_namespaced_service_proxy_with_path_with_http_info(self, name, na >>> thread = api.connect_put_namespaced_service_proxy_with_path_with_http_info(name, namespace, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceProxyOptions (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str path: path to the resource (required) :param str path2: Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_namespaced_service_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_put_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `connect_put_namespaced_service_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_put_namespaced_service_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_put_namespaced_service_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -5104,7 +6054,7 @@ def connect_put_namespaced_service_proxy_with_path_with_http_info(self, name, na path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -5145,19 +6095,22 @@ def connect_put_node_proxy(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_put_node_proxy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_put_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.connect_put_node_proxy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.connect_put_node_proxy_with_http_info(name, **kwargs) # noqa: E501 def connect_put_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 """connect_put_node_proxy # noqa: E501 @@ -5168,34 +6121,50 @@ def connect_put_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.connect_put_node_proxy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_node_proxy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_node_proxy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_put_node_proxy`") # noqa: E501 collection_formats = {} @@ -5204,7 +6173,7 @@ def connect_put_node_proxy_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'path' in local_var_params: + if 'path' in local_var_params and local_var_params['path'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path'])) # noqa: E501 header_params = {} @@ -5245,20 +6214,23 @@ def connect_put_node_proxy_with_path(self, name, path, **kwargs): # noqa: E501 >>> thread = api.connect_put_node_proxy_with_path(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.connect_put_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - else: - (data) = self.connect_put_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 - return data + return self.connect_put_node_proxy_with_path_with_http_info(name, path, **kwargs) # noqa: E501 def connect_put_node_proxy_with_path_with_http_info(self, name, path, **kwargs): # noqa: E501 """connect_put_node_proxy_with_path # noqa: E501 @@ -5269,39 +6241,56 @@ def connect_put_node_proxy_with_path_with_http_info(self, name, path, **kwargs): >>> thread = api.connect_put_node_proxy_with_path_with_http_info(name, path, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NodeProxyOptions (required) :param str path: path to the resource (required) :param str path2: Path is the URL path to use for the current proxy request to node. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'path', 'path2'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'path', + 'path2' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method connect_put_node_proxy_with_path" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `connect_put_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `connect_put_node_proxy_with_path`") # noqa: E501 # verify the required parameter 'path' is set - if ('path' not in local_var_params or - local_var_params['path'] is None): - raise ValueError("Missing the required parameter `path` when calling `connect_put_node_proxy_with_path`") # noqa: E501 + if self.api_client.client_side_validation and ('path' not in local_var_params or # noqa: E501 + local_var_params['path'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `path` when calling `connect_put_node_proxy_with_path`") # noqa: E501 collection_formats = {} @@ -5312,7 +6301,7 @@ def connect_put_node_proxy_with_path_with_http_info(self, name, path, **kwargs): path_params['path'] = local_var_params['path'] # noqa: E501 query_params = [] - if 'path2' in local_var_params: + if 'path2' in local_var_params and local_var_params['path2'] is not None: # noqa: E501 query_params.append(('path', local_var_params['path2'])) # noqa: E501 header_params = {} @@ -5353,21 +6342,24 @@ def create_namespace(self, body, **kwargs): # noqa: E501 >>> thread = api.create_namespace(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespace_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespace_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_namespace_with_http_info(body, **kwargs) # noqa: E501 def create_namespace_with_http_info(self, body, **kwargs): # noqa: E501 """create_namespace # noqa: E501 @@ -5378,47 +6370,65 @@ def create_namespace_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_namespace_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Namespace + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Namespace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespace" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespace`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespace`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -5461,22 +6471,25 @@ def create_namespaced_binding(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_binding(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Binding body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Binding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_binding # noqa: E501 @@ -5487,41 +6500,60 @@ def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): >>> thread = api.create_namespaced_binding_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Binding body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1Binding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Binding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_binding`") # noqa: E501 collection_formats = {} @@ -5530,11 +6562,11 @@ def create_namespaced_binding_with_http_info(self, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5577,22 +6609,25 @@ def create_namespaced_config_map(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_config_map(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ConfigMap body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_config_map_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_config_map # noqa: E501 @@ -5603,41 +6638,60 @@ def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_config_map_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ConfigMap body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ConfigMap + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ConfigMap, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_config_map" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_config_map`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_config_map`") # noqa: E501 collection_formats = {} @@ -5646,11 +6700,11 @@ def create_namespaced_config_map_with_http_info(self, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -5693,22 +6747,25 @@ def create_namespaced_endpoints(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_endpoints(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Endpoints body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_endpoints_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_endpoints # noqa: E501 @@ -5719,41 +6776,60 @@ def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): >>> thread = api.create_namespaced_endpoints_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Endpoints body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Endpoints + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Endpoints, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_endpoints" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_endpoints`") # noqa: E501 collection_formats = {} @@ -5762,11 +6838,11 @@ def create_namespaced_endpoints_with_http_info(self, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -5809,22 +6885,25 @@ def create_namespaced_event(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_event(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_event # noqa: E501 @@ -5835,41 +6914,60 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): # >>> thread = api.create_namespaced_event_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Event + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Event, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_event`") # noqa: E501 collection_formats = {} @@ -5878,11 +6976,11 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -5925,22 +7023,25 @@ def create_namespaced_limit_range(self, namespace, body, **kwargs): # noqa: E50 >>> thread = api.create_namespaced_limit_range(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_limit_range_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_limit_range # noqa: E501 @@ -5951,41 +7052,60 @@ def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs >>> thread = api.create_namespaced_limit_range_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1LimitRange + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1LimitRange, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_limit_range" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_limit_range`") # noqa: E501 collection_formats = {} @@ -5994,11 +7114,11 @@ def create_namespaced_limit_range_with_http_info(self, namespace, body, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6041,22 +7161,25 @@ def create_namespaced_persistent_volume_claim(self, namespace, body, **kwargs): >>> thread = api.create_namespaced_persistent_volume_claim(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_persistent_volume_claim # noqa: E501 @@ -6067,41 +7190,60 @@ def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, bo >>> thread = api.create_namespaced_persistent_volume_claim_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PersistentVolumeClaim + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeClaim, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_persistent_volume_claim" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} @@ -6110,11 +7252,11 @@ def create_namespaced_persistent_volume_claim_with_http_info(self, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6157,22 +7299,25 @@ def create_namespaced_pod(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_pod(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_pod_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_pod # noqa: E501 @@ -6183,41 +7328,60 @@ def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): # no >>> thread = api.create_namespaced_pod_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Pod + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Pod, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_pod`") # noqa: E501 collection_formats = {} @@ -6226,11 +7390,11 @@ def create_namespaced_pod_with_http_info(self, namespace, body, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6273,23 +7437,26 @@ def create_namespaced_pod_binding(self, name, namespace, body, **kwargs): # noq >>> thread = api.create_namespaced_pod_binding(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Binding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Binding body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Binding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_pod_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_pod_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_pod_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def create_namespaced_pod_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """create_namespaced_pod_binding # noqa: E501 @@ -6300,46 +7467,66 @@ def create_namespaced_pod_binding_with_http_info(self, name, namespace, body, ** >>> thread = api.create_namespaced_pod_binding_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Binding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Binding body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1Binding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Binding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_pod_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `create_namespaced_pod_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_pod_binding`") # noqa: E501 collection_formats = {} @@ -6350,11 +7537,11 @@ def create_namespaced_pod_binding_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6397,23 +7584,26 @@ def create_namespaced_pod_eviction(self, name, namespace, body, **kwargs): # no >>> thread = api.create_namespaced_pod_eviction(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Eviction (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Eviction body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Eviction If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_pod_eviction_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_pod_eviction_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_pod_eviction_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def create_namespaced_pod_eviction_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """create_namespaced_pod_eviction # noqa: E501 @@ -6424,46 +7614,66 @@ def create_namespaced_pod_eviction_with_http_info(self, name, namespace, body, * >>> thread = api.create_namespaced_pod_eviction_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Eviction (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Eviction body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Eviction + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Eviction, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_eviction" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_pod_eviction`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `create_namespaced_pod_eviction`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_eviction`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_eviction`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_eviction`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_pod_eviction`") # noqa: E501 collection_formats = {} @@ -6474,11 +7684,11 @@ def create_namespaced_pod_eviction_with_http_info(self, name, namespace, body, * path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6521,22 +7731,25 @@ def create_namespaced_pod_template(self, namespace, body, **kwargs): # noqa: E5 >>> thread = api.create_namespaced_pod_template(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PodTemplate body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_pod_template_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_pod_template # noqa: E501 @@ -6547,41 +7760,60 @@ def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwarg >>> thread = api.create_namespaced_pod_template_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PodTemplate body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PodTemplate + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PodTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_template" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_pod_template`") # noqa: E501 collection_formats = {} @@ -6590,11 +7822,11 @@ def create_namespaced_pod_template_with_http_info(self, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6637,22 +7869,25 @@ def create_namespaced_replication_controller(self, namespace, body, **kwargs): >>> thread = api.create_namespaced_replication_controller(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_replication_controller_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_replication_controller_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_replication_controller # noqa: E501 @@ -6663,41 +7898,60 @@ def create_namespaced_replication_controller_with_http_info(self, namespace, bod >>> thread = api.create_namespaced_replication_controller_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ReplicationController + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicationController, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_replication_controller" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_replication_controller`") # noqa: E501 collection_formats = {} @@ -6706,11 +7960,11 @@ def create_namespaced_replication_controller_with_http_info(self, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6753,22 +8007,25 @@ def create_namespaced_resource_quota(self, namespace, body, **kwargs): # noqa: >>> thread = api.create_namespaced_resource_quota(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_resource_quota_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_resource_quota # noqa: E501 @@ -6779,41 +8036,60 @@ def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwa >>> thread = api.create_namespaced_resource_quota_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ResourceQuota + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceQuota, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_resource_quota" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_resource_quota`") # noqa: E501 collection_formats = {} @@ -6822,11 +8098,11 @@ def create_namespaced_resource_quota_with_http_info(self, namespace, body, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6869,22 +8145,25 @@ def create_namespaced_secret(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_secret(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Secret body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Secret If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_secret_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_secret # noqa: E501 @@ -6895,41 +8174,60 @@ def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): # >>> thread = api.create_namespaced_secret_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Secret body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Secret + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Secret, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_secret" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_secret`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_secret`") # noqa: E501 collection_formats = {} @@ -6938,11 +8236,11 @@ def create_namespaced_secret_with_http_info(self, namespace, body, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -6985,22 +8283,25 @@ def create_namespaced_service(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_service(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_service_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_service_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_service_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_service # noqa: E501 @@ -7011,41 +8312,60 @@ def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): >>> thread = api.create_namespaced_service_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Service + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Service, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_service`") # noqa: E501 collection_formats = {} @@ -7054,11 +8374,11 @@ def create_namespaced_service_with_http_info(self, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7101,22 +8421,25 @@ def create_namespaced_service_account(self, namespace, body, **kwargs): # noqa: >>> thread = api.create_namespaced_service_account(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ServiceAccount body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_service_account_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_service_account_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_service_account # noqa: E501 @@ -7127,41 +8450,60 @@ def create_namespaced_service_account_with_http_info(self, namespace, body, **kw >>> thread = api.create_namespaced_service_account_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ServiceAccount body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ServiceAccount + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ServiceAccount, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_service_account" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_service_account`") # noqa: E501 collection_formats = {} @@ -7170,11 +8512,11 @@ def create_namespaced_service_account_with_http_info(self, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7217,23 +8559,26 @@ def create_namespaced_service_account_token(self, name, namespace, body, **kwarg >>> thread = api.create_namespaced_service_account_token(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the TokenRequest (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1TokenRequest body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1TokenRequest If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_service_account_token_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_service_account_token_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_service_account_token_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def create_namespaced_service_account_token_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """create_namespaced_service_account_token # noqa: E501 @@ -7244,46 +8589,66 @@ def create_namespaced_service_account_token_with_http_info(self, name, namespace >>> thread = api.create_namespaced_service_account_token_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the TokenRequest (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1TokenRequest body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1TokenRequest + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1TokenRequest, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_service_account_token" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_service_account_token`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `create_namespaced_service_account_token`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account_token`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_service_account_token`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_service_account_token`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_service_account_token`") # noqa: E501 collection_formats = {} @@ -7294,11 +8659,11 @@ def create_namespaced_service_account_token_with_http_info(self, name, namespace path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -7341,21 +8706,24 @@ def create_node(self, body, **kwargs): # noqa: E501 >>> thread = api.create_node(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1Node body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_node_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_node_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_node_with_http_info(body, **kwargs) # noqa: E501 def create_node_with_http_info(self, body, **kwargs): # noqa: E501 """create_node # noqa: E501 @@ -7366,47 +8734,65 @@ def create_node_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_node_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1Node body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Node + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Node, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_node`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_node`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7449,21 +8835,24 @@ def create_persistent_volume(self, body, **kwargs): # noqa: E501 >>> thread = api.create_persistent_volume(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1PersistentVolume body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_persistent_volume_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_persistent_volume_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_persistent_volume_with_http_info(body, **kwargs) # noqa: E501 def create_persistent_volume_with_http_info(self, body, **kwargs): # noqa: E501 """create_persistent_volume # noqa: E501 @@ -7474,47 +8863,65 @@ def create_persistent_volume_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_persistent_volume_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1PersistentVolume body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PersistentVolume + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolume, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_persistent_volume" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_persistent_volume`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_persistent_volume`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7557,10 +8964,9 @@ def delete_collection_namespaced_config_map(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_config_map(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -7571,18 +8977,20 @@ def delete_collection_namespaced_config_map(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_config_map # noqa: E501 @@ -7593,10 +9001,9 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw >>> thread = api.delete_collection_namespaced_config_map_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -7607,33 +9014,59 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_config_map" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_config_map`") # noqa: E501 collection_formats = {} @@ -7642,32 +9075,28 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -7675,8 +9104,8 @@ def delete_collection_namespaced_config_map_with_http_info(self, namespace, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -7709,10 +9138,9 @@ def delete_collection_namespaced_endpoints(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_endpoints(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -7723,18 +9151,20 @@ def delete_collection_namespaced_endpoints(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_endpoints # noqa: E501 @@ -7745,10 +9175,9 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa >>> thread = api.delete_collection_namespaced_endpoints_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -7759,33 +9188,59 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_endpoints" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_endpoints`") # noqa: E501 collection_formats = {} @@ -7794,32 +9249,28 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -7827,8 +9278,8 @@ def delete_collection_namespaced_endpoints_with_http_info(self, namespace, **kwa local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -7861,10 +9312,9 @@ def delete_collection_namespaced_event(self, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_collection_namespaced_event(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -7875,18 +9325,20 @@ def delete_collection_namespaced_event(self, namespace, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_event # noqa: E501 @@ -7897,10 +9349,9 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) >>> thread = api.delete_collection_namespaced_event_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -7911,33 +9362,59 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") # noqa: E501 collection_formats = {} @@ -7946,32 +9423,28 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -7979,8 +9452,8 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -8013,10 +9486,9 @@ def delete_collection_namespaced_limit_range(self, namespace, **kwargs): # noqa >>> thread = api.delete_collection_namespaced_limit_range(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8027,18 +9499,20 @@ def delete_collection_namespaced_limit_range(self, namespace, **kwargs): # noqa :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_limit_range # noqa: E501 @@ -8049,10 +9523,9 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k >>> thread = api.delete_collection_namespaced_limit_range_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8063,33 +9536,59 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_limit_range" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_limit_range`") # noqa: E501 collection_formats = {} @@ -8098,32 +9597,28 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8131,8 +9626,8 @@ def delete_collection_namespaced_limit_range_with_http_info(self, namespace, **k local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -8165,10 +9660,9 @@ def delete_collection_namespaced_persistent_volume_claim(self, namespace, **kwar >>> thread = api.delete_collection_namespaced_persistent_volume_claim(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8179,18 +9673,20 @@ def delete_collection_namespaced_persistent_volume_claim(self, namespace, **kwar :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_persistent_volume_claim # noqa: E501 @@ -8201,10 +9697,9 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na >>> thread = api.delete_collection_namespaced_persistent_volume_claim_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8215,33 +9710,59 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_persistent_volume_claim" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} @@ -8250,32 +9771,28 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8283,8 +9800,8 @@ def delete_collection_namespaced_persistent_volume_claim_with_http_info(self, na local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -8317,10 +9834,9 @@ def delete_collection_namespaced_pod(self, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_collection_namespaced_pod(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8331,18 +9847,20 @@ def delete_collection_namespaced_pod(self, namespace, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_pod # noqa: E501 @@ -8353,10 +9871,9 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): >>> thread = api.delete_collection_namespaced_pod_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8367,33 +9884,59 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_pod" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod`") # noqa: E501 collection_formats = {} @@ -8402,32 +9945,28 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8435,8 +9974,8 @@ def delete_collection_namespaced_pod_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -8469,10 +10008,9 @@ def delete_collection_namespaced_pod_template(self, namespace, **kwargs): # noq >>> thread = api.delete_collection_namespaced_pod_template(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8483,18 +10021,20 @@ def delete_collection_namespaced_pod_template(self, namespace, **kwargs): # noq :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_pod_template_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_pod_template # noqa: E501 @@ -8505,10 +10045,9 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** >>> thread = api.delete_collection_namespaced_pod_template_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8519,33 +10058,59 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_pod_template" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_template`") # noqa: E501 collection_formats = {} @@ -8554,32 +10119,28 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8587,8 +10148,8 @@ def delete_collection_namespaced_pod_template_with_http_info(self, namespace, ** local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -8621,10 +10182,9 @@ def delete_collection_namespaced_replication_controller(self, namespace, **kwarg >>> thread = api.delete_collection_namespaced_replication_controller(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8635,18 +10195,20 @@ def delete_collection_namespaced_replication_controller(self, namespace, **kwarg :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_replication_controller # noqa: E501 @@ -8657,10 +10219,9 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam >>> thread = api.delete_collection_namespaced_replication_controller_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8671,33 +10232,59 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_replication_controller" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replication_controller`") # noqa: E501 collection_formats = {} @@ -8706,32 +10293,28 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8739,8 +10322,8 @@ def delete_collection_namespaced_replication_controller_with_http_info(self, nam local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -8773,10 +10356,9 @@ def delete_collection_namespaced_resource_quota(self, namespace, **kwargs): # n >>> thread = api.delete_collection_namespaced_resource_quota(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8787,18 +10369,20 @@ def delete_collection_namespaced_resource_quota(self, namespace, **kwargs): # n :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_resource_quota # noqa: E501 @@ -8809,10 +10393,9 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, >>> thread = api.delete_collection_namespaced_resource_quota_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8823,33 +10406,59 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_resource_quota" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_quota`") # noqa: E501 collection_formats = {} @@ -8858,32 +10467,28 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -8891,8 +10496,8 @@ def delete_collection_namespaced_resource_quota_with_http_info(self, namespace, local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -8925,10 +10530,9 @@ def delete_collection_namespaced_secret(self, namespace, **kwargs): # noqa: E50 >>> thread = api.delete_collection_namespaced_secret(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8939,18 +10543,20 @@ def delete_collection_namespaced_secret(self, namespace, **kwargs): # noqa: E50 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_secret # noqa: E501 @@ -8961,10 +10567,9 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs >>> thread = api.delete_collection_namespaced_secret_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -8975,33 +10580,59 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_secret" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_secret`") # noqa: E501 collection_formats = {} @@ -9010,32 +10641,28 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -9043,8 +10670,8 @@ def delete_collection_namespaced_secret_with_http_info(self, namespace, **kwargs local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -9077,10 +10704,9 @@ def delete_collection_namespaced_service_account(self, namespace, **kwargs): # >>> thread = api.delete_collection_namespaced_service_account(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9091,18 +10717,20 @@ def delete_collection_namespaced_service_account(self, namespace, **kwargs): # :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_service_account_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_service_account # noqa: E501 @@ -9113,10 +10741,9 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, >>> thread = api.delete_collection_namespaced_service_account_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9127,33 +10754,59 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_service_account" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_service_account`") # noqa: E501 collection_formats = {} @@ -9162,32 +10815,28 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -9195,8 +10844,8 @@ def delete_collection_namespaced_service_account_with_http_info(self, namespace, local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -9229,9 +10878,8 @@ def delete_collection_node(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_node(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9242,18 +10890,20 @@ def delete_collection_node(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_node_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_node_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_node_with_http_info(**kwargs) # noqa: E501 def delete_collection_node_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_node # noqa: E501 @@ -9264,9 +10914,8 @@ def delete_collection_node_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_node_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9277,24 +10926,49 @@ def delete_collection_node_with_http_info(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_node" % key ) @@ -9306,32 +10980,28 @@ def delete_collection_node_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -9339,8 +11009,8 @@ def delete_collection_node_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -9373,9 +11043,8 @@ def delete_collection_persistent_volume(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_persistent_volume(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9386,18 +11055,20 @@ def delete_collection_persistent_volume(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_persistent_volume_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_persistent_volume_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_persistent_volume_with_http_info(**kwargs) # noqa: E501 def delete_collection_persistent_volume_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_persistent_volume # noqa: E501 @@ -9408,9 +11079,8 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): # noqa: >>> thread = api.delete_collection_persistent_volume_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -9421,24 +11091,49 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_persistent_volume" % key ) @@ -9450,32 +11145,28 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -9483,8 +11174,8 @@ def delete_collection_persistent_volume_with_http_info(self, **kwargs): # noqa: local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -9517,7 +11208,7 @@ def delete_namespace(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_namespace(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -9525,16 +11216,19 @@ def delete_namespace(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespace_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespace_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_namespace_with_http_info(name, **kwargs) # noqa: E501 def delete_namespace_with_http_info(self, name, **kwargs): # noqa: E501 """delete_namespace # noqa: E501 @@ -9545,7 +11239,7 @@ def delete_namespace_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_namespace_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -9553,31 +11247,52 @@ def delete_namespace_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespace" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespace`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespace`") # noqa: E501 collection_formats = {} @@ -9586,15 +11301,15 @@ def delete_namespace_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9637,7 +11352,7 @@ def delete_namespaced_config_map(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_config_map(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -9646,16 +11361,19 @@ def delete_namespaced_config_map(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_config_map # noqa: E501 @@ -9666,7 +11384,7 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_config_map_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -9675,35 +11393,57 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_config_map" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_config_map`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_config_map`") # noqa: E501 collection_formats = {} @@ -9714,15 +11454,15 @@ def delete_namespaced_config_map_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9765,7 +11505,7 @@ def delete_namespaced_endpoints(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_endpoints(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -9774,16 +11514,19 @@ def delete_namespaced_endpoints(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_endpoints # noqa: E501 @@ -9794,7 +11537,7 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): >>> thread = api.delete_namespaced_endpoints_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -9803,35 +11546,57 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_endpoints" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoints`") # noqa: E501 collection_formats = {} @@ -9842,15 +11607,15 @@ def delete_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -9893,7 +11658,7 @@ def delete_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_event(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -9902,16 +11667,19 @@ def delete_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_event # noqa: E501 @@ -9922,7 +11690,7 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.delete_namespaced_event_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -9931,35 +11699,57 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") # noqa: E501 collection_formats = {} @@ -9970,15 +11760,15 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10021,7 +11811,7 @@ def delete_namespaced_limit_range(self, name, namespace, **kwargs): # noqa: E50 >>> thread = api.delete_namespaced_limit_range(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10030,16 +11820,19 @@ def delete_namespaced_limit_range(self, name, namespace, **kwargs): # noqa: E50 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_limit_range # noqa: E501 @@ -10050,7 +11843,7 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs >>> thread = api.delete_namespaced_limit_range_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10059,35 +11852,57 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_limit_range" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_limit_range`") # noqa: E501 collection_formats = {} @@ -10098,15 +11913,15 @@ def delete_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10149,7 +11964,7 @@ def delete_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): >>> thread = api.delete_namespaced_persistent_volume_claim(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10158,16 +11973,19 @@ def delete_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_persistent_volume_claim # noqa: E501 @@ -10178,7 +11996,7 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa >>> thread = api.delete_namespaced_persistent_volume_claim_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10187,35 +12005,57 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_persistent_volume_claim" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} @@ -10226,15 +12066,15 @@ def delete_namespaced_persistent_volume_claim_with_http_info(self, name, namespa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10277,7 +12117,7 @@ def delete_namespaced_pod(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_pod(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10286,16 +12126,19 @@ def delete_namespaced_pod(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_pod # noqa: E501 @@ -10306,7 +12149,7 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # no >>> thread = api.delete_namespaced_pod_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10315,35 +12158,57 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # no :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_pod" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_pod`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod`") # noqa: E501 collection_formats = {} @@ -10354,15 +12219,15 @@ def delete_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10405,7 +12270,7 @@ def delete_namespaced_pod_template(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.delete_namespaced_pod_template(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10414,16 +12279,19 @@ def delete_namespaced_pod_template(self, name, namespace, **kwargs): # noqa: E5 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_pod_template # noqa: E501 @@ -10434,7 +12302,7 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, **kwarg >>> thread = api.delete_namespaced_pod_template_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10443,35 +12311,57 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, **kwarg :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_pod_template" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_template`") # noqa: E501 collection_formats = {} @@ -10482,15 +12372,15 @@ def delete_namespaced_pod_template_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10533,7 +12423,7 @@ def delete_namespaced_replication_controller(self, name, namespace, **kwargs): >>> thread = api.delete_namespaced_replication_controller(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10542,16 +12432,19 @@ def delete_namespaced_replication_controller(self, name, namespace, **kwargs): :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_replication_controller_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_replication_controller # noqa: E501 @@ -10562,7 +12455,7 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac >>> thread = api.delete_namespaced_replication_controller_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10571,35 +12464,57 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_replication_controller" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replication_controller`") # noqa: E501 collection_formats = {} @@ -10610,15 +12525,15 @@ def delete_namespaced_replication_controller_with_http_info(self, name, namespac path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10661,7 +12576,7 @@ def delete_namespaced_resource_quota(self, name, namespace, **kwargs): # noqa: >>> thread = api.delete_namespaced_resource_quota(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10670,16 +12585,19 @@ def delete_namespaced_resource_quota(self, name, namespace, **kwargs): # noqa: :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_resource_quota_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_resource_quota # noqa: E501 @@ -10690,7 +12608,7 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, **kwa >>> thread = api.delete_namespaced_resource_quota_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10699,35 +12617,57 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, **kwa :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_resource_quota" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_quota`") # noqa: E501 collection_formats = {} @@ -10738,15 +12678,15 @@ def delete_namespaced_resource_quota_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10789,7 +12729,7 @@ def delete_namespaced_secret(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_secret(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10798,16 +12738,19 @@ def delete_namespaced_secret(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_secret_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_secret # noqa: E501 @@ -10818,7 +12761,7 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.delete_namespaced_secret_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10827,35 +12770,57 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, **kwargs): # :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_secret" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_secret`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_secret`") # noqa: E501 collection_formats = {} @@ -10866,15 +12831,15 @@ def delete_namespaced_secret_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -10917,7 +12882,7 @@ def delete_namespaced_service(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_service(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10926,16 +12891,19 @@ def delete_namespaced_service(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_service # noqa: E501 @@ -10946,7 +12914,7 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): >>> thread = api.delete_namespaced_service_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -10955,35 +12923,57 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_service`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service`") # noqa: E501 collection_formats = {} @@ -10994,15 +12984,15 @@ def delete_namespaced_service_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -11045,7 +13035,7 @@ def delete_namespaced_service_account(self, name, namespace, **kwargs): # noqa: >>> thread = api.delete_namespaced_service_account(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -11054,16 +13044,19 @@ def delete_namespaced_service_account(self, name, namespace, **kwargs): # noqa: :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_service_account_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_service_account # noqa: E501 @@ -11074,7 +13067,7 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, **kw >>> thread = api.delete_namespaced_service_account_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -11083,35 +13076,57 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, **kw :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_service_account" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_service_account`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_service_account`") # noqa: E501 collection_formats = {} @@ -11122,15 +13137,15 @@ def delete_namespaced_service_account_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -11173,7 +13188,7 @@ def delete_node(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_node(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -11181,16 +13196,19 @@ def delete_node(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_node_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_node_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_node_with_http_info(name, **kwargs) # noqa: E501 def delete_node_with_http_info(self, name, **kwargs): # noqa: E501 """delete_node # noqa: E501 @@ -11201,7 +13219,7 @@ def delete_node_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_node_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -11209,31 +13227,52 @@ def delete_node_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_node`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_node`") # noqa: E501 collection_formats = {} @@ -11242,15 +13281,15 @@ def delete_node_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -11293,7 +13332,7 @@ def delete_persistent_volume(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_persistent_volume(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -11301,16 +13340,19 @@ def delete_persistent_volume(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 def delete_persistent_volume_with_http_info(self, name, **kwargs): # noqa: E501 """delete_persistent_volume # noqa: E501 @@ -11321,7 +13363,7 @@ def delete_persistent_volume_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_persistent_volume_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -11329,31 +13371,52 @@ def delete_persistent_volume_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_persistent_volume" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_persistent_volume`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_persistent_volume`") # noqa: E501 collection_formats = {} @@ -11362,15 +13425,15 @@ def delete_persistent_volume_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -11413,17 +13476,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -11434,23 +13500,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -11501,7 +13581,7 @@ def list_component_status(self, **kwargs): # noqa: E501 >>> thread = api.list_component_status(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -11511,16 +13591,19 @@ def list_component_status(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ComponentStatusList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_component_status_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_component_status_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_component_status_with_http_info(**kwargs) # noqa: E501 def list_component_status_with_http_info(self, **kwargs): # noqa: E501 """list_component_status # noqa: E501 @@ -11531,7 +13614,7 @@ def list_component_status_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_component_status_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -11541,22 +13624,45 @@ def list_component_status_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ComponentStatusList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ComponentStatusList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_component_status" % key ) @@ -11568,23 +13674,23 @@ def list_component_status_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11625,7 +13731,7 @@ def list_config_map_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_config_map_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -11635,16 +13741,19 @@ def list_config_map_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ConfigMapList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_config_map_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_config_map_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_config_map_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_config_map_for_all_namespaces # noqa: E501 @@ -11655,7 +13764,7 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_config_map_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -11665,22 +13774,45 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ConfigMapList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ConfigMapList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_config_map_for_all_namespaces" % key ) @@ -11692,23 +13824,23 @@ def list_config_map_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11749,7 +13881,7 @@ def list_endpoints_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_endpoints_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -11759,16 +13891,19 @@ def list_endpoints_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1EndpointsList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_endpoints_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_endpoints_for_all_namespaces # noqa: E501 @@ -11779,7 +13914,7 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E >>> thread = api.list_endpoints_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -11789,22 +13924,45 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EndpointsList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1EndpointsList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_endpoints_for_all_namespaces" % key ) @@ -11816,23 +13974,23 @@ def list_endpoints_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11873,7 +14031,7 @@ def list_event_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_event_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -11883,16 +14041,19 @@ def list_event_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1EventList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_event_for_all_namespaces # noqa: E501 @@ -11903,7 +14064,7 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_event_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -11913,22 +14074,45 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EventList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1EventList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_event_for_all_namespaces" % key ) @@ -11940,23 +14124,23 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -11997,7 +14181,7 @@ def list_limit_range_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_limit_range_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -12007,16 +14191,19 @@ def list_limit_range_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_limit_range_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_limit_range_for_all_namespaces # noqa: E501 @@ -12027,7 +14214,7 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_limit_range_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -12037,22 +14224,45 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1LimitRangeList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1LimitRangeList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_limit_range_for_all_namespaces" % key ) @@ -12064,23 +14274,23 @@ def list_limit_range_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12121,7 +14331,7 @@ def list_namespace(self, **kwargs): # noqa: E501 >>> thread = api.list_namespace(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -12131,16 +14341,19 @@ def list_namespace(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1NamespaceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespace_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_namespace_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_namespace_with_http_info(**kwargs) # noqa: E501 def list_namespace_with_http_info(self, **kwargs): # noqa: E501 """list_namespace # noqa: E501 @@ -12151,7 +14364,7 @@ def list_namespace_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_namespace_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -12161,22 +14374,45 @@ def list_namespace_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1NamespaceList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1NamespaceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespace" % key ) @@ -12188,23 +14424,23 @@ def list_namespace_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12245,7 +14481,7 @@ def list_namespaced_config_map(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_config_map(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12256,16 +14492,19 @@ def list_namespaced_config_map(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ConfigMapList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_config_map_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_config_map # noqa: E501 @@ -12276,7 +14515,7 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_config_map_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12287,31 +14526,55 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ConfigMapList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ConfigMapList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_config_map" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_config_map`") # noqa: E501 collection_formats = {} @@ -12320,23 +14583,23 @@ def list_namespaced_config_map_with_http_info(self, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12377,7 +14640,7 @@ def list_namespaced_endpoints(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_endpoints(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12388,16 +14651,19 @@ def list_namespaced_endpoints(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1EndpointsList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_endpoints_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_endpoints # noqa: E501 @@ -12408,7 +14674,7 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): # noqa >>> thread = api.list_namespaced_endpoints_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12419,31 +14685,55 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): # noqa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EndpointsList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1EndpointsList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_endpoints" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoints`") # noqa: E501 collection_formats = {} @@ -12452,23 +14742,23 @@ def list_namespaced_endpoints_with_http_info(self, namespace, **kwargs): # noqa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12509,7 +14799,7 @@ def list_namespaced_event(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_event(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12520,16 +14810,19 @@ def list_namespaced_event(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1EventList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_event # noqa: E501 @@ -12540,7 +14833,7 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E5 >>> thread = api.list_namespaced_event_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12551,31 +14844,55 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E5 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1EventList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1EventList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") # noqa: E501 collection_formats = {} @@ -12584,23 +14901,23 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E5 path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12641,7 +14958,7 @@ def list_namespaced_limit_range(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_limit_range(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12652,16 +14969,19 @@ def list_namespaced_limit_range(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1LimitRangeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_limit_range_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_limit_range # noqa: E501 @@ -12672,7 +14992,7 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): # no >>> thread = api.list_namespaced_limit_range_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12683,31 +15003,55 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): # no :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1LimitRangeList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1LimitRangeList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_limit_range" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_limit_range`") # noqa: E501 collection_formats = {} @@ -12716,23 +15060,23 @@ def list_namespaced_limit_range_with_http_info(self, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12773,7 +15117,7 @@ def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): # noqa: >>> thread = api.list_namespaced_persistent_volume_claim(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12784,16 +15128,19 @@ def list_namespaced_persistent_volume_claim(self, namespace, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_persistent_volume_claim_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_persistent_volume_claim # noqa: E501 @@ -12804,7 +15151,7 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw >>> thread = api.list_namespaced_persistent_volume_claim_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12815,31 +15162,55 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PersistentVolumeClaimList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeClaimList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_persistent_volume_claim" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} @@ -12848,23 +15219,23 @@ def list_namespaced_persistent_volume_claim_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -12905,7 +15276,7 @@ def list_namespaced_pod(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_pod(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12916,16 +15287,19 @@ def list_namespaced_pod(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PodList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_pod_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_pod_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_pod # noqa: E501 @@ -12936,7 +15310,7 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_pod_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -12947,31 +15321,55 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PodList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_pod" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod`") # noqa: E501 collection_formats = {} @@ -12980,23 +15378,23 @@ def list_namespaced_pod_with_http_info(self, namespace, **kwargs): # noqa: E501 path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13037,7 +15435,7 @@ def list_namespaced_pod_template(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_pod_template(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13048,16 +15446,19 @@ def list_namespaced_pod_template(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_pod_template_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_pod_template # noqa: E501 @@ -13068,7 +15469,7 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): # n >>> thread = api.list_namespaced_pod_template_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13079,31 +15480,55 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): # n :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodTemplateList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PodTemplateList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_pod_template" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_template`") # noqa: E501 collection_formats = {} @@ -13112,23 +15537,23 @@ def list_namespaced_pod_template_with_http_info(self, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13169,7 +15594,7 @@ def list_namespaced_replication_controller(self, namespace, **kwargs): # noqa: >>> thread = api.list_namespaced_replication_controller(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13180,16 +15605,19 @@ def list_namespaced_replication_controller(self, namespace, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_replication_controller_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_replication_controller_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_replication_controller # noqa: E501 @@ -13200,7 +15628,7 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa >>> thread = api.list_namespaced_replication_controller_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13211,31 +15639,55 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ReplicationControllerList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicationControllerList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_replication_controller" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_replication_controller`") # noqa: E501 collection_formats = {} @@ -13244,23 +15696,23 @@ def list_namespaced_replication_controller_with_http_info(self, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13301,7 +15753,7 @@ def list_namespaced_resource_quota(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_resource_quota(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13312,16 +15764,19 @@ def list_namespaced_resource_quota(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_resource_quota_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_resource_quota # noqa: E501 @@ -13332,7 +15787,7 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): # >>> thread = api.list_namespaced_resource_quota_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13343,31 +15798,55 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): # :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ResourceQuotaList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceQuotaList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_resource_quota" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_quota`") # noqa: E501 collection_formats = {} @@ -13376,23 +15855,23 @@ def list_namespaced_resource_quota_with_http_info(self, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13433,7 +15912,7 @@ def list_namespaced_secret(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_secret(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13444,16 +15923,19 @@ def list_namespaced_secret(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1SecretList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_secret_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_secret_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_secret # noqa: E501 @@ -13464,7 +15946,7 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): # noqa: E >>> thread = api.list_namespaced_secret_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13475,31 +15957,55 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): # noqa: E :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1SecretList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1SecretList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_secret" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_secret`") # noqa: E501 collection_formats = {} @@ -13508,23 +16014,23 @@ def list_namespaced_secret_with_http_info(self, namespace, **kwargs): # noqa: E path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13565,7 +16071,7 @@ def list_namespaced_service(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_service(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13576,16 +16082,19 @@ def list_namespaced_service(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ServiceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_service_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_service_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_service_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_service_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_service # noqa: E501 @@ -13596,7 +16105,7 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): # noqa: >>> thread = api.list_namespaced_service_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13607,31 +16116,55 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ServiceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_service`") # noqa: E501 collection_formats = {} @@ -13640,23 +16173,23 @@ def list_namespaced_service_with_http_info(self, namespace, **kwargs): # noqa: path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13697,7 +16230,7 @@ def list_namespaced_service_account(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_service_account(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13708,16 +16241,19 @@ def list_namespaced_service_account(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_service_account_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_service_account # noqa: E501 @@ -13728,7 +16264,7 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): >>> thread = api.list_namespaced_service_account_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -13739,31 +16275,55 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceAccountList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ServiceAccountList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_service_account" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_service_account`") # noqa: E501 collection_formats = {} @@ -13772,23 +16332,23 @@ def list_namespaced_service_account_with_http_info(self, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13829,7 +16389,7 @@ def list_node(self, **kwargs): # noqa: E501 >>> thread = api.list_node(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -13839,16 +16399,19 @@ def list_node(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1NodeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_node_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_node_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_node_with_http_info(**kwargs) # noqa: E501 def list_node_with_http_info(self, **kwargs): # noqa: E501 """list_node # noqa: E501 @@ -13859,7 +16422,7 @@ def list_node_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_node_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -13869,22 +16432,45 @@ def list_node_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1NodeList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1NodeList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_node" % key ) @@ -13896,23 +16482,23 @@ def list_node_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -13953,7 +16539,7 @@ def list_persistent_volume(self, **kwargs): # noqa: E501 >>> thread = api.list_persistent_volume(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -13963,16 +16549,19 @@ def list_persistent_volume(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_persistent_volume_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_persistent_volume_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_persistent_volume_with_http_info(**kwargs) # noqa: E501 def list_persistent_volume_with_http_info(self, **kwargs): # noqa: E501 """list_persistent_volume # noqa: E501 @@ -13983,7 +16572,7 @@ def list_persistent_volume_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_persistent_volume_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -13993,22 +16582,45 @@ def list_persistent_volume_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PersistentVolumeList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_persistent_volume" % key ) @@ -14020,23 +16632,23 @@ def list_persistent_volume_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14077,7 +16689,7 @@ def list_persistent_volume_claim_for_all_namespaces(self, **kwargs): # noqa: E5 >>> thread = api.list_persistent_volume_claim_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14087,16 +16699,19 @@ def list_persistent_volume_claim_for_all_namespaces(self, **kwargs): # noqa: E5 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeClaimList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_persistent_volume_claim_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_persistent_volume_claim_for_all_namespaces # noqa: E501 @@ -14107,7 +16722,7 @@ def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwarg >>> thread = api.list_persistent_volume_claim_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14117,22 +16732,45 @@ def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwarg :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PersistentVolumeClaimList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeClaimList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_persistent_volume_claim_for_all_namespaces" % key ) @@ -14144,23 +16782,23 @@ def list_persistent_volume_claim_for_all_namespaces_with_http_info(self, **kwarg path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14201,7 +16839,7 @@ def list_pod_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_pod_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14211,16 +16849,19 @@ def list_pod_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PodList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_pod_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_pod_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_pod_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_pod_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_pod_for_all_namespaces # noqa: E501 @@ -14231,7 +16872,7 @@ def list_pod_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_pod_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14241,22 +16882,45 @@ def list_pod_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PodList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_for_all_namespaces" % key ) @@ -14268,23 +16932,23 @@ def list_pod_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14325,7 +16989,7 @@ def list_pod_template_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_pod_template_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14335,16 +16999,19 @@ def list_pod_template_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PodTemplateList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_pod_template_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_pod_template_for_all_namespaces # noqa: E501 @@ -14355,7 +17022,7 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): # noqa >>> thread = api.list_pod_template_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14365,22 +17032,45 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): # noqa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PodTemplateList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PodTemplateList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_template_for_all_namespaces" % key ) @@ -14392,23 +17082,23 @@ def list_pod_template_for_all_namespaces_with_http_info(self, **kwargs): # noqa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14449,7 +17139,7 @@ def list_replication_controller_for_all_namespaces(self, **kwargs): # noqa: E50 >>> thread = api.list_replication_controller_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14459,16 +17149,19 @@ def list_replication_controller_for_all_namespaces(self, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicationControllerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_replication_controller_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_replication_controller_for_all_namespaces # noqa: E501 @@ -14479,7 +17172,7 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs >>> thread = api.list_replication_controller_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14489,22 +17182,45 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ReplicationControllerList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicationControllerList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_replication_controller_for_all_namespaces" % key ) @@ -14516,23 +17232,23 @@ def list_replication_controller_for_all_namespaces_with_http_info(self, **kwargs path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14573,7 +17289,7 @@ def list_resource_quota_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_resource_quota_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14583,16 +17299,19 @@ def list_resource_quota_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ResourceQuotaList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_resource_quota_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_resource_quota_for_all_namespaces # noqa: E501 @@ -14603,7 +17322,7 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): # no >>> thread = api.list_resource_quota_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14613,22 +17332,45 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): # no :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ResourceQuotaList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceQuotaList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_resource_quota_for_all_namespaces" % key ) @@ -14640,23 +17382,23 @@ def list_resource_quota_for_all_namespaces_with_http_info(self, **kwargs): # no path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14697,7 +17439,7 @@ def list_secret_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_secret_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14707,16 +17449,19 @@ def list_secret_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1SecretList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_secret_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_secret_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_secret_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_secret_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_secret_for_all_namespaces # noqa: E501 @@ -14727,7 +17472,7 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_secret_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14737,22 +17482,45 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1SecretList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1SecretList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_secret_for_all_namespaces" % key ) @@ -14764,23 +17532,23 @@ def list_secret_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14821,7 +17589,7 @@ def list_service_account_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_service_account_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14831,16 +17599,19 @@ def list_service_account_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ServiceAccountList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_service_account_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_service_account_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_service_account_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_service_account_for_all_namespaces # noqa: E501 @@ -14851,7 +17622,7 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): # n >>> thread = api.list_service_account_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14861,22 +17632,45 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): # n :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceAccountList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ServiceAccountList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_service_account_for_all_namespaces" % key ) @@ -14888,23 +17682,23 @@ def list_service_account_for_all_namespaces_with_http_info(self, **kwargs): # n path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -14945,7 +17739,7 @@ def list_service_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_service_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14955,16 +17749,19 @@ def list_service_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ServiceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_service_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_service_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_service_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_service_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_service_for_all_namespaces # noqa: E501 @@ -14975,7 +17772,7 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E50 >>> thread = api.list_service_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -14985,22 +17782,45 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ServiceList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ServiceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_service_for_all_namespaces" % key ) @@ -15012,23 +17832,23 @@ def list_service_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E50 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -15069,23 +17889,26 @@ def patch_namespace(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespace(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespace_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespace_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_namespace_with_http_info(name, body, **kwargs) # noqa: E501 def patch_namespace_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_namespace # noqa: E501 @@ -15096,42 +17919,62 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespace_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Namespace + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Namespace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespace" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespace`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespace`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespace`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespace`") # noqa: E501 collection_formats = {} @@ -15140,13 +17983,13 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15193,23 +18036,26 @@ def patch_namespace_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespace_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 def patch_namespace_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_namespace_status # noqa: E501 @@ -15220,42 +18066,62 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): # noqa: >>> thread = api.patch_namespace_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Namespace + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Namespace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespace_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespace_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespace_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespace_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespace_status`") # noqa: E501 collection_formats = {} @@ -15264,13 +18130,13 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15317,24 +18183,27 @@ def patch_namespaced_config_map(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_config_map(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_config_map # noqa: E501 @@ -15345,47 +18214,68 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_config_map_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ConfigMap + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ConfigMap, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_config_map" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_config_map`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_config_map`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_config_map`") # noqa: E501 collection_formats = {} @@ -15396,13 +18286,13 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15449,24 +18339,27 @@ def patch_namespaced_endpoints(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_endpoints(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_endpoints # noqa: E501 @@ -15477,47 +18370,68 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa >>> thread = api.patch_namespaced_endpoints_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Endpoints + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Endpoints, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_endpoints" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoints`") # noqa: E501 collection_formats = {} @@ -15528,13 +18442,13 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15581,24 +18495,27 @@ def patch_namespaced_event(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespaced_event(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_event # noqa: E501 @@ -15609,47 +18526,68 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) >>> thread = api.patch_namespaced_event_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Event + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Event, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") # noqa: E501 collection_formats = {} @@ -15660,13 +18598,13 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15713,24 +18651,27 @@ def patch_namespaced_limit_range(self, name, namespace, body, **kwargs): # noqa >>> thread = api.patch_namespaced_limit_range(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_limit_range # noqa: E501 @@ -15741,47 +18682,68 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k >>> thread = api.patch_namespaced_limit_range_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1LimitRange + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1LimitRange, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_limit_range" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_limit_range`") # noqa: E501 collection_formats = {} @@ -15792,13 +18754,13 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15845,24 +18807,27 @@ def patch_namespaced_persistent_volume_claim(self, name, namespace, body, **kwar >>> thread = api.patch_namespaced_persistent_volume_claim(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_persistent_volume_claim # noqa: E501 @@ -15873,47 +18838,68 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac >>> thread = api.patch_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1PersistentVolumeClaim + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeClaim, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_persistent_volume_claim" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} @@ -15924,13 +18910,13 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -15977,24 +18963,27 @@ def patch_namespaced_persistent_volume_claim_status(self, name, namespace, body, >>> thread = api.patch_namespaced_persistent_volume_claim_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_persistent_volume_claim_status # noqa: E501 @@ -16005,47 +18994,68 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n >>> thread = api.patch_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1PersistentVolumeClaim + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeClaim, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_persistent_volume_claim_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_persistent_volume_claim_status`") # noqa: E501 collection_formats = {} @@ -16056,13 +19066,13 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16109,24 +19119,27 @@ def patch_namespaced_pod(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespaced_pod(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_pod # noqa: E501 @@ -16137,47 +19150,68 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_pod_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Pod + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Pod, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod`") # noqa: E501 collection_formats = {} @@ -16188,13 +19222,13 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16241,24 +19275,27 @@ def patch_namespaced_pod_status(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_pod_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_pod_status # noqa: E501 @@ -16269,47 +19306,68 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_pod_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Pod + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Pod, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_status`") # noqa: E501 collection_formats = {} @@ -16320,13 +19378,13 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16373,24 +19431,27 @@ def patch_namespaced_pod_template(self, name, namespace, body, **kwargs): # noq >>> thread = api.patch_namespaced_pod_template(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_pod_template # noqa: E501 @@ -16401,47 +19462,68 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** >>> thread = api.patch_namespaced_pod_template_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1PodTemplate + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PodTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_template" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_template`") # noqa: E501 collection_formats = {} @@ -16452,13 +19534,13 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16505,24 +19587,27 @@ def patch_namespaced_replication_controller(self, name, namespace, body, **kwarg >>> thread = api.patch_namespaced_replication_controller(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replication_controller # noqa: E501 @@ -16533,47 +19618,68 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace >>> thread = api.patch_namespaced_replication_controller_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ReplicationController + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicationController, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replication_controller" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller`") # noqa: E501 collection_formats = {} @@ -16584,13 +19690,13 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16637,24 +19743,27 @@ def patch_namespaced_replication_controller_scale(self, name, namespace, body, * >>> thread = api.patch_namespaced_replication_controller_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replication_controller_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replication_controller_scale # noqa: E501 @@ -16665,47 +19774,68 @@ def patch_namespaced_replication_controller_scale_with_http_info(self, name, nam >>> thread = api.patch_namespaced_replication_controller_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replication_controller_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_scale`") # noqa: E501 collection_formats = {} @@ -16716,13 +19846,13 @@ def patch_namespaced_replication_controller_scale_with_http_info(self, name, nam path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16769,24 +19899,27 @@ def patch_namespaced_replication_controller_status(self, name, namespace, body, >>> thread = api.patch_namespaced_replication_controller_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replication_controller_status # noqa: E501 @@ -16797,47 +19930,68 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na >>> thread = api.patch_namespaced_replication_controller_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ReplicationController + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicationController, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replication_controller_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_status`") # noqa: E501 collection_formats = {} @@ -16848,13 +20002,13 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -16901,24 +20055,27 @@ def patch_namespaced_resource_quota(self, name, namespace, body, **kwargs): # n >>> thread = api.patch_namespaced_resource_quota(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_resource_quota # noqa: E501 @@ -16929,47 +20086,68 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_resource_quota_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ResourceQuota + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceQuota, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_resource_quota" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota`") # noqa: E501 collection_formats = {} @@ -16980,13 +20158,13 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17033,24 +20211,27 @@ def patch_namespaced_resource_quota_status(self, name, namespace, body, **kwargs >>> thread = api.patch_namespaced_resource_quota_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_resource_quota_status # noqa: E501 @@ -17061,47 +20242,68 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, >>> thread = api.patch_namespaced_resource_quota_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ResourceQuota + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceQuota, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_resource_quota_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_quota_status`") # noqa: E501 collection_formats = {} @@ -17112,13 +20314,13 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17165,24 +20367,27 @@ def patch_namespaced_secret(self, name, namespace, body, **kwargs): # noqa: E50 >>> thread = api.patch_namespaced_secret(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Secret If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_secret # noqa: E501 @@ -17193,47 +20398,68 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs >>> thread = api.patch_namespaced_secret_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Secret + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Secret, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_secret" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_secret`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_secret`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_secret`") # noqa: E501 collection_formats = {} @@ -17244,13 +20470,13 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17297,24 +20523,27 @@ def patch_namespaced_service(self, name, namespace, body, **kwargs): # noqa: E5 >>> thread = api.patch_namespaced_service(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_service # noqa: E501 @@ -17325,47 +20554,68 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg >>> thread = api.patch_namespaced_service_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Service + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Service, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_service`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_service`") # noqa: E501 collection_formats = {} @@ -17376,13 +20626,13 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17429,24 +20679,27 @@ def patch_namespaced_service_account(self, name, namespace, body, **kwargs): # >>> thread = api.patch_namespaced_service_account(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_service_account # noqa: E501 @@ -17457,47 +20710,68 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_service_account_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ServiceAccount + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ServiceAccount, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_service_account" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_service_account`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_account`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_service_account`") # noqa: E501 collection_formats = {} @@ -17508,13 +20782,13 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17561,24 +20835,27 @@ def patch_namespaced_service_status(self, name, namespace, body, **kwargs): # n >>> thread = api.patch_namespaced_service_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_service_status # noqa: E501 @@ -17589,47 +20866,68 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_service_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Service + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Service, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_service_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_service_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_service_status`") # noqa: E501 collection_formats = {} @@ -17640,13 +20938,13 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17693,23 +20991,26 @@ def patch_node(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_node(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_node_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_node_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_node_with_http_info(name, body, **kwargs) # noqa: E501 def patch_node_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_node # noqa: E501 @@ -17720,42 +21021,62 @@ def patch_node_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_node_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Node + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Node, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_node`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_node`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_node`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_node`") # noqa: E501 collection_formats = {} @@ -17764,13 +21085,13 @@ def patch_node_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17817,23 +21138,26 @@ def patch_node_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_node_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_node_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_node_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_node_status_with_http_info(name, body, **kwargs) # noqa: E501 def patch_node_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_node_status # noqa: E501 @@ -17844,42 +21168,62 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_node_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Node + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Node, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_node_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_node_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_node_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_node_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_node_status`") # noqa: E501 collection_formats = {} @@ -17888,13 +21232,13 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -17941,23 +21285,26 @@ def patch_persistent_volume(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_persistent_volume(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 def patch_persistent_volume_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_persistent_volume # noqa: E501 @@ -17968,42 +21315,62 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): # noqa: >>> thread = api.patch_persistent_volume_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1PersistentVolume + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolume, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_persistent_volume" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_persistent_volume`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_persistent_volume`") # noqa: E501 collection_formats = {} @@ -18012,13 +21379,13 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -18065,23 +21432,26 @@ def patch_persistent_volume_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_persistent_volume_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_persistent_volume_status # noqa: E501 @@ -18092,42 +21462,62 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): >>> thread = api.patch_persistent_volume_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1PersistentVolume + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolume, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_persistent_volume_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_persistent_volume_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_persistent_volume_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_persistent_volume_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_persistent_volume_status`") # noqa: E501 collection_formats = {} @@ -18136,13 +21526,13 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -18189,19 +21579,22 @@ def read_component_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_component_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ComponentStatus (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ComponentStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_component_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_component_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_component_status_with_http_info(name, **kwargs) # noqa: E501 def read_component_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_component_status # noqa: E501 @@ -18212,34 +21605,50 @@ def read_component_status_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_component_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ComponentStatus (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ComponentStatus + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ComponentStatus, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_component_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_component_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_component_status`") # noqa: E501 collection_formats = {} @@ -18248,7 +21657,7 @@ def read_component_status_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -18289,21 +21698,24 @@ def read_namespace(self, name, **kwargs): # noqa: E501 >>> thread = api.read_namespace(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespace_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_namespace_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_namespace_with_http_info(name, **kwargs) # noqa: E501 def read_namespace_with_http_info(self, name, **kwargs): # noqa: E501 """read_namespace # noqa: E501 @@ -18314,36 +21726,54 @@ def read_namespace_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_namespace_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Namespace + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Namespace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespace" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespace`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespace`") # noqa: E501 collection_formats = {} @@ -18352,11 +21782,11 @@ def read_namespace_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18397,19 +21827,22 @@ def read_namespace_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_namespace_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespace_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_namespace_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_namespace_status_with_http_info(name, **kwargs) # noqa: E501 def read_namespace_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_namespace_status # noqa: E501 @@ -18420,34 +21853,50 @@ def read_namespace_status_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_namespace_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Namespace + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Namespace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespace_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespace_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespace_status`") # noqa: E501 collection_formats = {} @@ -18456,7 +21905,7 @@ def read_namespace_status_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -18497,22 +21946,25 @@ def read_namespaced_config_map(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_config_map(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_config_map_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_config_map # noqa: E501 @@ -18523,41 +21975,60 @@ def read_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_config_map_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1ConfigMap + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ConfigMap, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_config_map" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_config_map`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_config_map`") # noqa: E501 collection_formats = {} @@ -18568,11 +22039,11 @@ def read_namespaced_config_map_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18613,22 +22084,25 @@ def read_namespaced_endpoints(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_endpoints(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_endpoints_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_endpoints # noqa: E501 @@ -18639,41 +22113,60 @@ def read_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_endpoints_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Endpoints + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Endpoints, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_endpoints" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_endpoints`") # noqa: E501 collection_formats = {} @@ -18684,11 +22177,11 @@ def read_namespaced_endpoints_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18729,22 +22222,25 @@ def read_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_event(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_event # noqa: E501 @@ -18755,41 +22251,60 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): # no >>> thread = api.read_namespaced_event_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Event + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Event, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") # noqa: E501 collection_formats = {} @@ -18800,11 +22315,11 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18845,22 +22360,25 @@ def read_namespaced_limit_range(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_limit_range(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_limit_range_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_limit_range # noqa: E501 @@ -18871,41 +22389,60 @@ def read_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_limit_range_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1LimitRange + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1LimitRange, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_limit_range" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_limit_range`") # noqa: E501 collection_formats = {} @@ -18916,11 +22453,11 @@ def read_namespaced_limit_range_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -18961,22 +22498,25 @@ def read_namespaced_persistent_volume_claim(self, name, namespace, **kwargs): # >>> thread = api.read_namespaced_persistent_volume_claim(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_persistent_volume_claim_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_persistent_volume_claim # noqa: E501 @@ -18987,41 +22527,60 @@ def read_namespaced_persistent_volume_claim_with_http_info(self, name, namespace >>> thread = api.read_namespaced_persistent_volume_claim_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1PersistentVolumeClaim + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeClaim, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_persistent_volume_claim" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} @@ -19032,11 +22591,11 @@ def read_namespaced_persistent_volume_claim_with_http_info(self, name, namespace path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -19077,20 +22636,23 @@ def read_namespaced_persistent_volume_claim_status(self, name, namespace, **kwar >>> thread = api.read_namespaced_persistent_volume_claim_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_persistent_volume_claim_status # noqa: E501 @@ -19101,39 +22663,56 @@ def read_namespaced_persistent_volume_claim_status_with_http_info(self, name, na >>> thread = api.read_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolumeClaim + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeClaim, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_persistent_volume_claim_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_persistent_volume_claim_status`") # noqa: E501 collection_formats = {} @@ -19144,7 +22723,7 @@ def read_namespaced_persistent_volume_claim_status_with_http_info(self, name, na path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -19185,22 +22764,25 @@ def read_namespaced_pod(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_pod(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_pod_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_pod # noqa: E501 @@ -19211,41 +22793,60 @@ def read_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # noqa >>> thread = api.read_namespaced_pod_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Pod + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Pod, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod`") # noqa: E501 collection_formats = {} @@ -19256,11 +22857,11 @@ def read_namespaced_pod_with_http_info(self, name, namespace, **kwargs): # noqa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -19301,7 +22902,7 @@ def read_namespaced_pod_log(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_pod_log(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod. @@ -19312,16 +22913,19 @@ def read_namespaced_pod_log(self, name, namespace, **kwargs): # noqa: E501 :param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. :param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime :param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_pod_log_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_pod_log_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_pod_log_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_pod_log # noqa: E501 @@ -19332,7 +22936,7 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.read_namespaced_pod_log_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str container: The container for which to stream logs. Defaults to only container if there is one container in the pod. @@ -19343,35 +22947,59 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): # :param int since_seconds: A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. :param int tail_lines: If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime :param bool timestamps: If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. - :return: str + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'container', 'follow', 'limit_bytes', 'pretty', 'previous', 'since_seconds', 'tail_lines', 'timestamps'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'container', + 'follow', + 'limit_bytes', + 'pretty', + 'previous', + 'since_seconds', + 'tail_lines', + 'timestamps' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_log" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_log`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_log`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_log`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_log`") # noqa: E501 collection_formats = {} @@ -19382,21 +23010,21 @@ def read_namespaced_pod_log_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'container' in local_var_params: + if 'container' in local_var_params and local_var_params['container'] is not None: # noqa: E501 query_params.append(('container', local_var_params['container'])) # noqa: E501 - if 'follow' in local_var_params: + if 'follow' in local_var_params and local_var_params['follow'] is not None: # noqa: E501 query_params.append(('follow', local_var_params['follow'])) # noqa: E501 - if 'limit_bytes' in local_var_params: + if 'limit_bytes' in local_var_params and local_var_params['limit_bytes'] is not None: # noqa: E501 query_params.append(('limitBytes', local_var_params['limit_bytes'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'previous' in local_var_params: + if 'previous' in local_var_params and local_var_params['previous'] is not None: # noqa: E501 query_params.append(('previous', local_var_params['previous'])) # noqa: E501 - if 'since_seconds' in local_var_params: + if 'since_seconds' in local_var_params and local_var_params['since_seconds'] is not None: # noqa: E501 query_params.append(('sinceSeconds', local_var_params['since_seconds'])) # noqa: E501 - if 'tail_lines' in local_var_params: + if 'tail_lines' in local_var_params and local_var_params['tail_lines'] is not None: # noqa: E501 query_params.append(('tailLines', local_var_params['tail_lines'])) # noqa: E501 - if 'timestamps' in local_var_params: + if 'timestamps' in local_var_params and local_var_params['timestamps'] is not None: # noqa: E501 query_params.append(('timestamps', local_var_params['timestamps'])) # noqa: E501 header_params = {} @@ -19437,20 +23065,23 @@ def read_namespaced_pod_status(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_pod_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_pod_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_pod_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_pod_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_pod_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_pod_status # noqa: E501 @@ -19461,39 +23092,56 @@ def read_namespaced_pod_status_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_pod_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Pod + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Pod, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_status`") # noqa: E501 collection_formats = {} @@ -19504,7 +23152,7 @@ def read_namespaced_pod_status_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -19545,22 +23193,25 @@ def read_namespaced_pod_template(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_pod_template(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_pod_template_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_pod_template # noqa: E501 @@ -19571,41 +23222,60 @@ def read_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs) >>> thread = api.read_namespaced_pod_template_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1PodTemplate + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PodTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_template" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_template`") # noqa: E501 collection_formats = {} @@ -19616,11 +23286,11 @@ def read_namespaced_pod_template_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -19661,22 +23331,25 @@ def read_namespaced_replication_controller(self, name, namespace, **kwargs): # >>> thread = api.read_namespaced_replication_controller(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replication_controller_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replication_controller_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replication_controller # noqa: E501 @@ -19687,41 +23360,60 @@ def read_namespaced_replication_controller_with_http_info(self, name, namespace, >>> thread = api.read_namespaced_replication_controller_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1ReplicationController + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicationController, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replication_controller" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller`") # noqa: E501 collection_formats = {} @@ -19732,11 +23424,11 @@ def read_namespaced_replication_controller_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -19777,20 +23469,23 @@ def read_namespaced_replication_controller_scale(self, name, namespace, **kwargs >>> thread = api.read_namespaced_replication_controller_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replication_controller_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replication_controller_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replication_controller_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replication_controller_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replication_controller_scale # noqa: E501 @@ -19801,39 +23496,56 @@ def read_namespaced_replication_controller_scale_with_http_info(self, name, name >>> thread = api.read_namespaced_replication_controller_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replication_controller_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_scale`") # noqa: E501 collection_formats = {} @@ -19844,7 +23556,7 @@ def read_namespaced_replication_controller_scale_with_http_info(self, name, name path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -19885,20 +23597,23 @@ def read_namespaced_replication_controller_status(self, name, namespace, **kwarg >>> thread = api.read_namespaced_replication_controller_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replication_controller_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replication_controller_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replication_controller_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replication_controller_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replication_controller_status # noqa: E501 @@ -19909,39 +23624,56 @@ def read_namespaced_replication_controller_status_with_http_info(self, name, nam >>> thread = api.read_namespaced_replication_controller_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ReplicationController + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicationController, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replication_controller_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_status`") # noqa: E501 collection_formats = {} @@ -19952,7 +23684,7 @@ def read_namespaced_replication_controller_status_with_http_info(self, name, nam path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -19993,22 +23725,25 @@ def read_namespaced_resource_quota(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.read_namespaced_resource_quota(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_resource_quota_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_resource_quota_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_resource_quota # noqa: E501 @@ -20019,41 +23754,60 @@ def read_namespaced_resource_quota_with_http_info(self, name, namespace, **kwarg >>> thread = api.read_namespaced_resource_quota_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1ResourceQuota + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceQuota, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_resource_quota" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota`") # noqa: E501 collection_formats = {} @@ -20064,11 +23818,11 @@ def read_namespaced_resource_quota_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -20109,20 +23863,23 @@ def read_namespaced_resource_quota_status(self, name, namespace, **kwargs): # n >>> thread = api.read_namespaced_resource_quota_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_resource_quota_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_resource_quota_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_resource_quota_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_resource_quota_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_resource_quota_status # noqa: E501 @@ -20133,39 +23890,56 @@ def read_namespaced_resource_quota_status_with_http_info(self, name, namespace, >>> thread = api.read_namespaced_resource_quota_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ResourceQuota + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceQuota, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_resource_quota_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_quota_status`") # noqa: E501 collection_formats = {} @@ -20176,7 +23950,7 @@ def read_namespaced_resource_quota_status_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -20217,22 +23991,25 @@ def read_namespaced_secret(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_secret(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Secret If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_secret_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_secret_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_secret # noqa: E501 @@ -20243,41 +24020,60 @@ def read_namespaced_secret_with_http_info(self, name, namespace, **kwargs): # n >>> thread = api.read_namespaced_secret_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Secret + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Secret, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_secret" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_secret`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_secret`") # noqa: E501 collection_formats = {} @@ -20288,11 +24084,11 @@ def read_namespaced_secret_with_http_info(self, name, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -20333,22 +24129,25 @@ def read_namespaced_service(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_service(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_service_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_service_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_service # noqa: E501 @@ -20359,41 +24158,60 @@ def read_namespaced_service_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.read_namespaced_service_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Service + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Service, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_service`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_service`") # noqa: E501 collection_formats = {} @@ -20404,11 +24222,11 @@ def read_namespaced_service_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -20449,22 +24267,25 @@ def read_namespaced_service_account(self, name, namespace, **kwargs): # noqa: E >>> thread = api.read_namespaced_service_account(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_service_account_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_service_account_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_service_account # noqa: E501 @@ -20475,41 +24296,60 @@ def read_namespaced_service_account_with_http_info(self, name, namespace, **kwar >>> thread = api.read_namespaced_service_account_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1ServiceAccount + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ServiceAccount, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_service_account" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_service_account`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_account`") # noqa: E501 collection_formats = {} @@ -20520,11 +24360,11 @@ def read_namespaced_service_account_with_http_info(self, name, namespace, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -20565,20 +24405,23 @@ def read_namespaced_service_status(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.read_namespaced_service_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_service_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_service_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_service_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_service_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_service_status # noqa: E501 @@ -20589,39 +24432,56 @@ def read_namespaced_service_status_with_http_info(self, name, namespace, **kwarg >>> thread = api.read_namespaced_service_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Service + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Service, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_service_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_service_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_service_status`") # noqa: E501 collection_formats = {} @@ -20632,7 +24492,7 @@ def read_namespaced_service_status_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -20673,21 +24533,24 @@ def read_node(self, name, **kwargs): # noqa: E501 >>> thread = api.read_node(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_node_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_node_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_node_with_http_info(name, **kwargs) # noqa: E501 def read_node_with_http_info(self, name, **kwargs): # noqa: E501 """read_node # noqa: E501 @@ -20698,36 +24561,54 @@ def read_node_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_node_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1Node + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Node, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_node`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_node`") # noqa: E501 collection_formats = {} @@ -20736,11 +24617,11 @@ def read_node_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -20781,19 +24662,22 @@ def read_node_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_node_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_node_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_node_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_node_status_with_http_info(name, **kwargs) # noqa: E501 def read_node_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_node_status # noqa: E501 @@ -20804,34 +24688,50 @@ def read_node_status_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_node_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Node + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Node, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_node_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_node_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_node_status`") # noqa: E501 collection_formats = {} @@ -20840,7 +24740,7 @@ def read_node_status_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -20881,21 +24781,24 @@ def read_persistent_volume(self, name, **kwargs): # noqa: E501 >>> thread = api.read_persistent_volume(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_persistent_volume_with_http_info(name, **kwargs) # noqa: E501 def read_persistent_volume_with_http_info(self, name, **kwargs): # noqa: E501 """read_persistent_volume # noqa: E501 @@ -20906,36 +24809,54 @@ def read_persistent_volume_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_persistent_volume_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1PersistentVolume + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolume, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_persistent_volume" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_persistent_volume`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_persistent_volume`") # noqa: E501 collection_formats = {} @@ -20944,11 +24865,11 @@ def read_persistent_volume_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -20989,19 +24910,22 @@ def read_persistent_volume_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_persistent_volume_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_persistent_volume_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_persistent_volume_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_persistent_volume_status_with_http_info(name, **kwargs) # noqa: E501 def read_persistent_volume_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_persistent_volume_status # noqa: E501 @@ -21012,34 +24936,50 @@ def read_persistent_volume_status_with_http_info(self, name, **kwargs): # noqa: >>> thread = api.read_persistent_volume_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1PersistentVolume + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolume, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_persistent_volume_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_persistent_volume_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_persistent_volume_status`") # noqa: E501 collection_formats = {} @@ -21048,7 +24988,7 @@ def read_persistent_volume_status_with_http_info(self, name, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -21089,22 +25029,25 @@ def replace_namespace(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_namespace(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespace_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespace_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_namespace_with_http_info(name, body, **kwargs) # noqa: E501 def replace_namespace_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_namespace # noqa: E501 @@ -21115,41 +25058,60 @@ def replace_namespace_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_namespace_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Namespace + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Namespace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespace" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespace`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespace`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespace`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespace`") # noqa: E501 collection_formats = {} @@ -21158,11 +25120,11 @@ def replace_namespace_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21205,22 +25167,25 @@ def replace_namespace_finalize(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_namespace_finalize(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param V1Namespace body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespace_finalize_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespace_finalize_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_namespace_finalize_with_http_info(name, body, **kwargs) # noqa: E501 def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_namespace_finalize # noqa: E501 @@ -21231,41 +25196,60 @@ def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): # no >>> thread = api.replace_namespace_finalize_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param V1Namespace body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1Namespace + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Namespace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespace_finalize" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespace_finalize`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespace_finalize`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespace_finalize`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespace_finalize`") # noqa: E501 collection_formats = {} @@ -21274,11 +25258,11 @@ def replace_namespace_finalize_with_http_info(self, name, body, **kwargs): # no path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -21321,22 +25305,25 @@ def replace_namespace_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_namespace_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Namespace If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_namespace_status_with_http_info(name, body, **kwargs) # noqa: E501 def replace_namespace_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_namespace_status # noqa: E501 @@ -21347,41 +25334,60 @@ def replace_namespace_status_with_http_info(self, name, body, **kwargs): # noqa >>> thread = api.replace_namespace_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Namespace (required) :param V1Namespace body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Namespace + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Namespace, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespace_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespace_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespace_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespace_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespace_status`") # noqa: E501 collection_formats = {} @@ -21390,11 +25396,11 @@ def replace_namespace_status_with_http_info(self, name, body, **kwargs): # noqa path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21437,23 +25443,26 @@ def replace_namespaced_config_map(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_config_map(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ConfigMap body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ConfigMap If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_config_map_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_config_map_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_config_map # noqa: E501 @@ -21464,46 +25473,66 @@ def replace_namespaced_config_map_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_config_map_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ConfigMap body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ConfigMap + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ConfigMap, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_config_map" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_config_map`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_config_map`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_config_map`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_config_map`") # noqa: E501 collection_formats = {} @@ -21514,11 +25543,11 @@ def replace_namespaced_config_map_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21561,23 +25590,26 @@ def replace_namespaced_endpoints(self, name, namespace, body, **kwargs): # noqa >>> thread = api.replace_namespaced_endpoints(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Endpoints body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Endpoints If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_endpoints_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_endpoints # noqa: E501 @@ -21588,46 +25620,66 @@ def replace_namespaced_endpoints_with_http_info(self, name, namespace, body, **k >>> thread = api.replace_namespaced_endpoints_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Endpoints body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Endpoints + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Endpoints, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_endpoints" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_endpoints`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_endpoints`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_endpoints`") # noqa: E501 collection_formats = {} @@ -21638,11 +25690,11 @@ def replace_namespaced_endpoints_with_http_info(self, name, namespace, body, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21685,23 +25737,26 @@ def replace_namespaced_event(self, name, namespace, body, **kwargs): # noqa: E5 >>> thread = api.replace_namespaced_event(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_event # noqa: E501 @@ -21712,46 +25767,66 @@ def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwarg >>> thread = api.replace_namespaced_event_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Event + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Event, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") # noqa: E501 collection_formats = {} @@ -21762,11 +25837,11 @@ def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21809,23 +25884,26 @@ def replace_namespaced_limit_range(self, name, namespace, body, **kwargs): # no >>> thread = api.replace_namespaced_limit_range(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1LimitRange If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_limit_range_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_limit_range_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_limit_range # noqa: E501 @@ -21836,46 +25914,66 @@ def replace_namespaced_limit_range_with_http_info(self, name, namespace, body, * >>> thread = api.replace_namespaced_limit_range_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1LimitRange body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1LimitRange + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1LimitRange, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_limit_range" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_limit_range`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_limit_range`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_limit_range`") # noqa: E501 collection_formats = {} @@ -21886,11 +25984,11 @@ def replace_namespaced_limit_range_with_http_info(self, name, namespace, body, * path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -21933,23 +26031,26 @@ def replace_namespaced_persistent_volume_claim(self, name, namespace, body, **kw >>> thread = api.replace_namespaced_persistent_volume_claim(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_persistent_volume_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_persistent_volume_claim # noqa: E501 @@ -21960,46 +26061,66 @@ def replace_namespaced_persistent_volume_claim_with_http_info(self, name, namesp >>> thread = api.replace_namespaced_persistent_volume_claim_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PersistentVolumeClaim + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeClaim, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_persistent_volume_claim" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim`") # noqa: E501 collection_formats = {} @@ -22010,11 +26131,11 @@ def replace_namespaced_persistent_volume_claim_with_http_info(self, name, namesp path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22057,23 +26178,26 @@ def replace_namespaced_persistent_volume_claim_status(self, name, namespace, bod >>> thread = api.replace_namespaced_persistent_volume_claim_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolumeClaim If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_persistent_volume_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_persistent_volume_claim_status # noqa: E501 @@ -22084,46 +26208,66 @@ def replace_namespaced_persistent_volume_claim_status_with_http_info(self, name, >>> thread = api.replace_namespaced_persistent_volume_claim_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PersistentVolumeClaim body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PersistentVolumeClaim + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolumeClaim, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_persistent_volume_claim_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_persistent_volume_claim_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_persistent_volume_claim_status`") # noqa: E501 collection_formats = {} @@ -22134,11 +26278,11 @@ def replace_namespaced_persistent_volume_claim_status_with_http_info(self, name, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22181,23 +26325,26 @@ def replace_namespaced_pod(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.replace_namespaced_pod(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_pod_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_pod # noqa: E501 @@ -22208,46 +26355,66 @@ def replace_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs) >>> thread = api.replace_namespaced_pod_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Pod + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Pod, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod`") # noqa: E501 collection_formats = {} @@ -22258,11 +26425,11 @@ def replace_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22305,23 +26472,26 @@ def replace_namespaced_pod_status(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_pod_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Pod If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_pod_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_pod_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_pod_status # noqa: E501 @@ -22332,46 +26502,66 @@ def replace_namespaced_pod_status_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_pod_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Pod body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Pod + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Pod, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_status`") # noqa: E501 collection_formats = {} @@ -22382,11 +26572,11 @@ def replace_namespaced_pod_status_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22429,23 +26619,26 @@ def replace_namespaced_pod_template(self, name, namespace, body, **kwargs): # n >>> thread = api.replace_namespaced_pod_template(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PodTemplate body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PodTemplate If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_pod_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_pod_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_pod_template # noqa: E501 @@ -22456,46 +26649,66 @@ def replace_namespaced_pod_template_with_http_info(self, name, namespace, body, >>> thread = api.replace_namespaced_pod_template_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1PodTemplate body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PodTemplate + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PodTemplate, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_template" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_template`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_template`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_template`") # noqa: E501 collection_formats = {} @@ -22506,11 +26719,11 @@ def replace_namespaced_pod_template_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22553,23 +26766,26 @@ def replace_namespaced_replication_controller(self, name, namespace, body, **kwa >>> thread = api.replace_namespaced_replication_controller(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replication_controller_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replication_controller_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replication_controller # noqa: E501 @@ -22580,46 +26796,66 @@ def replace_namespaced_replication_controller_with_http_info(self, name, namespa >>> thread = api.replace_namespaced_replication_controller_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ReplicationController + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicationController, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replication_controller" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller`") # noqa: E501 collection_formats = {} @@ -22630,11 +26866,11 @@ def replace_namespaced_replication_controller_with_http_info(self, name, namespa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22677,23 +26913,26 @@ def replace_namespaced_replication_controller_scale(self, name, namespace, body, >>> thread = api.replace_namespaced_replication_controller_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replication_controller_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replication_controller_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replication_controller_scale # noqa: E501 @@ -22704,46 +26943,66 @@ def replace_namespaced_replication_controller_scale_with_http_info(self, name, n >>> thread = api.replace_namespaced_replication_controller_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replication_controller_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_scale`") # noqa: E501 collection_formats = {} @@ -22754,11 +27013,11 @@ def replace_namespaced_replication_controller_scale_with_http_info(self, name, n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22801,23 +27060,26 @@ def replace_namespaced_replication_controller_status(self, name, namespace, body >>> thread = api.replace_namespaced_replication_controller_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ReplicationController If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replication_controller_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replication_controller_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replication_controller_status # noqa: E501 @@ -22828,46 +27090,66 @@ def replace_namespaced_replication_controller_status_with_http_info(self, name, >>> thread = api.replace_namespaced_replication_controller_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ReplicationController body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ReplicationController + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ReplicationController, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replication_controller_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_status`") # noqa: E501 collection_formats = {} @@ -22878,11 +27160,11 @@ def replace_namespaced_replication_controller_status_with_http_info(self, name, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -22925,23 +27207,26 @@ def replace_namespaced_resource_quota(self, name, namespace, body, **kwargs): # >>> thread = api.replace_namespaced_resource_quota(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_resource_quota_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_resource_quota_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_resource_quota # noqa: E501 @@ -22952,46 +27237,66 @@ def replace_namespaced_resource_quota_with_http_info(self, name, namespace, body >>> thread = api.replace_namespaced_resource_quota_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ResourceQuota + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceQuota, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_resource_quota" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota`") # noqa: E501 collection_formats = {} @@ -23002,11 +27307,11 @@ def replace_namespaced_resource_quota_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23049,23 +27354,26 @@ def replace_namespaced_resource_quota_status(self, name, namespace, body, **kwar >>> thread = api.replace_namespaced_resource_quota_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ResourceQuota If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_resource_quota_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_resource_quota_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_resource_quota_status # noqa: E501 @@ -23076,46 +27384,66 @@ def replace_namespaced_resource_quota_status_with_http_info(self, name, namespac >>> thread = api.replace_namespaced_resource_quota_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ResourceQuota body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ResourceQuota + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ResourceQuota, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_resource_quota_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_quota_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_quota_status`") # noqa: E501 collection_formats = {} @@ -23126,11 +27454,11 @@ def replace_namespaced_resource_quota_status_with_http_info(self, name, namespac path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23173,23 +27501,26 @@ def replace_namespaced_secret(self, name, namespace, body, **kwargs): # noqa: E >>> thread = api.replace_namespaced_secret(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Secret body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Secret If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_secret_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_secret # noqa: E501 @@ -23200,46 +27531,66 @@ def replace_namespaced_secret_with_http_info(self, name, namespace, body, **kwar >>> thread = api.replace_namespaced_secret_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Secret body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Secret + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Secret, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_secret" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_secret`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_secret`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_secret`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_secret`") # noqa: E501 collection_formats = {} @@ -23250,11 +27601,11 @@ def replace_namespaced_secret_with_http_info(self, name, namespace, body, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23297,23 +27648,26 @@ def replace_namespaced_service(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.replace_namespaced_service(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_service_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_service # noqa: E501 @@ -23324,46 +27678,66 @@ def replace_namespaced_service_with_http_info(self, name, namespace, body, **kwa >>> thread = api.replace_namespaced_service_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Service + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Service, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_service" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_service`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_service`") # noqa: E501 collection_formats = {} @@ -23374,11 +27748,11 @@ def replace_namespaced_service_with_http_info(self, name, namespace, body, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23421,23 +27795,26 @@ def replace_namespaced_service_account(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_service_account(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ServiceAccount body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ServiceAccount If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_service_account_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_service_account_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_service_account # noqa: E501 @@ -23448,46 +27825,66 @@ def replace_namespaced_service_account_with_http_info(self, name, namespace, bod >>> thread = api.replace_namespaced_service_account_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1ServiceAccount body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ServiceAccount + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ServiceAccount, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_service_account" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_service_account`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_account`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_account`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_service_account`") # noqa: E501 collection_formats = {} @@ -23498,11 +27895,11 @@ def replace_namespaced_service_account_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23545,23 +27942,26 @@ def replace_namespaced_service_status(self, name, namespace, body, **kwargs): # >>> thread = api.replace_namespaced_service_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Service If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_service_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_service_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_service_status # noqa: E501 @@ -23572,46 +27972,66 @@ def replace_namespaced_service_status_with_http_info(self, name, namespace, body >>> thread = api.replace_namespaced_service_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Service body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Service + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Service, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_service_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_service_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_service_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_service_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_service_status`") # noqa: E501 collection_formats = {} @@ -23622,11 +28042,11 @@ def replace_namespaced_service_status_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23669,22 +28089,25 @@ def replace_node(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_node(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param V1Node body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_node_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_node_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_node_with_http_info(name, body, **kwargs) # noqa: E501 def replace_node_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_node # noqa: E501 @@ -23695,41 +28118,60 @@ def replace_node_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_node_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param V1Node body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Node + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Node, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_node`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_node`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_node`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_node`") # noqa: E501 collection_formats = {} @@ -23738,11 +28180,11 @@ def replace_node_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23785,22 +28227,25 @@ def replace_node_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_node_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param V1Node body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Node If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_node_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_node_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_node_status_with_http_info(name, body, **kwargs) # noqa: E501 def replace_node_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_node_status # noqa: E501 @@ -23811,41 +28256,60 @@ def replace_node_status_with_http_info(self, name, body, **kwargs): # noqa: E50 >>> thread = api.replace_node_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Node (required) :param V1Node body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Node + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Node, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_node_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_node_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_node_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_node_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_node_status`") # noqa: E501 collection_formats = {} @@ -23854,11 +28318,11 @@ def replace_node_status_with_http_info(self, name, body, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -23901,22 +28365,25 @@ def replace_persistent_volume(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_persistent_volume(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param V1PersistentVolume body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_persistent_volume_with_http_info(name, body, **kwargs) # noqa: E501 def replace_persistent_volume_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_persistent_volume # noqa: E501 @@ -23927,41 +28394,60 @@ def replace_persistent_volume_with_http_info(self, name, body, **kwargs): # noq >>> thread = api.replace_persistent_volume_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param V1PersistentVolume body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PersistentVolume + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolume, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_persistent_volume" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_persistent_volume`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_persistent_volume`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_persistent_volume`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_persistent_volume`") # noqa: E501 collection_formats = {} @@ -23970,11 +28456,11 @@ def replace_persistent_volume_with_http_info(self, name, body, **kwargs): # noq path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -24017,22 +28503,25 @@ def replace_persistent_volume_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_persistent_volume_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param V1PersistentVolume body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PersistentVolume If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_persistent_volume_status_with_http_info(name, body, **kwargs) # noqa: E501 def replace_persistent_volume_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_persistent_volume_status # noqa: E501 @@ -24043,41 +28532,60 @@ def replace_persistent_volume_status_with_http_info(self, name, body, **kwargs): >>> thread = api.replace_persistent_volume_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PersistentVolume (required) :param V1PersistentVolume body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PersistentVolume + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PersistentVolume, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_persistent_volume_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_persistent_volume_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_persistent_volume_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_persistent_volume_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_persistent_volume_status`") # noqa: E501 collection_formats = {} @@ -24086,11 +28594,11 @@ def replace_persistent_volume_status_with_http_info(self, name, body, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/custom_objects_api.py b/kubernetes/client/api/custom_objects_api.py index ef2fed4fed..1186b0a0f5 100644 --- a/kubernetes/client/api/custom_objects_api.py +++ b/kubernetes/client/api/custom_objects_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class CustomObjectsApi(object): @@ -41,22 +45,27 @@ def create_cluster_custom_object(self, group, version, plural, body, **kwargs): >>> thread = api.create_cluster_custom_object(group, version, plural, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to create. (required) + :param object body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. + :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 + :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). + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_cluster_custom_object_with_http_info(group, version, plural, body, **kwargs) # noqa: E501 - else: - (data) = self.create_cluster_custom_object_with_http_info(group, version, plural, body, **kwargs) # noqa: E501 - return data + return self.create_cluster_custom_object_with_http_info(group, version, plural, body, **kwargs) # noqa: E501 def create_cluster_custom_object_with_http_info(self, group, version, plural, body, **kwargs): # noqa: E501 """create_cluster_custom_object # noqa: E501 @@ -67,49 +76,72 @@ def create_cluster_custom_object_with_http_info(self, group, version, plural, bo >>> thread = api.create_cluster_custom_object_with_http_info(group, version, plural, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to create. (required) + :param object body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. - :return: object + :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 + :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). + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'body', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `create_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `create_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `create_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `create_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `create_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `create_cluster_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_cluster_custom_object`") # noqa: E501 collection_formats = {} @@ -122,8 +154,12 @@ def create_cluster_custom_object_with_http_info(self, group, version, plural, bo path_params['plural'] = local_var_params['plural'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -165,23 +201,28 @@ def create_namespaced_custom_object(self, group, version, namespace, plural, bod >>> thread = api.create_namespaced_custom_object(group, version, namespace, plural, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to create. (required) + :param object body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. + :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 + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, **kwargs) # noqa: E501 def create_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, body, **kwargs): # noqa: E501 """create_namespaced_custom_object # noqa: E501 @@ -192,54 +233,78 @@ def create_namespaced_custom_object_with_http_info(self, group, version, namespa >>> thread = api.create_namespaced_custom_object_with_http_info(group, version, namespace, plural, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to create. (required) + :param object body: The JSON schema of the Resource to create. (required) :param str pretty: If 'true', then the output is pretty printed. - :return: object + :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 + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'body', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `create_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `create_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `create_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `create_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `create_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `create_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_custom_object`") # noqa: E501 collection_formats = {} @@ -254,8 +319,12 @@ def create_namespaced_custom_object_with_http_info(self, group, version, namespa path_params['plural'] = local_var_params['plural'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -288,86 +357,118 @@ def create_namespaced_custom_object_with_http_info(self, group, version, namespa _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_cluster_custom_object(self, group, version, plural, **kwargs): # noqa: E501 + def delete_cluster_custom_object(self, group, version, plural, name, **kwargs): # noqa: E501 """delete_cluster_custom_object # noqa: E501 Deletes the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_cluster_custom_object(group, version, plural, async_req=True) + >>> thread = api.delete_cluster_custom_object(group, version, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool - :param str group: The custom resource's group name (required) - :param str version: The custom resource's version (required) - :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param str pretty: If 'true', then the output is pretty printed. + :param async_req bool: execute request asynchronously + :param str group: the custom resource's group (required) + :param str version: the custom resource's version (required) + :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) + :param str name: the custom object's name (required) :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. :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. :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. + :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 :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_cluster_custom_object_with_http_info(group, version, plural, **kwargs) # noqa: E501 - else: - (data) = self.delete_cluster_custom_object_with_http_info(group, version, plural, **kwargs) # noqa: E501 - return data + return self.delete_cluster_custom_object_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 - def delete_cluster_custom_object_with_http_info(self, group, version, plural, **kwargs): # noqa: E501 + def delete_cluster_custom_object_with_http_info(self, group, version, plural, name, **kwargs): # noqa: E501 """delete_cluster_custom_object # noqa: E501 Deletes the specified cluster scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_cluster_custom_object_with_http_info(group, version, plural, async_req=True) + >>> thread = api.delete_cluster_custom_object_with_http_info(group, version, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool - :param str group: The custom resource's group name (required) - :param str version: The custom resource's version (required) - :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) - :param str pretty: If 'true', then the output is pretty printed. + :param async_req bool: execute request asynchronously + :param str group: the custom resource's group (required) + :param str version: the custom resource's version (required) + :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) + :param str name: the custom object's name (required) :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. :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. :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. + :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 :param V1DeleteOptions body: - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'dry_run', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `delete_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `delete_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `delete_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `delete_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `delete_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `delete_cluster_custom_object`") # noqa: E501 + # verify the required parameter 'name' is set + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_cluster_custom_object`") # noqa: E501 collection_formats = {} @@ -378,16 +479,18 @@ def delete_cluster_custom_object_with_http_info(self, group, version, plural, ** path_params['version'] = local_var_params['version'] # noqa: E501 if 'plural' in local_var_params: path_params['plural'] = local_var_params['plural'] # noqa: E501 + if 'name' in local_var_params: + path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: - query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 header_params = {} @@ -405,7 +508,7 @@ def delete_cluster_custom_object_with_http_info(self, group, version, plural, ** auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/{group}/{version}/{plural}', 'DELETE', + '/apis/{group}/{version}/{plural}/{name}', 'DELETE', path_params, query_params, header_params, @@ -420,90 +523,114 @@ def delete_cluster_custom_object_with_http_info(self, group, version, plural, ** _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_cluster_custom_object_0(self, group, version, plural, name, **kwargs): # noqa: E501 - """delete_cluster_custom_object_0 # noqa: E501 + def delete_collection_cluster_custom_object(self, group, version, plural, **kwargs): # noqa: E501 + """delete_collection_cluster_custom_object # noqa: E501 - Deletes the specified cluster scoped custom object # noqa: E501 + Delete collection of cluster scoped custom objects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_cluster_custom_object_0(group, version, plural, name, async_req=True) + >>> thread = api.delete_collection_cluster_custom_object(group, version, plural, async_req=True) >>> result = thread.get() - :param async_req bool - :param str group: the custom resource's group (required) - :param str version: the custom resource's version (required) - :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) - :param str name: the custom object's name (required) + :param async_req bool: execute request asynchronously + :param str group: The custom resource's group name (required) + :param str version: The custom resource's version (required) + :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) + :param str pretty: If 'true', then the output is pretty printed. :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. :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. :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. + :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 :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_cluster_custom_object_0_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 - else: - (data) = self.delete_cluster_custom_object_0_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 - return data + return self.delete_collection_cluster_custom_object_with_http_info(group, version, plural, **kwargs) # noqa: E501 - def delete_cluster_custom_object_0_with_http_info(self, group, version, plural, name, **kwargs): # noqa: E501 - """delete_cluster_custom_object_0 # noqa: E501 + def delete_collection_cluster_custom_object_with_http_info(self, group, version, plural, **kwargs): # noqa: E501 + """delete_collection_cluster_custom_object # noqa: E501 - Deletes the specified cluster scoped custom object # noqa: E501 + Delete collection of cluster scoped custom objects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_cluster_custom_object_0_with_http_info(group, version, plural, name, async_req=True) + >>> thread = api.delete_collection_cluster_custom_object_with_http_info(group, version, plural, async_req=True) >>> result = thread.get() - :param async_req bool - :param str group: the custom resource's group (required) - :param str version: the custom resource's version (required) - :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) - :param str name: the custom object's name (required) + :param async_req bool: execute request asynchronously + :param str group: The custom resource's group name (required) + :param str version: The custom resource's version (required) + :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) + :param str pretty: If 'true', then the output is pretty printed. :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. :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. :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. + :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 :param V1DeleteOptions body: - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'pretty', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'dry_run', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_cluster_custom_object_0" % key + " to method delete_collection_cluster_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `delete_cluster_custom_object_0`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `delete_collection_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `delete_cluster_custom_object_0`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `delete_collection_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `delete_cluster_custom_object_0`") # noqa: E501 - # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_custom_object_0`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `delete_collection_cluster_custom_object`") # noqa: E501 collection_formats = {} @@ -514,16 +641,18 @@ def delete_cluster_custom_object_0_with_http_info(self, group, version, plural, path_params['version'] = local_var_params['version'] # noqa: E501 if 'plural' in local_var_params: path_params['plural'] = local_var_params['plural'] # noqa: E501 - if 'name' in local_var_params: - path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'grace_period_seconds' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 + query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 header_params = {} @@ -541,7 +670,7 @@ def delete_cluster_custom_object_0_with_http_info(self, group, version, plural, auth_settings = ['BearerToken'] # noqa: E501 return self.api_client.call_api( - '/apis/{group}/{version}/{plural}/{name}', 'DELETE', + '/apis/{group}/{version}/{plural}', 'DELETE', path_params, query_params, header_params, @@ -556,16 +685,16 @@ def delete_cluster_custom_object_0_with_http_info(self, group, version, plural, _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_custom_object(self, group, version, namespace, plural, **kwargs): # noqa: E501 - """delete_namespaced_custom_object # noqa: E501 + def delete_collection_namespaced_custom_object(self, group, version, namespace, plural, **kwargs): # noqa: E501 + """delete_collection_namespaced_custom_object # noqa: E501 - Deletes the specified namespace scoped custom object # noqa: E501 + Delete collection of namespace scoped custom objects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_custom_object(group, version, namespace, plural, async_req=True) + >>> thread = api.delete_collection_namespaced_custom_object(group, version, namespace, plural, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) @@ -574,28 +703,32 @@ def delete_namespaced_custom_object(self, group, version, namespace, plural, **k :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. :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. :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. + :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 :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) # noqa: E501 - def delete_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, **kwargs): # noqa: E501 - """delete_namespaced_custom_object # noqa: E501 + def delete_collection_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, **kwargs): # noqa: E501 + """delete_collection_namespaced_custom_object # noqa: E501 - Deletes the specified namespace scoped custom object # noqa: E501 + Delete collection of namespace scoped custom objects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, async_req=True) + >>> thread = api.delete_collection_namespaced_custom_object_with_http_info(group, version, namespace, plural, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) @@ -604,44 +737,69 @@ def delete_namespaced_custom_object_with_http_info(self, group, version, namespa :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. :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. :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. + :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 :param V1DeleteOptions body: - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'pretty', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'pretty', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'dry_run', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_custom_object" % key + " to method delete_collection_namespaced_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `delete_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `delete_collection_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `delete_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `delete_collection_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `delete_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `delete_collection_namespaced_custom_object`") # noqa: E501 collection_formats = {} @@ -656,14 +814,16 @@ def delete_namespaced_custom_object_with_http_info(self, group, version, namespa path_params['plural'] = local_var_params['plural'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 header_params = {} @@ -696,16 +856,16 @@ def delete_namespaced_custom_object_with_http_info(self, group, version, namespa _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_custom_object_0(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 - """delete_namespaced_custom_object_0 # noqa: E501 + def delete_namespaced_custom_object(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 + """delete_namespaced_custom_object # noqa: E501 Deletes the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_custom_object_0(group, version, namespace, plural, name, async_req=True) + >>> thread = api.delete_namespaced_custom_object(group, version, namespace, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) @@ -714,28 +874,32 @@ def delete_namespaced_custom_object_0(self, group, version, namespace, plural, n :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. :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. :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. + :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 :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_custom_object_0_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_custom_object_0_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 - def delete_namespaced_custom_object_0_with_http_info(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 - """delete_namespaced_custom_object_0 # noqa: E501 + def delete_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 + """delete_namespaced_custom_object # noqa: E501 Deletes the specified namespace scoped custom object # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_namespaced_custom_object_0_with_http_info(group, version, namespace, plural, name, async_req=True) + >>> thread = api.delete_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) @@ -744,48 +908,73 @@ def delete_namespaced_custom_object_0_with_http_info(self, group, version, names :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. :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. :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. + :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 :param V1DeleteOptions body: - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'dry_run', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_custom_object_0" % key + " to method delete_namespaced_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `delete_namespaced_custom_object_0`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `delete_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `delete_namespaced_custom_object_0`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `delete_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_custom_object_0`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `delete_namespaced_custom_object_0`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `delete_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_custom_object_0`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_custom_object`") # noqa: E501 collection_formats = {} @@ -802,12 +991,14 @@ def delete_namespaced_custom_object_0_with_http_info(self, group, version, names path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 header_params = {} @@ -849,21 +1040,24 @@ def get_cluster_custom_object(self, group, version, plural, name, **kwargs): # >>> thread = api.get_cluster_custom_object(group, version, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_cluster_custom_object_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 - else: - (data) = self.get_cluster_custom_object_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 - return data + return self.get_cluster_custom_object_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 def get_cluster_custom_object_with_http_info(self, group, version, plural, name, **kwargs): # noqa: E501 """get_cluster_custom_object # noqa: E501 @@ -874,48 +1068,66 @@ def get_cluster_custom_object_with_http_info(self, group, version, plural, name, >>> thread = api.get_cluster_custom_object_with_http_info(group, version, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_cluster_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `get_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `get_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_cluster_custom_object`") # noqa: E501 collection_formats = {} @@ -969,21 +1181,24 @@ def get_cluster_custom_object_scale(self, group, version, plural, name, **kwargs >>> thread = api.get_cluster_custom_object_scale(group, version, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_cluster_custom_object_scale_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 - else: - (data) = self.get_cluster_custom_object_scale_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 - return data + return self.get_cluster_custom_object_scale_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 def get_cluster_custom_object_scale_with_http_info(self, group, version, plural, name, **kwargs): # noqa: E501 """get_cluster_custom_object_scale # noqa: E501 @@ -994,48 +1209,66 @@ def get_cluster_custom_object_scale_with_http_info(self, group, version, plural, >>> thread = api.get_cluster_custom_object_scale_with_http_info(group, version, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_cluster_custom_object_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `get_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `get_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_cluster_custom_object_scale`") # noqa: E501 collection_formats = {} @@ -1089,21 +1322,24 @@ def get_cluster_custom_object_status(self, group, version, plural, name, **kwarg >>> thread = api.get_cluster_custom_object_status(group, version, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_cluster_custom_object_status_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 - else: - (data) = self.get_cluster_custom_object_status_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 - return data + return self.get_cluster_custom_object_status_with_http_info(group, version, plural, name, **kwargs) # noqa: E501 def get_cluster_custom_object_status_with_http_info(self, group, version, plural, name, **kwargs): # noqa: E501 """get_cluster_custom_object_status # noqa: E501 @@ -1114,48 +1350,66 @@ def get_cluster_custom_object_status_with_http_info(self, group, version, plural >>> thread = api.get_cluster_custom_object_status_with_http_info(group, version, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_cluster_custom_object_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `get_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `get_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `get_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_cluster_custom_object_status`") # noqa: E501 collection_formats = {} @@ -1209,22 +1463,25 @@ def get_namespaced_custom_object(self, group, version, namespace, plural, name, >>> thread = api.get_namespaced_custom_object(group, version, namespace, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 - else: - (data) = self.get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 - return data + return self.get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 def get_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 """get_namespaced_custom_object # noqa: E501 @@ -1235,53 +1492,72 @@ def get_namespaced_custom_object_with_http_info(self, group, version, namespace, >>> thread = api.get_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_namespaced_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object`") # noqa: E501 collection_formats = {} @@ -1337,22 +1613,25 @@ def get_namespaced_custom_object_scale(self, group, version, namespace, plural, >>> thread = api.get_namespaced_custom_object_scale(group, version, namespace, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 - else: - (data) = self.get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 - return data + return self.get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 def get_namespaced_custom_object_scale_with_http_info(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 """get_namespaced_custom_object_scale # noqa: E501 @@ -1363,53 +1642,72 @@ def get_namespaced_custom_object_scale_with_http_info(self, group, version, name >>> thread = api.get_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_namespaced_custom_object_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object_scale`") # noqa: E501 collection_formats = {} @@ -1465,22 +1763,25 @@ def get_namespaced_custom_object_status(self, group, version, namespace, plural, >>> thread = api.get_namespaced_custom_object_status(group, version, namespace, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 - else: - (data) = self.get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 - return data + return self.get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, **kwargs) # noqa: E501 def get_namespaced_custom_object_status_with_http_info(self, group, version, namespace, plural, name, **kwargs): # noqa: E501 """get_namespaced_custom_object_status # noqa: E501 @@ -1491,53 +1792,72 @@ def get_namespaced_custom_object_status_with_http_info(self, group, version, nam >>> thread = api.get_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_namespaced_custom_object_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `get_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `get_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `get_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `get_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `get_namespaced_custom_object_status`") # noqa: E501 collection_formats = {} @@ -1593,7 +1913,7 @@ def list_cluster_custom_object(self, group, version, plural, **kwargs): # noqa: >>> thread = api.list_cluster_custom_object(group, version, plural, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) @@ -1605,16 +1925,19 @@ def list_cluster_custom_object(self, group, version, plural, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_cluster_custom_object_with_http_info(group, version, plural, **kwargs) # noqa: E501 - else: - (data) = self.list_cluster_custom_object_with_http_info(group, version, plural, **kwargs) # noqa: E501 - return data + return self.list_cluster_custom_object_with_http_info(group, version, plural, **kwargs) # noqa: E501 def list_cluster_custom_object_with_http_info(self, group, version, plural, **kwargs): # noqa: E501 """list_cluster_custom_object # noqa: E501 @@ -1625,7 +1948,7 @@ def list_cluster_custom_object_with_http_info(self, group, version, plural, **kw >>> thread = api.list_cluster_custom_object_with_http_info(group, version, plural, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str plural: The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) @@ -1637,39 +1960,64 @@ def list_cluster_custom_object_with_http_info(self, group, version, plural, **kw :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'pretty', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `list_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `list_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `list_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `list_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `list_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `list_cluster_custom_object`") # noqa: E501 collection_formats = {} @@ -1682,21 +2030,21 @@ def list_cluster_custom_object_with_http_info(self, group, version, plural, **kw path_params['plural'] = local_var_params['plural'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1737,7 +2085,7 @@ def list_namespaced_custom_object(self, group, version, namespace, plural, **kwa >>> thread = api.list_namespaced_custom_object(group, version, namespace, plural, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) @@ -1750,16 +2098,19 @@ def list_namespaced_custom_object(self, group, version, namespace, plural, **kwa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) # noqa: E501 - return data + return self.list_namespaced_custom_object_with_http_info(group, version, namespace, plural, **kwargs) # noqa: E501 def list_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, **kwargs): # noqa: E501 """list_namespaced_custom_object # noqa: E501 @@ -1770,7 +2121,7 @@ def list_namespaced_custom_object_with_http_info(self, group, version, namespace >>> thread = api.list_namespaced_custom_object_with_http_info(group, version, namespace, plural, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: The custom resource's group name (required) :param str version: The custom resource's version (required) :param str namespace: The custom resource's namespace (required) @@ -1783,43 +2134,69 @@ def list_namespaced_custom_object_with_http_info(self, group, version, namespace :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. - :return: object + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'pretty', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'pretty', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `list_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `list_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `list_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `list_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `list_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `list_namespaced_custom_object`") # noqa: E501 collection_formats = {} @@ -1834,21 +2211,21 @@ def list_namespaced_custom_object_with_http_info(self, group, version, namespace path_params['plural'] = local_var_params['plural'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1889,22 +2266,28 @@ def patch_cluster_custom_object(self, group, version, plural, name, body, **kwar >>> thread = api.patch_cluster_custom_object(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to patch. (required) + :param object body: The JSON schema of the Resource to patch. (required) + :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 + :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). + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - return data + return self.patch_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 def patch_cluster_custom_object_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 """patch_cluster_custom_object # noqa: E501 @@ -1915,53 +2298,78 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam >>> thread = api.patch_cluster_custom_object_with_http_info(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to patch. (required) - :return: object + :param object body: The JSON schema of the Resource to patch. (required) + :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 + :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). + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object`") # noqa: E501 collection_formats = {} @@ -1976,6 +2384,12 @@ def patch_cluster_custom_object_with_http_info(self, group, version, plural, nam path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2021,22 +2435,28 @@ def patch_cluster_custom_object_scale(self, group, version, plural, name, body, >>> thread = api.patch_cluster_custom_object_scale(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) + :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 + :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). + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - return data + return self.patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 def patch_cluster_custom_object_scale_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 """patch_cluster_custom_object_scale # noqa: E501 @@ -2047,53 +2467,78 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura >>> thread = api.patch_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) - :return: object + :param object body: (required) + :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 + :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). + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_custom_object_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object_scale`") # noqa: E501 collection_formats = {} @@ -2108,6 +2553,12 @@ def patch_cluster_custom_object_scale_with_http_info(self, group, version, plura path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2153,22 +2604,28 @@ def patch_cluster_custom_object_status(self, group, version, plural, name, body, >>> thread = api.patch_cluster_custom_object_status(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) + :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 + :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). + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - return data + return self.patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 def patch_cluster_custom_object_status_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 """patch_cluster_custom_object_status # noqa: E501 @@ -2179,53 +2636,78 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur >>> thread = api.patch_cluster_custom_object_status_with_http_info(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) - :return: object + :param object body: (required) + :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 + :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). + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_custom_object_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `patch_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `patch_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `patch_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_custom_object_status`") # noqa: E501 collection_formats = {} @@ -2240,6 +2722,12 @@ def patch_cluster_custom_object_status_with_http_info(self, group, version, plur path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2285,23 +2773,29 @@ def patch_namespaced_custom_object(self, group, version, namespace, plural, name >>> thread = api.patch_namespaced_custom_object(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to patch. (required) + :param object body: The JSON schema of the Resource to patch. (required) + :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 + :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). + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 def patch_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 """patch_namespaced_custom_object # noqa: E501 @@ -2312,58 +2806,84 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac >>> thread = api.patch_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to patch. (required) - :return: object + :param object body: The JSON schema of the Resource to patch. (required) + :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 + :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). + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object`") # noqa: E501 collection_formats = {} @@ -2380,6 +2900,12 @@ def patch_namespaced_custom_object_with_http_info(self, group, version, namespac path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2425,23 +2951,29 @@ def patch_namespaced_custom_object_scale(self, group, version, namespace, plural >>> thread = api.patch_namespaced_custom_object_scale(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) + :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 + :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). + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 def patch_namespaced_custom_object_scale_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 """patch_namespaced_custom_object_scale # noqa: E501 @@ -2452,58 +2984,84 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na >>> thread = api.patch_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) - :return: object + :param object body: (required) + :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 + :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). + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_custom_object_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object_scale`") # noqa: E501 collection_formats = {} @@ -2520,6 +3078,12 @@ def patch_namespaced_custom_object_scale_with_http_info(self, group, version, na path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2565,23 +3129,29 @@ def patch_namespaced_custom_object_status(self, group, version, namespace, plura >>> thread = api.patch_namespaced_custom_object_status(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) + :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 + :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). + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 def patch_namespaced_custom_object_status_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 """patch_namespaced_custom_object_status # noqa: E501 @@ -2592,58 +3162,84 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n >>> thread = api.patch_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) - :return: object + :param object body: (required) + :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 + :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). + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_custom_object_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_custom_object_status`") # noqa: E501 collection_formats = {} @@ -2660,6 +3256,12 @@ def patch_namespaced_custom_object_status_with_http_info(self, group, version, n path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 + query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2705,22 +3307,27 @@ def replace_cluster_custom_object(self, group, version, plural, name, body, **kw >>> thread = api.replace_cluster_custom_object(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to replace. (required) + :param object body: The JSON schema of the Resource to replace. (required) + :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 + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - return data + return self.replace_cluster_custom_object_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 def replace_cluster_custom_object_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 """replace_cluster_custom_object # noqa: E501 @@ -2731,53 +3338,76 @@ def replace_cluster_custom_object_with_http_info(self, group, version, plural, n >>> thread = api.replace_cluster_custom_object_with_http_info(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom object's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to replace. (required) - :return: object + :param object body: The JSON schema of the Resource to replace. (required) + :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 + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object`") # noqa: E501 collection_formats = {} @@ -2792,6 +3422,10 @@ def replace_cluster_custom_object_with_http_info(self, group, version, plural, n path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2833,22 +3467,27 @@ def replace_cluster_custom_object_scale(self, group, version, plural, name, body >>> thread = api.replace_cluster_custom_object_scale(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) + :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 + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - return data + return self.replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 def replace_cluster_custom_object_scale_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 """replace_cluster_custom_object_scale # noqa: E501 @@ -2859,53 +3498,76 @@ def replace_cluster_custom_object_scale_with_http_info(self, group, version, plu >>> thread = api.replace_cluster_custom_object_scale_with_http_info(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) - :return: object + :param object body: (required) + :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 + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_custom_object_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object_scale`") # noqa: E501 collection_formats = {} @@ -2920,6 +3582,10 @@ def replace_cluster_custom_object_scale_with_http_info(self, group, version, plu path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2961,22 +3627,27 @@ def replace_cluster_custom_object_status(self, group, version, plural, name, bod >>> thread = api.replace_cluster_custom_object_status(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) + :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 + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 - return data + return self.replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, **kwargs) # noqa: E501 def replace_cluster_custom_object_status_with_http_info(self, group, version, plural, name, body, **kwargs): # noqa: E501 """replace_cluster_custom_object_status # noqa: E501 @@ -2987,53 +3658,76 @@ def replace_cluster_custom_object_status_with_http_info(self, group, version, pl >>> thread = api.replace_cluster_custom_object_status_with_http_info(group, version, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) - :return: object + :param object body: (required) + :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 + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_custom_object_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `replace_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `replace_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `replace_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_custom_object_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_custom_object_status`") # noqa: E501 collection_formats = {} @@ -3048,6 +3742,10 @@ def replace_cluster_custom_object_status_with_http_info(self, group, version, pl path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3089,23 +3787,28 @@ def replace_namespaced_custom_object(self, group, version, namespace, plural, na >>> thread = api.replace_namespaced_custom_object(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to replace. (required) + :param object body: The JSON schema of the Resource to replace. (required) + :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 + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 def replace_namespaced_custom_object_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 """replace_namespaced_custom_object # noqa: E501 @@ -3116,58 +3819,82 @@ def replace_namespaced_custom_object_with_http_info(self, group, version, namesp >>> thread = api.replace_namespaced_custom_object_with_http_info(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: The JSON schema of the Resource to replace. (required) - :return: object + :param object body: The JSON schema of the Resource to replace. (required) + :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 + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_custom_object" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object`") # noqa: E501 collection_formats = {} @@ -3184,6 +3911,10 @@ def replace_namespaced_custom_object_with_http_info(self, group, version, namesp path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3225,23 +3956,28 @@ def replace_namespaced_custom_object_scale(self, group, version, namespace, plur >>> thread = api.replace_namespaced_custom_object_scale(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) + :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 + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 def replace_namespaced_custom_object_scale_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 """replace_namespaced_custom_object_scale # noqa: E501 @@ -3252,58 +3988,82 @@ def replace_namespaced_custom_object_scale_with_http_info(self, group, version, >>> thread = api.replace_namespaced_custom_object_scale_with_http_info(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) - :return: object + :param object body: (required) + :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 + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_custom_object_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object_scale`") # noqa: E501 collection_formats = {} @@ -3320,6 +4080,10 @@ def replace_namespaced_custom_object_scale_with_http_info(self, group, version, path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3361,23 +4125,28 @@ def replace_namespaced_custom_object_status(self, group, version, namespace, plu >>> thread = api.replace_namespaced_custom_object_status(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) + :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 + :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: object If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, **kwargs) # noqa: E501 def replace_namespaced_custom_object_status_with_http_info(self, group, version, namespace, plural, name, body, **kwargs): # noqa: E501 """replace_namespaced_custom_object_status # noqa: E501 @@ -3388,58 +4157,82 @@ def replace_namespaced_custom_object_status_with_http_info(self, group, version, >>> thread = api.replace_namespaced_custom_object_status_with_http_info(group, version, namespace, plural, name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str group: the custom resource's group (required) :param str version: the custom resource's version (required) :param str namespace: The custom resource's namespace (required) :param str plural: the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) :param str name: the custom object's name (required) - :param UNKNOWN_BASE_TYPE body: (required) - :return: object + :param object body: (required) + :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 + :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. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['group', 'version', 'namespace', 'plural', 'name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'group', + 'version', + 'namespace', + 'plural', + 'name', + 'body', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_custom_object_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'group' is set - if ('group' not in local_var_params or - local_var_params['group'] is None): - raise ValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('group' not in local_var_params or # noqa: E501 + local_var_params['group'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `group` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'version' is set - if ('version' not in local_var_params or - local_var_params['version'] is None): - raise ValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('version' not in local_var_params or # noqa: E501 + local_var_params['version'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `version` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'plural' is set - if ('plural' not in local_var_params or - local_var_params['plural'] is None): - raise ValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('plural' not in local_var_params or # noqa: E501 + local_var_params['plural'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `plural` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_custom_object_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_custom_object_status`") # noqa: E501 collection_formats = {} @@ -3456,6 +4249,10 @@ def replace_namespaced_custom_object_status_with_http_info(self, group, version, path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 + query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 + query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/discovery_api.py b/kubernetes/client/api/discovery_api.py index e3c55ad559..5c28b851ff 100644 --- a/kubernetes/client/api/discovery_api.py +++ b/kubernetes/client/api/discovery_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class DiscoveryApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/discovery_v1alpha1_api.py b/kubernetes/client/api/discovery_v1alpha1_api.py index e77892c64e..13713296f4 100644 --- a/kubernetes/client/api/discovery_v1alpha1_api.py +++ b/kubernetes/client/api/discovery_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class DiscoveryV1alpha1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_endpoint_slice(self, namespace, body, **kwargs): # noqa: >>> thread = api.create_namespaced_endpoint_slice(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1EndpointSlice body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1EndpointSlice If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_endpoint_slice_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_endpoint_slice_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_endpoint_slice_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_endpoint_slice_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_endpoint_slice # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_endpoint_slice_with_http_info(self, namespace, body, **kwa >>> thread = api.create_namespaced_endpoint_slice_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1EndpointSlice body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1EndpointSlice + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1EndpointSlice, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_endpoint_slice" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_endpoint_slice`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_endpoint_slice`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_endpoint_slice_with_http_info(self, namespace, body, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_endpoint_slice(self, namespace, **kwargs): # n >>> thread = api.delete_collection_namespaced_endpoint_slice(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_endpoint_slice(self, namespace, **kwargs): # n :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_endpoint_slice_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_endpoint_slice_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_endpoint_slice_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_endpoint_slice_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_endpoint_slice # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_endpoint_slice_with_http_info(self, namespace, >>> thread = api.delete_collection_namespaced_endpoint_slice_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_endpoint_slice_with_http_info(self, namespace, :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_endpoint_slice" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_endpoint_slice`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_endpoint_slice_with_http_info(self, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_endpoint_slice_with_http_info(self, namespace, local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_endpoint_slice(self, name, namespace, **kwargs): # noqa: >>> thread = api.delete_namespaced_endpoint_slice(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the EndpointSlice (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_endpoint_slice(self, name, namespace, **kwargs): # noqa: :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_endpoint_slice_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_endpoint_slice_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_endpoint_slice_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_endpoint_slice_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_endpoint_slice # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_endpoint_slice_with_http_info(self, name, namespace, **kwa >>> thread = api.delete_namespaced_endpoint_slice_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the EndpointSlice (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_endpoint_slice_with_http_info(self, name, namespace, **kwa :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_endpoint_slice" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_endpoint_slice`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_endpoint_slice`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_endpoint_slice_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_endpoint_slice_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_endpoint_slice_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_endpoint_slice_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1EndpointSliceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_endpoint_slice_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_endpoint_slice_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_endpoint_slice_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_endpoint_slice_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_endpoint_slice_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_endpoint_slice_for_all_namespaces_with_http_info(self, **kwargs): # no >>> thread = api.list_endpoint_slice_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_endpoint_slice_for_all_namespaces_with_http_info(self, **kwargs): # no :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1EndpointSliceList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1EndpointSliceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_endpoint_slice_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_endpoint_slice_for_all_namespaces_with_http_info(self, **kwargs): # no path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_endpoint_slice(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_endpoint_slice(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_endpoint_slice(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1EndpointSliceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_endpoint_slice_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_endpoint_slice_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_endpoint_slice_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_endpoint_slice_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_endpoint_slice # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_endpoint_slice_with_http_info(self, namespace, **kwargs): # >>> thread = api.list_namespaced_endpoint_slice_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_endpoint_slice_with_http_info(self, namespace, **kwargs): # :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1EndpointSliceList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1EndpointSliceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_endpoint_slice" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_endpoint_slice`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_endpoint_slice_with_http_info(self, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_endpoint_slice(self, name, namespace, body, **kwargs): # n >>> thread = api.patch_namespaced_endpoint_slice(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the EndpointSlice (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1EndpointSlice If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_endpoint_slice_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_endpoint_slice_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_endpoint_slice_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_endpoint_slice_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_endpoint_slice # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_endpoint_slice_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_endpoint_slice_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the EndpointSlice (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1EndpointSlice + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1EndpointSlice, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_endpoint_slice" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_endpoint_slice`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_endpoint_slice`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_endpoint_slice`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_endpoint_slice_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,22 +1080,25 @@ def read_namespaced_endpoint_slice(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.read_namespaced_endpoint_slice(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the EndpointSlice (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1EndpointSlice If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_endpoint_slice_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_endpoint_slice_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_endpoint_slice_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_endpoint_slice_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_endpoint_slice # noqa: E501 @@ -939,41 +1109,60 @@ def read_namespaced_endpoint_slice_with_http_info(self, name, namespace, **kwarg >>> thread = api.read_namespaced_endpoint_slice_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the EndpointSlice (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1alpha1EndpointSlice + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1EndpointSlice, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_endpoint_slice" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_endpoint_slice`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_endpoint_slice`") # noqa: E501 collection_formats = {} @@ -984,11 +1173,11 @@ def read_namespaced_endpoint_slice_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1029,23 +1218,26 @@ def replace_namespaced_endpoint_slice(self, name, namespace, body, **kwargs): # >>> thread = api.replace_namespaced_endpoint_slice(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the EndpointSlice (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1EndpointSlice body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1EndpointSlice If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_endpoint_slice_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_endpoint_slice_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_endpoint_slice_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_endpoint_slice_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_endpoint_slice # noqa: E501 @@ -1056,46 +1248,66 @@ def replace_namespaced_endpoint_slice_with_http_info(self, name, namespace, body >>> thread = api.replace_namespaced_endpoint_slice_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the EndpointSlice (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1EndpointSlice body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1EndpointSlice + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1EndpointSlice, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_endpoint_slice" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_endpoint_slice`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_endpoint_slice`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_endpoint_slice`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_endpoint_slice`") # noqa: E501 collection_formats = {} @@ -1106,11 +1318,11 @@ def replace_namespaced_endpoint_slice_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/events_api.py b/kubernetes/client/api/events_api.py index 633cde7fb6..a5797e9a52 100644 --- a/kubernetes/client/api/events_api.py +++ b/kubernetes/client/api/events_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class EventsApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/events_v1beta1_api.py b/kubernetes/client/api/events_v1beta1_api.py index 4648c0d260..e799e6178d 100644 --- a/kubernetes/client/api/events_v1beta1_api.py +++ b/kubernetes/client/api/events_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class EventsV1beta1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_event(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_event(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_event_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_event # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): # >>> thread = api.create_namespaced_event_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1Event + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Event, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_event`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_event_with_http_info(self, namespace, body, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_event(self, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_collection_namespaced_event(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_event(self, namespace, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_event # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) >>> thread = api.delete_collection_namespaced_event_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_event`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_event_with_http_info(self, namespace, **kwargs) local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_event(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_event # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.delete_namespaced_event_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_event`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_event_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_event_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_event_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_event_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1EventList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_event_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_event_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_event_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1EventList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1EventList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_event_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_event_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_event(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_event(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_event(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1EventList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_event_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_event # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E5 >>> thread = api.list_namespaced_event_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E5 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1EventList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1EventList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_event`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_event_with_http_info(self, namespace, **kwargs): # noqa: E5 path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_event(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespaced_event(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_event # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) >>> thread = api.patch_namespaced_event_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1Event + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Event, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_event`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,22 +1080,25 @@ def read_namespaced_event(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_event(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_event_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_event # noqa: E501 @@ -939,41 +1109,60 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): # no >>> thread = api.read_namespaced_event_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1Event + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Event, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_event`") # noqa: E501 collection_formats = {} @@ -984,11 +1173,11 @@ def read_namespaced_event_with_http_info(self, name, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1029,23 +1218,26 @@ def replace_namespaced_event(self, name, namespace, body, **kwargs): # noqa: E5 >>> thread = api.replace_namespaced_event(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Event If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_event_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_event # noqa: E501 @@ -1056,46 +1248,66 @@ def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwarg >>> thread = api.replace_namespaced_event_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Event body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1Event + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Event, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_event" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_event`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_event`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_event`") # noqa: E501 collection_formats = {} @@ -1106,11 +1318,11 @@ def replace_namespaced_event_with_http_info(self, name, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/extensions_api.py b/kubernetes/client/api/extensions_api.py index 3c229f05a6..ecd2b52934 100644 --- a/kubernetes/client/api/extensions_api.py +++ b/kubernetes/client/api/extensions_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ExtensionsApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/extensions_v1beta1_api.py b/kubernetes/client/api/extensions_v1beta1_api.py index 303f7fa5d0..b08b4a4bce 100644 --- a/kubernetes/client/api/extensions_v1beta1_api.py +++ b/kubernetes/client/api/extensions_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class ExtensionsV1beta1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_daemon_set(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_daemon_set(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_daemon_set_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_daemon_set # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_daemon_set_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_daemon_set_with_http_info(self, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,22 +183,25 @@ def create_namespaced_deployment(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_deployment(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_deployment # noqa: E501 @@ -183,41 +212,60 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_deployment_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -226,11 +274,11 @@ def create_namespaced_deployment_with_http_info(self, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -273,23 +321,26 @@ def create_namespaced_deployment_rollback(self, name, namespace, body, **kwargs) >>> thread = api.create_namespaced_deployment_rollback(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DeploymentRollback (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1DeploymentRollback body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """create_namespaced_deployment_rollback # noqa: E501 @@ -300,46 +351,66 @@ def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, >>> thread = api.create_namespaced_deployment_rollback_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DeploymentRollback (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1DeploymentRollback body: (required) :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 :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. :param str pretty: If 'true', then the output is pretty printed. - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'dry_run', 'field_manager', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'dry_run', + 'field_manager', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_deployment_rollback" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `create_namespaced_deployment_rollback`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_deployment_rollback`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_deployment_rollback`") # noqa: E501 collection_formats = {} @@ -350,11 +421,11 @@ def create_namespaced_deployment_rollback_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -397,22 +468,25 @@ def create_namespaced_ingress(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_ingress(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_ingress # noqa: E501 @@ -423,41 +497,60 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): >>> thread = api.create_namespaced_ingress_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -466,11 +559,11 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -513,22 +606,25 @@ def create_namespaced_network_policy(self, namespace, body, **kwargs): # noqa: >>> thread = api.create_namespaced_network_policy(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_network_policy # noqa: E501 @@ -539,41 +635,60 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa >>> thread = api.create_namespaced_network_policy_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1NetworkPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1NetworkPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -582,11 +697,11 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -629,22 +744,25 @@ def create_namespaced_replica_set(self, namespace, body, **kwargs): # noqa: E50 >>> thread = api.create_namespaced_replica_set(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_replica_set_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_replica_set # noqa: E501 @@ -655,41 +773,60 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs >>> thread = api.create_namespaced_replica_set_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -698,11 +835,11 @@ def create_namespaced_replica_set_with_http_info(self, namespace, body, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -745,21 +882,24 @@ def create_pod_security_policy(self, body, **kwargs): # noqa: E501 >>> thread = api.create_pod_security_policy(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ExtensionsV1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 def create_pod_security_policy_with_http_info(self, body, **kwargs): # noqa: E501 """create_pod_security_policy # noqa: E501 @@ -770,47 +910,65 @@ def create_pod_security_policy_with_http_info(self, body, **kwargs): # noqa: E5 >>> thread = api.create_pod_security_policy_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param ExtensionsV1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1PodSecurityPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1PodSecurityPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -853,10 +1011,9 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_daemon_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -867,18 +1024,20 @@ def delete_collection_namespaced_daemon_set(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_daemon_set # noqa: E501 @@ -889,10 +1048,9 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw >>> thread = api.delete_collection_namespaced_daemon_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -903,33 +1061,59 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -938,32 +1122,28 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -971,8 +1151,8 @@ def delete_collection_namespaced_daemon_set_with_http_info(self, namespace, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1005,10 +1185,9 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_deployment(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1019,18 +1198,20 @@ def delete_collection_namespaced_deployment(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_deployment # noqa: E501 @@ -1041,10 +1222,9 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw >>> thread = api.delete_collection_namespaced_deployment_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1055,33 +1235,59 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -1090,32 +1296,28 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1123,8 +1325,8 @@ def delete_collection_namespaced_deployment_with_http_info(self, namespace, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1157,10 +1359,9 @@ def delete_collection_namespaced_ingress(self, namespace, **kwargs): # noqa: E5 >>> thread = api.delete_collection_namespaced_ingress(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1171,18 +1372,20 @@ def delete_collection_namespaced_ingress(self, namespace, **kwargs): # noqa: E5 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_ingress # noqa: E501 @@ -1193,10 +1396,9 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg >>> thread = api.delete_collection_namespaced_ingress_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1207,33 +1409,59 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -1242,32 +1470,28 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1275,8 +1499,8 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1309,10 +1533,9 @@ def delete_collection_namespaced_network_policy(self, namespace, **kwargs): # n >>> thread = api.delete_collection_namespaced_network_policy(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1323,18 +1546,20 @@ def delete_collection_namespaced_network_policy(self, namespace, **kwargs): # n :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_network_policy # noqa: E501 @@ -1345,10 +1570,9 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, >>> thread = api.delete_collection_namespaced_network_policy_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1359,33 +1583,59 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -1394,32 +1644,28 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1427,8 +1673,8 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1461,10 +1707,9 @@ def delete_collection_namespaced_replica_set(self, namespace, **kwargs): # noqa >>> thread = api.delete_collection_namespaced_replica_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1475,18 +1720,20 @@ def delete_collection_namespaced_replica_set(self, namespace, **kwargs): # noqa :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_replica_set # noqa: E501 @@ -1497,10 +1744,9 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k >>> thread = api.delete_collection_namespaced_replica_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1511,33 +1757,59 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -1546,32 +1818,28 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1579,8 +1847,8 @@ def delete_collection_namespaced_replica_set_with_http_info(self, namespace, **k local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1613,9 +1881,8 @@ def delete_collection_pod_security_policy(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_pod_security_policy(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1626,18 +1893,20 @@ def delete_collection_pod_security_policy(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_pod_security_policy # noqa: E501 @@ -1648,9 +1917,8 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noq >>> thread = api.delete_collection_pod_security_policy_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1661,24 +1929,49 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noq :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_pod_security_policy" % key ) @@ -1690,32 +1983,28 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noq path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1723,8 +2012,8 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noq local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1757,7 +2046,7 @@ def delete_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_daemon_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1766,16 +2055,19 @@ def delete_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_daemon_set # noqa: E501 @@ -1786,7 +2078,7 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1795,35 +2087,57 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -1834,15 +2148,15 @@ def delete_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1885,7 +2199,7 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_deployment(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1894,16 +2208,19 @@ def delete_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_deployment # noqa: E501 @@ -1914,7 +2231,7 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_deployment_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1923,35 +2240,57 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -1962,15 +2301,15 @@ def delete_namespaced_deployment_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2013,7 +2352,7 @@ def delete_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_ingress(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -2022,16 +2361,19 @@ def delete_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_ingress # noqa: E501 @@ -2042,7 +2384,7 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): >>> thread = api.delete_namespaced_ingress_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -2051,35 +2393,57 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -2090,15 +2454,15 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2141,7 +2505,7 @@ def delete_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: >>> thread = api.delete_namespaced_network_policy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -2150,16 +2514,19 @@ def delete_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_network_policy # noqa: E501 @@ -2170,7 +2537,7 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa >>> thread = api.delete_namespaced_network_policy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -2179,35 +2546,57 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -2218,15 +2607,15 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2269,7 +2658,7 @@ def delete_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E50 >>> thread = api.delete_namespaced_replica_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -2278,16 +2667,19 @@ def delete_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E50 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_replica_set # noqa: E501 @@ -2298,7 +2690,7 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs >>> thread = api.delete_namespaced_replica_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -2307,35 +2699,57 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -2346,15 +2760,15 @@ def delete_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2397,7 +2811,7 @@ def delete_pod_security_policy(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_pod_security_policy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -2405,16 +2819,19 @@ def delete_pod_security_policy(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 """delete_pod_security_policy # noqa: E501 @@ -2425,7 +2842,7 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E5 >>> thread = api.delete_pod_security_policy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -2433,31 +2850,52 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E5 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") # noqa: E501 collection_formats = {} @@ -2466,15 +2904,15 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E5 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -2517,17 +2955,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -2538,23 +2979,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -2605,7 +3060,7 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_daemon_set_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2615,16 +3070,19 @@ def list_daemon_set_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1DaemonSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_daemon_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_daemon_set_for_all_namespaces # noqa: E501 @@ -2635,7 +3093,7 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_daemon_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2645,22 +3103,45 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1DaemonSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1DaemonSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_daemon_set_for_all_namespaces" % key ) @@ -2672,23 +3153,23 @@ def list_daemon_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2729,7 +3210,7 @@ def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_deployment_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2739,16 +3220,19 @@ def list_deployment_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_deployment_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_deployment_for_all_namespaces # noqa: E501 @@ -2759,7 +3243,7 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_deployment_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2769,22 +3253,45 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: ExtensionsV1beta1DeploymentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1DeploymentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_deployment_for_all_namespaces" % key ) @@ -2796,23 +3303,23 @@ def list_deployment_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2853,7 +3360,7 @@ def list_ingress_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_ingress_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2863,16 +3370,19 @@ def list_ingress_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1IngressList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_ingress_for_all_namespaces # noqa: E501 @@ -2883,7 +3393,7 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E50 >>> thread = api.list_ingress_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2893,22 +3403,45 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: ExtensionsV1beta1IngressList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1IngressList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_ingress_for_all_namespaces" % key ) @@ -2920,23 +3453,23 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E50 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2977,7 +3510,7 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_daemon_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2988,16 +3521,19 @@ def list_namespaced_daemon_set(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1DaemonSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_daemon_set_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_daemon_set # noqa: E501 @@ -3008,7 +3544,7 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_daemon_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3019,31 +3555,55 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1DaemonSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1DaemonSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -3052,23 +3612,23 @@ def list_namespaced_daemon_set_with_http_info(self, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3109,7 +3669,7 @@ def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_deployment(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3120,16 +3680,19 @@ def list_namespaced_deployment(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1DeploymentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_deployment_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_deployment # noqa: E501 @@ -3140,7 +3703,7 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_deployment_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3151,31 +3714,55 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: ExtensionsV1beta1DeploymentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1DeploymentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -3184,23 +3771,23 @@ def list_namespaced_deployment_with_http_info(self, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3241,7 +3828,7 @@ def list_namespaced_ingress(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_ingress(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3252,16 +3839,19 @@ def list_namespaced_ingress(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1IngressList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_ingress # noqa: E501 @@ -3272,7 +3862,7 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: >>> thread = api.list_namespaced_ingress_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3283,31 +3873,55 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: ExtensionsV1beta1IngressList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1IngressList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -3316,23 +3930,23 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3373,7 +3987,7 @@ def list_namespaced_network_policy(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_network_policy(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3384,16 +3998,19 @@ def list_namespaced_network_policy(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1NetworkPolicyList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_network_policy # noqa: E501 @@ -3404,7 +4021,7 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # >>> thread = api.list_namespaced_network_policy_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3415,31 +4032,55 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1NetworkPolicyList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1NetworkPolicyList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -3448,23 +4089,23 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3505,7 +4146,7 @@ def list_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_replica_set(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3516,16 +4157,19 @@ def list_namespaced_replica_set(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_replica_set_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_replica_set # noqa: E501 @@ -3536,7 +4180,7 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # no >>> thread = api.list_namespaced_replica_set_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -3547,31 +4191,55 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # no :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ReplicaSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ReplicaSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -3580,23 +4248,23 @@ def list_namespaced_replica_set_with_http_info(self, namespace, **kwargs): # no path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3637,7 +4305,7 @@ def list_network_policy_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_network_policy_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3647,16 +4315,19 @@ def list_network_policy_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1NetworkPolicyList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_network_policy_for_all_namespaces # noqa: E501 @@ -3667,7 +4338,7 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # no >>> thread = api.list_network_policy_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3677,22 +4348,45 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # no :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1NetworkPolicyList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1NetworkPolicyList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_network_policy_for_all_namespaces" % key ) @@ -3704,23 +4398,23 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # no path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3761,7 +4455,7 @@ def list_pod_security_policy(self, **kwargs): # noqa: E501 >>> thread = api.list_pod_security_policy(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -3771,16 +4465,19 @@ def list_pod_security_policy(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1PodSecurityPolicyList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 """list_pod_security_policy # noqa: E501 @@ -3791,7 +4488,7 @@ def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_pod_security_policy_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -3801,22 +4498,45 @@ def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: ExtensionsV1beta1PodSecurityPolicyList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1PodSecurityPolicyList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_security_policy" % key ) @@ -3828,23 +4548,23 @@ def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -3885,7 +4605,7 @@ def list_replica_set_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_replica_set_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3895,16 +4615,19 @@ def list_replica_set_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ReplicaSetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_replica_set_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_replica_set_for_all_namespaces # noqa: E501 @@ -3915,7 +4638,7 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_replica_set_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -3925,22 +4648,45 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ReplicaSetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ReplicaSetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_replica_set_for_all_namespaces" % key ) @@ -3952,23 +4698,23 @@ def list_replica_set_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -4009,24 +4755,27 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_daemon_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_daemon_set # noqa: E501 @@ -4037,47 +4786,68 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -4088,13 +4858,13 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4141,24 +4911,27 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_daemon_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_daemon_set_status # noqa: E501 @@ -4169,47 +4942,68 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_daemon_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} @@ -4220,13 +5014,13 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4273,24 +5067,27 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_deployment(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment # noqa: E501 @@ -4301,47 +5098,68 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: ExtensionsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -4352,13 +5170,13 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4405,24 +5223,27 @@ def patch_namespaced_deployment_scale(self, name, namespace, body, **kwargs): # >>> thread = api.patch_namespaced_deployment_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment_scale # noqa: E501 @@ -4433,47 +5254,68 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body >>> thread = api.patch_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: ExtensionsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -4484,13 +5326,13 @@ def patch_namespaced_deployment_scale_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4537,24 +5379,27 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_deployment_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_deployment_status # noqa: E501 @@ -4565,47 +5410,68 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: ExtensionsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -4616,13 +5482,13 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4669,24 +5535,27 @@ def patch_namespaced_ingress(self, name, namespace, body, **kwargs): # noqa: E5 >>> thread = api.patch_namespaced_ingress(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_ingress # noqa: E501 @@ -4697,47 +5566,68 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg >>> thread = api.patch_namespaced_ingress_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: ExtensionsV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -4748,13 +5638,13 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4801,24 +5691,27 @@ def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): # n >>> thread = api.patch_namespaced_ingress_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_ingress_status # noqa: E501 @@ -4829,47 +5722,68 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: ExtensionsV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_ingress_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") # noqa: E501 collection_formats = {} @@ -4880,13 +5794,13 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -4933,24 +5847,27 @@ def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): # n >>> thread = api.patch_namespaced_network_policy(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_network_policy # noqa: E501 @@ -4961,47 +5878,68 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1NetworkPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1NetworkPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -5012,13 +5950,13 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5065,24 +6003,27 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): # noqa >>> thread = api.patch_namespaced_replica_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replica_set # noqa: E501 @@ -5093,47 +6034,68 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k >>> thread = api.patch_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -5144,13 +6106,13 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5197,24 +6159,27 @@ def patch_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_replica_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replica_set_scale # noqa: E501 @@ -5225,47 +6190,68 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod >>> thread = api.patch_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: ExtensionsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} @@ -5276,13 +6262,13 @@ def patch_namespaced_replica_set_scale_with_http_info(self, name, namespace, bod path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5329,24 +6315,27 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_replica_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replica_set_status # noqa: E501 @@ -5357,47 +6346,68 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo >>> thread = api.patch_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replica_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} @@ -5408,13 +6418,13 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5461,24 +6471,27 @@ def patch_namespaced_replication_controller_dummy_scale(self, name, namespace, b >>> thread = api.patch_namespaced_replication_controller_dummy_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_replication_controller_dummy_scale # noqa: E501 @@ -5489,47 +6502,68 @@ def patch_namespaced_replication_controller_dummy_scale_with_http_info(self, nam >>> thread = api.patch_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: ExtensionsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_replication_controller_dummy_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_dummy_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_dummy_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_dummy_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_replication_controller_dummy_scale`") # noqa: E501 collection_formats = {} @@ -5540,13 +6574,13 @@ def patch_namespaced_replication_controller_dummy_scale_with_http_info(self, nam path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5593,23 +6627,26 @@ def patch_pod_security_policy(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_pod_security_policy(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_pod_security_policy # noqa: E501 @@ -5620,42 +6657,62 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): # noq >>> thread = api.patch_pod_security_policy_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: ExtensionsV1beta1PodSecurityPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1PodSecurityPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") # noqa: E501 collection_formats = {} @@ -5664,13 +6721,13 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): # noq path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -5717,22 +6774,25 @@ def read_namespaced_daemon_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_daemon_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_daemon_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_daemon_set # noqa: E501 @@ -5743,41 +6803,60 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_daemon_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -5788,11 +6867,11 @@ def read_namespaced_daemon_set_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -5833,20 +6912,23 @@ def read_namespaced_daemon_set_status(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_daemon_set_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_daemon_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_daemon_set_status # noqa: E501 @@ -5857,39 +6939,56 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_daemon_set_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_daemon_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} @@ -5900,7 +6999,7 @@ def read_namespaced_daemon_set_status_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -5941,22 +7040,25 @@ def read_namespaced_deployment(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_deployment(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment # noqa: E501 @@ -5967,41 +7069,60 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_deployment_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: ExtensionsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -6012,11 +7133,11 @@ def read_namespaced_deployment_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6057,20 +7178,23 @@ def read_namespaced_deployment_scale(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_deployment_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment_scale # noqa: E501 @@ -6081,39 +7205,56 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa >>> thread = api.read_namespaced_deployment_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -6124,7 +7265,7 @@ def read_namespaced_deployment_scale_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6165,20 +7306,23 @@ def read_namespaced_deployment_status(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_deployment_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_deployment_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_deployment_status # noqa: E501 @@ -6189,39 +7333,56 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_deployment_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -6232,7 +7393,7 @@ def read_namespaced_deployment_status_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6273,22 +7434,25 @@ def read_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_ingress(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_ingress # noqa: E501 @@ -6299,41 +7463,60 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.read_namespaced_ingress_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: ExtensionsV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -6344,11 +7527,11 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6389,20 +7572,23 @@ def read_namespaced_ingress_status(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.read_namespaced_ingress_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_ingress_status # noqa: E501 @@ -6413,39 +7599,56 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg >>> thread = api.read_namespaced_ingress_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_ingress_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") # noqa: E501 collection_formats = {} @@ -6456,7 +7659,7 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6497,22 +7700,25 @@ def read_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.read_namespaced_network_policy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_network_policy # noqa: E501 @@ -6523,41 +7729,60 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg >>> thread = api.read_namespaced_network_policy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1NetworkPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1NetworkPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -6568,11 +7793,11 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6613,22 +7838,25 @@ def read_namespaced_replica_set(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_replica_set(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replica_set_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replica_set # noqa: E501 @@ -6639,41 +7867,60 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_replica_set_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -6684,11 +7931,11 @@ def read_namespaced_replica_set_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -6729,20 +7976,23 @@ def read_namespaced_replica_set_scale(self, name, namespace, **kwargs): # noqa: >>> thread = api.read_namespaced_replica_set_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replica_set_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replica_set_scale # noqa: E501 @@ -6753,39 +8003,56 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw >>> thread = api.read_namespaced_replica_set_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} @@ -6796,7 +8063,7 @@ def read_namespaced_replica_set_scale_with_http_info(self, name, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6837,20 +8104,23 @@ def read_namespaced_replica_set_status(self, name, namespace, **kwargs): # noqa >>> thread = api.read_namespaced_replica_set_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replica_set_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replica_set_status # noqa: E501 @@ -6861,39 +8131,56 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k >>> thread = api.read_namespaced_replica_set_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replica_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} @@ -6904,7 +8191,7 @@ def read_namespaced_replica_set_status_with_http_info(self, name, namespace, **k path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -6945,20 +8232,23 @@ def read_namespaced_replication_controller_dummy_scale(self, name, namespace, ** >>> thread = api.read_namespaced_replication_controller_dummy_scale(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_replication_controller_dummy_scale # noqa: E501 @@ -6969,39 +8259,56 @@ def read_namespaced_replication_controller_dummy_scale_with_http_info(self, name >>> thread = api.read_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: ExtensionsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_replication_controller_dummy_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_dummy_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_dummy_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_replication_controller_dummy_scale`") # noqa: E501 collection_formats = {} @@ -7012,7 +8319,7 @@ def read_namespaced_replication_controller_dummy_scale_with_http_info(self, name path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -7053,21 +8360,24 @@ def read_pod_security_policy(self, name, **kwargs): # noqa: E501 >>> thread = api.read_pod_security_policy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 def read_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 """read_pod_security_policy # noqa: E501 @@ -7078,36 +8388,54 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_pod_security_policy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: ExtensionsV1beta1PodSecurityPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1PodSecurityPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") # noqa: E501 collection_formats = {} @@ -7116,11 +8444,11 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -7161,23 +8489,26 @@ def replace_namespaced_daemon_set(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_daemon_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_daemon_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_daemon_set # noqa: E501 @@ -7188,46 +8519,66 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_daemon_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set`") # noqa: E501 collection_formats = {} @@ -7238,11 +8589,11 @@ def replace_namespaced_daemon_set_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7285,23 +8636,26 @@ def replace_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_daemon_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1DaemonSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_daemon_set_status # noqa: E501 @@ -7312,46 +8666,66 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_daemon_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1DaemonSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1DaemonSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1DaemonSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_daemon_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_daemon_set_status`") # noqa: E501 collection_formats = {} @@ -7362,11 +8736,11 @@ def replace_namespaced_daemon_set_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7409,23 +8783,26 @@ def replace_namespaced_deployment(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_deployment(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment # noqa: E501 @@ -7436,46 +8813,66 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_deployment_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment`") # noqa: E501 collection_formats = {} @@ -7486,11 +8883,11 @@ def replace_namespaced_deployment_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7533,23 +8930,26 @@ def replace_namespaced_deployment_scale(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_deployment_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment_scale # noqa: E501 @@ -7560,46 +8960,66 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo >>> thread = api.replace_namespaced_deployment_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_scale`") # noqa: E501 collection_formats = {} @@ -7610,11 +9030,11 @@ def replace_namespaced_deployment_scale_with_http_info(self, name, namespace, bo path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7657,23 +9077,26 @@ def replace_namespaced_deployment_status(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_deployment_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_deployment_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_deployment_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_deployment_status # noqa: E501 @@ -7684,46 +9107,66 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_deployment_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Deployment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1Deployment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Deployment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_deployment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_deployment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_deployment_status`") # noqa: E501 collection_formats = {} @@ -7734,11 +9177,11 @@ def replace_namespaced_deployment_status_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7781,23 +9224,26 @@ def replace_namespaced_ingress(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.replace_namespaced_ingress(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_ingress # noqa: E501 @@ -7808,46 +9254,66 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa >>> thread = api.replace_namespaced_ingress_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -7858,11 +9324,11 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -7905,23 +9371,26 @@ def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): # >>> thread = api.replace_namespaced_ingress_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_ingress_status # noqa: E501 @@ -7932,46 +9401,66 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body >>> thread = api.replace_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_ingress_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") # noqa: E501 collection_formats = {} @@ -7982,11 +9471,11 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8029,23 +9518,26 @@ def replace_namespaced_network_policy(self, name, namespace, body, **kwargs): # >>> thread = api.replace_namespaced_network_policy(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_network_policy # noqa: E501 @@ -8056,46 +9548,66 @@ def replace_namespaced_network_policy_with_http_info(self, name, namespace, body >>> thread = api.replace_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1NetworkPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1NetworkPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -8106,11 +9618,11 @@ def replace_namespaced_network_policy_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8153,23 +9665,26 @@ def replace_namespaced_replica_set(self, name, namespace, body, **kwargs): # no >>> thread = api.replace_namespaced_replica_set(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replica_set_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replica_set # noqa: E501 @@ -8180,46 +9695,66 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * >>> thread = api.replace_namespaced_replica_set_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set`") # noqa: E501 collection_formats = {} @@ -8230,11 +9765,11 @@ def replace_namespaced_replica_set_with_http_info(self, name, namespace, body, * path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8277,23 +9812,26 @@ def replace_namespaced_replica_set_scale(self, name, namespace, body, **kwargs): >>> thread = api.replace_namespaced_replica_set_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replica_set_scale # noqa: E501 @@ -8304,46 +9842,66 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b >>> thread = api.replace_namespaced_replica_set_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_scale`") # noqa: E501 collection_formats = {} @@ -8354,11 +9912,11 @@ def replace_namespaced_replica_set_scale_with_http_info(self, name, namespace, b path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8401,23 +9959,26 @@ def replace_namespaced_replica_set_status(self, name, namespace, body, **kwargs) >>> thread = api.replace_namespaced_replica_set_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ReplicaSet If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replica_set_status # noqa: E501 @@ -8428,46 +9989,66 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, >>> thread = api.replace_namespaced_replica_set_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1ReplicaSet body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ReplicaSet + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ReplicaSet, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replica_set_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replica_set_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replica_set_status`") # noqa: E501 collection_formats = {} @@ -8478,11 +10059,11 @@ def replace_namespaced_replica_set_status_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8525,23 +10106,26 @@ def replace_namespaced_replication_controller_dummy_scale(self, name, namespace, >>> thread = api.replace_namespaced_replication_controller_dummy_scale(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1Scale If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_replication_controller_dummy_scale_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_replication_controller_dummy_scale # noqa: E501 @@ -8552,46 +10136,66 @@ def replace_namespaced_replication_controller_dummy_scale_with_http_info(self, n >>> thread = api.replace_namespaced_replication_controller_dummy_scale_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param ExtensionsV1beta1Scale body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1Scale + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1Scale, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_replication_controller_dummy_scale" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_dummy_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_dummy_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_replication_controller_dummy_scale`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_dummy_scale`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_replication_controller_dummy_scale`") # noqa: E501 collection_formats = {} @@ -8602,11 +10206,11 @@ def replace_namespaced_replication_controller_dummy_scale_with_http_info(self, n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -8649,22 +10253,25 @@ def replace_pod_security_policy(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_pod_security_policy(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param ExtensionsV1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: ExtensionsV1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_pod_security_policy # noqa: E501 @@ -8675,41 +10282,60 @@ def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): # n >>> thread = api.replace_pod_security_policy_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param ExtensionsV1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: ExtensionsV1beta1PodSecurityPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(ExtensionsV1beta1PodSecurityPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_pod_security_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_pod_security_policy`") # noqa: E501 collection_formats = {} @@ -8718,11 +10344,11 @@ def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): # n path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/logs_api.py b/kubernetes/client/api/logs_api.py index 0fa80baecc..24fe78a975 100644 --- a/kubernetes/client/api/logs_api.py +++ b/kubernetes/client/api/logs_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class LogsApi(object): @@ -40,18 +44,21 @@ def log_file_handler(self, logpath, **kwargs): # noqa: E501 >>> thread = api.log_file_handler(logpath, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str logpath: path to the log (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.log_file_handler_with_http_info(logpath, **kwargs) # noqa: E501 - else: - (data) = self.log_file_handler_with_http_info(logpath, **kwargs) # noqa: E501 - return data + return self.log_file_handler_with_http_info(logpath, **kwargs) # noqa: E501 def log_file_handler_with_http_info(self, logpath, **kwargs): # noqa: E501 """log_file_handler # noqa: E501 @@ -61,8 +68,17 @@ def log_file_handler_with_http_info(self, logpath, **kwargs): # noqa: E501 >>> thread = api.log_file_handler_with_http_info(logpath, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str logpath: path to the log (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: None If the method is called asynchronously, returns the request thread. @@ -70,24 +86,30 @@ def log_file_handler_with_http_info(self, logpath, **kwargs): # noqa: E501 local_var_params = locals() - all_params = ['logpath'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'logpath' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method log_file_handler" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'logpath' is set - if ('logpath' not in local_var_params or - local_var_params['logpath'] is None): - raise ValueError("Missing the required parameter `logpath` when calling `log_file_handler`") # noqa: E501 + if self.api_client.client_side_validation and ('logpath' not in local_var_params or # noqa: E501 + local_var_params['logpath'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `logpath` when calling `log_file_handler`") # noqa: E501 collection_formats = {} @@ -130,17 +152,20 @@ def log_file_list_handler(self, **kwargs): # noqa: E501 >>> thread = api.log_file_list_handler(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.log_file_list_handler_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.log_file_list_handler_with_http_info(**kwargs) # noqa: E501 - return data + return self.log_file_list_handler_with_http_info(**kwargs) # noqa: E501 def log_file_list_handler_with_http_info(self, **kwargs): # noqa: E501 """log_file_list_handler # noqa: E501 @@ -150,7 +175,16 @@ def log_file_list_handler_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.log_file_list_handler_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: None If the method is called asynchronously, returns the request thread. @@ -158,15 +192,20 @@ def log_file_list_handler_with_http_info(self, **kwargs): # noqa: E501 local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method log_file_list_handler" % key ) diff --git a/kubernetes/client/api/networking_api.py b/kubernetes/client/api/networking_api.py index 30db09ad45..0a2af7fc54 100644 --- a/kubernetes/client/api/networking_api.py +++ b/kubernetes/client/api/networking_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class NetworkingApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/networking_v1_api.py b/kubernetes/client/api/networking_v1_api.py index b2dd2ec519..f4e8858072 100644 --- a/kubernetes/client/api/networking_v1_api.py +++ b/kubernetes/client/api/networking_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class NetworkingV1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_network_policy(self, namespace, body, **kwargs): # noqa: >>> thread = api.create_namespaced_network_policy(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_network_policy_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_network_policy # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa >>> thread = api.create_namespaced_network_policy_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1NetworkPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1NetworkPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_network_policy_with_http_info(self, namespace, body, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_network_policy(self, namespace, **kwargs): # n >>> thread = api.delete_collection_namespaced_network_policy(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_network_policy(self, namespace, **kwargs): # n :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_network_policy # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, >>> thread = api.delete_collection_namespaced_network_policy_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_network_policy_with_http_info(self, namespace, local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: >>> thread = api.delete_namespaced_network_policy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_network_policy # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa >>> thread = api.delete_namespaced_network_policy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_network_policy_with_http_info(self, name, namespace, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_namespaced_network_policy(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_network_policy(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -536,16 +626,19 @@ def list_namespaced_network_policy(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1NetworkPolicyList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_network_policy_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_network_policy # noqa: E501 @@ -556,7 +649,7 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # >>> thread = api.list_namespaced_network_policy_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -567,31 +660,55 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1NetworkPolicyList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1NetworkPolicyList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -600,23 +717,23 @@ def list_namespaced_network_policy_with_http_info(self, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -657,7 +774,7 @@ def list_network_policy_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_network_policy_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -667,16 +784,19 @@ def list_network_policy_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1NetworkPolicyList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_network_policy_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_network_policy_for_all_namespaces # noqa: E501 @@ -687,7 +807,7 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # no >>> thread = api.list_network_policy_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -697,22 +817,45 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # no :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1NetworkPolicyList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1NetworkPolicyList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_network_policy_for_all_namespaces" % key ) @@ -724,23 +867,23 @@ def list_network_policy_for_all_namespaces_with_http_info(self, **kwargs): # no path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): # n >>> thread = api.patch_namespaced_network_policy(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_network_policy # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1NetworkPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1NetworkPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,22 +1080,25 @@ def read_namespaced_network_policy(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.read_namespaced_network_policy(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_network_policy_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_network_policy # noqa: E501 @@ -939,41 +1109,60 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg >>> thread = api.read_namespaced_network_policy_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1NetworkPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1NetworkPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -984,11 +1173,11 @@ def read_namespaced_network_policy_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1029,23 +1218,26 @@ def replace_namespaced_network_policy(self, name, namespace, body, **kwargs): # >>> thread = api.replace_namespaced_network_policy(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1NetworkPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_network_policy_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_network_policy_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_network_policy # noqa: E501 @@ -1056,46 +1248,66 @@ def replace_namespaced_network_policy_with_http_info(self, name, namespace, body >>> thread = api.replace_namespaced_network_policy_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1NetworkPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1NetworkPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1NetworkPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_network_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_network_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_network_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_network_policy`") # noqa: E501 collection_formats = {} @@ -1106,11 +1318,11 @@ def replace_namespaced_network_policy_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/networking_v1beta1_api.py b/kubernetes/client/api/networking_v1beta1_api.py index e47c5d907b..aa5bbb269d 100644 --- a/kubernetes/client/api/networking_v1beta1_api.py +++ b/kubernetes/client/api/networking_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class NetworkingV1beta1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_ingress(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_ingress(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param NetworkingV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: NetworkingV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_ingress_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_ingress # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): >>> thread = api.create_namespaced_ingress_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param NetworkingV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: NetworkingV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkingV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_ingress_with_http_info(self, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_ingress(self, namespace, **kwargs): # noqa: E5 >>> thread = api.delete_collection_namespaced_ingress(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_ingress(self, namespace, **kwargs): # noqa: E5 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_ingress # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg >>> thread = api.delete_collection_namespaced_ingress_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_ingress_with_http_info(self, namespace, **kwarg local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_ingress(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_ingress # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): >>> thread = api.delete_namespaced_ingress_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_ingress_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_ingress_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -535,16 +625,19 @@ def list_ingress_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: NetworkingV1beta1IngressList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_ingress_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_ingress_for_all_namespaces # noqa: E501 @@ -555,7 +648,7 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E50 >>> thread = api.list_ingress_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -565,22 +658,45 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: NetworkingV1beta1IngressList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkingV1beta1IngressList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_ingress_for_all_namespaces" % key ) @@ -592,23 +708,23 @@ def list_ingress_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E50 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -649,7 +765,7 @@ def list_namespaced_ingress(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_ingress(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -660,16 +776,19 @@ def list_namespaced_ingress(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: NetworkingV1beta1IngressList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_ingress_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_ingress # noqa: E501 @@ -680,7 +799,7 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: >>> thread = api.list_namespaced_ingress_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -691,31 +810,55 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: NetworkingV1beta1IngressList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkingV1beta1IngressList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -724,23 +867,23 @@ def list_namespaced_ingress_with_http_info(self, namespace, **kwargs): # noqa: path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_ingress(self, name, namespace, body, **kwargs): # noqa: E5 >>> thread = api.patch_namespaced_ingress(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: NetworkingV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_ingress # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg >>> thread = api.patch_namespaced_ingress_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: NetworkingV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkingV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,24 +1080,27 @@ def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): # n >>> thread = api.patch_namespaced_ingress_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: NetworkingV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_ingress_status # noqa: E501 @@ -941,47 +1111,68 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, >>> thread = api.patch_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: NetworkingV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkingV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_ingress_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_ingress_status`") # noqa: E501 collection_formats = {} @@ -992,13 +1183,13 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1045,22 +1236,25 @@ def read_namespaced_ingress(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_ingress(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: NetworkingV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_ingress_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_ingress # noqa: E501 @@ -1071,41 +1265,60 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # >>> thread = api.read_namespaced_ingress_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: NetworkingV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkingV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -1116,11 +1329,11 @@ def read_namespaced_ingress_with_http_info(self, name, namespace, **kwargs): # path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1161,20 +1374,23 @@ def read_namespaced_ingress_status(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.read_namespaced_ingress_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: NetworkingV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_ingress_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_ingress_status # noqa: E501 @@ -1185,39 +1401,56 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg >>> thread = api.read_namespaced_ingress_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: NetworkingV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkingV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_ingress_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_ingress_status`") # noqa: E501 collection_formats = {} @@ -1228,7 +1461,7 @@ def read_namespaced_ingress_status_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1269,23 +1502,26 @@ def replace_namespaced_ingress(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.replace_namespaced_ingress(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param NetworkingV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: NetworkingV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_ingress_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_ingress # noqa: E501 @@ -1296,46 +1532,66 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa >>> thread = api.replace_namespaced_ingress_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param NetworkingV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: NetworkingV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkingV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_ingress" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress`") # noqa: E501 collection_formats = {} @@ -1346,11 +1602,11 @@ def replace_namespaced_ingress_with_http_info(self, name, namespace, body, **kwa path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1393,23 +1649,26 @@ def replace_namespaced_ingress_status(self, name, namespace, body, **kwargs): # >>> thread = api.replace_namespaced_ingress_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param NetworkingV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: NetworkingV1beta1Ingress If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_ingress_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_ingress_status # noqa: E501 @@ -1420,46 +1679,66 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body >>> thread = api.replace_namespaced_ingress_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param NetworkingV1beta1Ingress body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: NetworkingV1beta1Ingress + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkingV1beta1Ingress, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_ingress_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_ingress_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_ingress_status`") # noqa: E501 collection_formats = {} @@ -1470,11 +1749,11 @@ def replace_namespaced_ingress_status_with_http_info(self, name, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/node_api.py b/kubernetes/client/api/node_api.py index ee6f03ebb5..996ffb93f4 100644 --- a/kubernetes/client/api/node_api.py +++ b/kubernetes/client/api/node_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class NodeApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/node_v1alpha1_api.py b/kubernetes/client/api/node_v1alpha1_api.py index 9ec70d1767..28525205ae 100644 --- a/kubernetes/client/api/node_v1alpha1_api.py +++ b/kubernetes/client/api/node_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class NodeV1alpha1Api(object): @@ -41,21 +45,24 @@ def create_runtime_class(self, body, **kwargs): # noqa: E501 >>> thread = api.create_runtime_class(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1RuntimeClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RuntimeClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 def create_runtime_class_with_http_info(self, body, **kwargs): # noqa: E501 """create_runtime_class # noqa: E501 @@ -66,47 +73,65 @@ def create_runtime_class_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_runtime_class_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1RuntimeClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1RuntimeClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RuntimeClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,9 +174,8 @@ def delete_collection_runtime_class(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_runtime_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -162,18 +186,20 @@ def delete_collection_runtime_class(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_runtime_class # noqa: E501 @@ -184,9 +210,8 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E50 >>> thread = api.delete_collection_runtime_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -197,24 +222,49 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E50 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_runtime_class" % key ) @@ -226,32 +276,28 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E50 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -259,8 +305,8 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E50 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -293,7 +339,7 @@ def delete_runtime_class(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_runtime_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -301,16 +347,19 @@ def delete_runtime_class(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 """delete_runtime_class # noqa: E501 @@ -321,7 +370,7 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_runtime_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -329,31 +378,52 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_runtime_class`") # noqa: E501 collection_formats = {} @@ -362,15 +432,15 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_runtime_class(self, **kwargs): # noqa: E501 >>> thread = api.list_runtime_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_runtime_class(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RuntimeClassList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 """list_runtime_class # noqa: E501 @@ -531,7 +621,7 @@ def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_runtime_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RuntimeClassList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RuntimeClassList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_runtime_class" % key ) @@ -568,23 +681,23 @@ def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_runtime_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_runtime_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RuntimeClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 def patch_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_runtime_class # noqa: E501 @@ -652,42 +768,62 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E50 >>> thread = api.patch_runtime_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1RuntimeClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RuntimeClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_runtime_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_runtime_class`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,21 +885,24 @@ def read_runtime_class(self, name, **kwargs): # noqa: E501 >>> thread = api.read_runtime_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RuntimeClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 def read_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 """read_runtime_class # noqa: E501 @@ -774,36 +913,54 @@ def read_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_runtime_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1alpha1RuntimeClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RuntimeClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_runtime_class`") # noqa: E501 collection_formats = {} @@ -812,11 +969,11 @@ def read_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -857,22 +1014,25 @@ def replace_runtime_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_runtime_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param V1alpha1RuntimeClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RuntimeClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 def replace_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_runtime_class # noqa: E501 @@ -883,41 +1043,60 @@ def replace_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E >>> thread = api.replace_runtime_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param V1alpha1RuntimeClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1RuntimeClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RuntimeClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_runtime_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_runtime_class`") # noqa: E501 collection_formats = {} @@ -926,11 +1105,11 @@ def replace_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/node_v1beta1_api.py b/kubernetes/client/api/node_v1beta1_api.py index 52b95d46ef..f00667ca85 100644 --- a/kubernetes/client/api/node_v1beta1_api.py +++ b/kubernetes/client/api/node_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class NodeV1beta1Api(object): @@ -41,21 +45,24 @@ def create_runtime_class(self, body, **kwargs): # noqa: E501 >>> thread = api.create_runtime_class(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1RuntimeClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RuntimeClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_runtime_class_with_http_info(body, **kwargs) # noqa: E501 def create_runtime_class_with_http_info(self, body, **kwargs): # noqa: E501 """create_runtime_class # noqa: E501 @@ -66,47 +73,65 @@ def create_runtime_class_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_runtime_class_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1RuntimeClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1RuntimeClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RuntimeClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_runtime_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,9 +174,8 @@ def delete_collection_runtime_class(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_runtime_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -162,18 +186,20 @@ def delete_collection_runtime_class(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_runtime_class_with_http_info(**kwargs) # noqa: E501 def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_runtime_class # noqa: E501 @@ -184,9 +210,8 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E50 >>> thread = api.delete_collection_runtime_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -197,24 +222,49 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E50 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_runtime_class" % key ) @@ -226,32 +276,28 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E50 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -259,8 +305,8 @@ def delete_collection_runtime_class_with_http_info(self, **kwargs): # noqa: E50 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -293,7 +339,7 @@ def delete_runtime_class(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_runtime_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -301,16 +347,19 @@ def delete_runtime_class(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_runtime_class_with_http_info(name, **kwargs) # noqa: E501 def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 """delete_runtime_class # noqa: E501 @@ -321,7 +370,7 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_runtime_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -329,31 +378,52 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_runtime_class`") # noqa: E501 collection_formats = {} @@ -362,15 +432,15 @@ def delete_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_runtime_class(self, **kwargs): # noqa: E501 >>> thread = api.list_runtime_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_runtime_class(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RuntimeClassList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_runtime_class_with_http_info(**kwargs) # noqa: E501 def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 """list_runtime_class # noqa: E501 @@ -531,7 +621,7 @@ def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_runtime_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RuntimeClassList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RuntimeClassList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_runtime_class" % key ) @@ -568,23 +681,23 @@ def list_runtime_class_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_runtime_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_runtime_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RuntimeClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 def patch_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_runtime_class # noqa: E501 @@ -652,42 +768,62 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E50 >>> thread = api.patch_runtime_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1RuntimeClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RuntimeClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_runtime_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_runtime_class`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,21 +885,24 @@ def read_runtime_class(self, name, **kwargs): # noqa: E501 >>> thread = api.read_runtime_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RuntimeClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_runtime_class_with_http_info(name, **kwargs) # noqa: E501 def read_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 """read_runtime_class # noqa: E501 @@ -774,36 +913,54 @@ def read_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_runtime_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1RuntimeClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RuntimeClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_runtime_class`") # noqa: E501 collection_formats = {} @@ -812,11 +969,11 @@ def read_runtime_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -857,22 +1014,25 @@ def replace_runtime_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_runtime_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param V1beta1RuntimeClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RuntimeClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_runtime_class_with_http_info(name, body, **kwargs) # noqa: E501 def replace_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_runtime_class # noqa: E501 @@ -883,41 +1043,60 @@ def replace_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E >>> thread = api.replace_runtime_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RuntimeClass (required) :param V1beta1RuntimeClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1RuntimeClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RuntimeClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_runtime_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_runtime_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_runtime_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_runtime_class`") # noqa: E501 collection_formats = {} @@ -926,11 +1105,11 @@ def replace_runtime_class_with_http_info(self, name, body, **kwargs): # noqa: E path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/policy_api.py b/kubernetes/client/api/policy_api.py index 31ed4b638e..8d22a1f223 100644 --- a/kubernetes/client/api/policy_api.py +++ b/kubernetes/client/api/policy_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class PolicyApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/policy_v1beta1_api.py b/kubernetes/client/api/policy_v1beta1_api.py index 3fa8eaf65d..6a947fdd41 100644 --- a/kubernetes/client/api/policy_v1beta1_api.py +++ b/kubernetes/client/api/policy_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class PolicyV1beta1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_pod_disruption_budget(self, namespace, body, **kwargs): # >>> thread = api.create_namespaced_pod_disruption_budget(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1PodDisruptionBudget body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_pod_disruption_budget_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_pod_disruption_budget_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_pod_disruption_budget_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_pod_disruption_budget_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_pod_disruption_budget # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_pod_disruption_budget_with_http_info(self, namespace, body >>> thread = api.create_namespaced_pod_disruption_budget_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1PodDisruptionBudget body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1PodDisruptionBudget + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PodDisruptionBudget, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_disruption_budget" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_pod_disruption_budget_with_http_info(self, namespace, body path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,21 +183,24 @@ def create_pod_security_policy(self, body, **kwargs): # noqa: E501 >>> thread = api.create_pod_security_policy(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param PolicyV1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: PolicyV1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_pod_security_policy_with_http_info(body, **kwargs) # noqa: E501 def create_pod_security_policy_with_http_info(self, body, **kwargs): # noqa: E501 """create_pod_security_policy # noqa: E501 @@ -182,47 +211,65 @@ def create_pod_security_policy_with_http_info(self, body, **kwargs): # noqa: E5 >>> thread = api.create_pod_security_policy_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param PolicyV1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: PolicyV1beta1PodSecurityPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(PolicyV1beta1PodSecurityPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_pod_security_policy`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -265,10 +312,9 @@ def delete_collection_namespaced_pod_disruption_budget(self, namespace, **kwargs >>> thread = api.delete_collection_namespaced_pod_disruption_budget(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -279,18 +325,20 @@ def delete_collection_namespaced_pod_disruption_budget(self, namespace, **kwargs :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_pod_disruption_budget # noqa: E501 @@ -301,10 +349,9 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name >>> thread = api.delete_collection_namespaced_pod_disruption_budget_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -315,33 +362,59 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_pod_disruption_budget" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} @@ -350,32 +423,28 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -383,8 +452,8 @@ def delete_collection_namespaced_pod_disruption_budget_with_http_info(self, name local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -417,9 +486,8 @@ def delete_collection_pod_security_policy(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_pod_security_policy(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -430,18 +498,20 @@ def delete_collection_pod_security_policy(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_pod_security_policy_with_http_info(**kwargs) # noqa: E501 def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_pod_security_policy # noqa: E501 @@ -452,9 +522,8 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noq >>> thread = api.delete_collection_pod_security_policy_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -465,24 +534,49 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noq :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_pod_security_policy" % key ) @@ -494,32 +588,28 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noq path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -527,8 +617,8 @@ def delete_collection_pod_security_policy_with_http_info(self, **kwargs): # noq local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -561,7 +651,7 @@ def delete_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): # >>> thread = api.delete_namespaced_pod_disruption_budget(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -570,16 +660,19 @@ def delete_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): # :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_pod_disruption_budget # noqa: E501 @@ -590,7 +683,7 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace >>> thread = api.delete_namespaced_pod_disruption_budget_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -599,35 +692,57 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_pod_disruption_budget" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} @@ -638,15 +753,15 @@ def delete_namespaced_pod_disruption_budget_with_http_info(self, name, namespace path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -689,7 +804,7 @@ def delete_pod_security_policy(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_pod_security_policy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -697,16 +812,19 @@ def delete_pod_security_policy(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 """delete_pod_security_policy # noqa: E501 @@ -717,7 +835,7 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E5 >>> thread = api.delete_pod_security_policy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -725,31 +843,52 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E5 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_pod_security_policy`") # noqa: E501 collection_formats = {} @@ -758,15 +897,15 @@ def delete_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E5 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -809,17 +948,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -830,23 +972,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -897,7 +1053,7 @@ def list_namespaced_pod_disruption_budget(self, namespace, **kwargs): # noqa: E >>> thread = api.list_namespaced_pod_disruption_budget(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -908,16 +1064,19 @@ def list_namespaced_pod_disruption_budget(self, namespace, **kwargs): # noqa: E :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PodDisruptionBudgetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_pod_disruption_budget_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_pod_disruption_budget # noqa: E501 @@ -928,7 +1087,7 @@ def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwar >>> thread = api.list_namespaced_pod_disruption_budget_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -939,31 +1098,55 @@ def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwar :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1PodDisruptionBudgetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PodDisruptionBudgetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_pod_disruption_budget" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} @@ -972,23 +1155,23 @@ def list_namespaced_pod_disruption_budget_with_http_info(self, namespace, **kwar path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1029,7 +1212,7 @@ def list_pod_disruption_budget_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_pod_disruption_budget_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1039,16 +1222,19 @@ def list_pod_disruption_budget_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PodDisruptionBudgetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_pod_disruption_budget_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_pod_disruption_budget_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_pod_disruption_budget_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_pod_disruption_budget_for_all_namespaces # noqa: E501 @@ -1059,7 +1245,7 @@ def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs) >>> thread = api.list_pod_disruption_budget_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1069,22 +1255,45 @@ def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs) :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1PodDisruptionBudgetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PodDisruptionBudgetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_disruption_budget_for_all_namespaces" % key ) @@ -1096,23 +1305,23 @@ def list_pod_disruption_budget_for_all_namespaces_with_http_info(self, **kwargs) path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1153,7 +1362,7 @@ def list_pod_security_policy(self, **kwargs): # noqa: E501 >>> thread = api.list_pod_security_policy(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1163,16 +1372,19 @@ def list_pod_security_policy(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: PolicyV1beta1PodSecurityPolicyList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_pod_security_policy_with_http_info(**kwargs) # noqa: E501 def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 """list_pod_security_policy # noqa: E501 @@ -1183,7 +1395,7 @@ def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_pod_security_policy_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1193,22 +1405,45 @@ def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: PolicyV1beta1PodSecurityPolicyList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(PolicyV1beta1PodSecurityPolicyList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_security_policy" % key ) @@ -1220,23 +1455,23 @@ def list_pod_security_policy_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1277,24 +1512,27 @@ def patch_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs >>> thread = api.patch_namespaced_pod_disruption_budget(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_pod_disruption_budget # noqa: E501 @@ -1305,47 +1543,68 @@ def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, >>> thread = api.patch_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1PodDisruptionBudget + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PodDisruptionBudget, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_disruption_budget" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} @@ -1356,13 +1615,13 @@ def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1409,24 +1668,27 @@ def patch_namespaced_pod_disruption_budget_status(self, name, namespace, body, * >>> thread = api.patch_namespaced_pod_disruption_budget_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_pod_disruption_budget_status # noqa: E501 @@ -1437,47 +1699,68 @@ def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, nam >>> thread = api.patch_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1PodDisruptionBudget + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PodDisruptionBudget, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_disruption_budget_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_disruption_budget_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_disruption_budget_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_disruption_budget_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_disruption_budget_status`") # noqa: E501 collection_formats = {} @@ -1488,13 +1771,13 @@ def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, nam path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1541,23 +1824,26 @@ def patch_pod_security_policy(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_pod_security_policy(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: PolicyV1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_pod_security_policy # noqa: E501 @@ -1568,42 +1854,62 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): # noq >>> thread = api.patch_pod_security_policy_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: PolicyV1beta1PodSecurityPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(PolicyV1beta1PodSecurityPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_pod_security_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_pod_security_policy`") # noqa: E501 collection_formats = {} @@ -1612,13 +1918,13 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): # noq path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1665,22 +1971,25 @@ def read_namespaced_pod_disruption_budget(self, name, namespace, **kwargs): # n >>> thread = api.read_namespaced_pod_disruption_budget(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_pod_disruption_budget_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_pod_disruption_budget # noqa: E501 @@ -1691,41 +2000,60 @@ def read_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, >>> thread = api.read_namespaced_pod_disruption_budget_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1PodDisruptionBudget + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PodDisruptionBudget, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_disruption_budget" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} @@ -1736,11 +2064,11 @@ def read_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1781,20 +2109,23 @@ def read_namespaced_pod_disruption_budget_status(self, name, namespace, **kwargs >>> thread = api.read_namespaced_pod_disruption_budget_status(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_pod_disruption_budget_status # noqa: E501 @@ -1805,39 +2136,56 @@ def read_namespaced_pod_disruption_budget_status_with_http_info(self, name, name >>> thread = api.read_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1PodDisruptionBudget + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PodDisruptionBudget, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_disruption_budget_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_disruption_budget_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_disruption_budget_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_disruption_budget_status`") # noqa: E501 collection_formats = {} @@ -1848,7 +2196,7 @@ def read_namespaced_pod_disruption_budget_status_with_http_info(self, name, name path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1889,21 +2237,24 @@ def read_pod_security_policy(self, name, **kwargs): # noqa: E501 >>> thread = api.read_pod_security_policy(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: PolicyV1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_pod_security_policy_with_http_info(name, **kwargs) # noqa: E501 def read_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 """read_pod_security_policy # noqa: E501 @@ -1914,36 +2265,54 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_pod_security_policy_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: PolicyV1beta1PodSecurityPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(PolicyV1beta1PodSecurityPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_pod_security_policy`") # noqa: E501 collection_formats = {} @@ -1952,11 +2321,11 @@ def read_pod_security_policy_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1997,23 +2366,26 @@ def replace_namespaced_pod_disruption_budget(self, name, namespace, body, **kwar >>> thread = api.replace_namespaced_pod_disruption_budget(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1PodDisruptionBudget body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_pod_disruption_budget # noqa: E501 @@ -2024,46 +2396,66 @@ def replace_namespaced_pod_disruption_budget_with_http_info(self, name, namespac >>> thread = api.replace_namespaced_pod_disruption_budget_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1PodDisruptionBudget body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1PodDisruptionBudget + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PodDisruptionBudget, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_disruption_budget" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_disruption_budget`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_disruption_budget`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_disruption_budget`") # noqa: E501 collection_formats = {} @@ -2074,11 +2466,11 @@ def replace_namespaced_pod_disruption_budget_with_http_info(self, name, namespac path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2121,23 +2513,26 @@ def replace_namespaced_pod_disruption_budget_status(self, name, namespace, body, >>> thread = api.replace_namespaced_pod_disruption_budget_status(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1PodDisruptionBudget body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_pod_disruption_budget_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_pod_disruption_budget_status # noqa: E501 @@ -2148,46 +2543,66 @@ def replace_namespaced_pod_disruption_budget_status_with_http_info(self, name, n >>> thread = api.replace_namespaced_pod_disruption_budget_status_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1PodDisruptionBudget body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1PodDisruptionBudget + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PodDisruptionBudget, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_disruption_budget_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_disruption_budget_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_disruption_budget_status`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_disruption_budget_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_disruption_budget_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_disruption_budget_status`") # noqa: E501 collection_formats = {} @@ -2198,11 +2613,11 @@ def replace_namespaced_pod_disruption_budget_status_with_http_info(self, name, n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2245,22 +2660,25 @@ def replace_pod_security_policy(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_pod_security_policy(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param PolicyV1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: PolicyV1beta1PodSecurityPolicy If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_pod_security_policy_with_http_info(name, body, **kwargs) # noqa: E501 def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_pod_security_policy # noqa: E501 @@ -2271,41 +2689,60 @@ def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): # n >>> thread = api.replace_pod_security_policy_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodSecurityPolicy (required) :param PolicyV1beta1PodSecurityPolicy body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: PolicyV1beta1PodSecurityPolicy + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(PolicyV1beta1PodSecurityPolicy, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_pod_security_policy" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_pod_security_policy`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_pod_security_policy`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_pod_security_policy`") # noqa: E501 collection_formats = {} @@ -2314,11 +2751,11 @@ def replace_pod_security_policy_with_http_info(self, name, body, **kwargs): # n path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/rbac_authorization_api.py b/kubernetes/client/api/rbac_authorization_api.py index e3df9f2f8d..3018bee99a 100644 --- a/kubernetes/client/api/rbac_authorization_api.py +++ b/kubernetes/client/api/rbac_authorization_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class RbacAuthorizationApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/rbac_authorization_v1_api.py b/kubernetes/client/api/rbac_authorization_v1_api.py index 148a0d3202..005e3bb2a9 100644 --- a/kubernetes/client/api/rbac_authorization_v1_api.py +++ b/kubernetes/client/api/rbac_authorization_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class RbacAuthorizationV1Api(object): @@ -41,21 +45,24 @@ def create_cluster_role(self, body, **kwargs): # noqa: E501 >>> thread = api.create_cluster_role(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 def create_cluster_role_with_http_info(self, body, **kwargs): # noqa: E501 """create_cluster_role # noqa: E501 @@ -66,47 +73,65 @@ def create_cluster_role_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_cluster_role_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,21 +174,24 @@ def create_cluster_role_binding(self, body, **kwargs): # noqa: E501 >>> thread = api.create_cluster_role_binding(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 def create_cluster_role_binding_with_http_info(self, body, **kwargs): # noqa: E501 """create_cluster_role_binding # noqa: E501 @@ -174,47 +202,65 @@ def create_cluster_role_binding_with_http_info(self, body, **kwargs): # noqa: E >>> thread = api.create_cluster_role_binding_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -257,22 +303,25 @@ def create_namespaced_role(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_role(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_role # noqa: E501 @@ -283,41 +332,60 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # n >>> thread = api.create_namespaced_role_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_role`") # noqa: E501 collection_formats = {} @@ -326,11 +394,11 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -373,22 +441,25 @@ def create_namespaced_role_binding(self, namespace, body, **kwargs): # noqa: E5 >>> thread = api.create_namespaced_role_binding(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_role_binding # noqa: E501 @@ -399,41 +470,60 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg >>> thread = api.create_namespaced_role_binding_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -442,11 +532,11 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -489,7 +579,7 @@ def delete_cluster_role(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_cluster_role(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -497,16 +587,19 @@ def delete_cluster_role(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 """delete_cluster_role # noqa: E501 @@ -517,7 +610,7 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_cluster_role_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -525,31 +618,52 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_cluster_role`") # noqa: E501 collection_formats = {} @@ -558,15 +672,15 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -609,7 +723,7 @@ def delete_cluster_role_binding(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_cluster_role_binding(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -617,16 +731,19 @@ def delete_cluster_role_binding(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 """delete_cluster_role_binding # noqa: E501 @@ -637,7 +754,7 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E >>> thread = api.delete_cluster_role_binding_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -645,31 +762,52 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -678,15 +816,15 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -729,9 +867,8 @@ def delete_collection_cluster_role(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_cluster_role(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -742,18 +879,20 @@ def delete_collection_cluster_role(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_cluster_role # noqa: E501 @@ -764,9 +903,8 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_cluster_role_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -777,24 +915,49 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role" % key ) @@ -806,32 +969,28 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -839,8 +998,8 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -873,9 +1032,8 @@ def delete_collection_cluster_role_binding(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_cluster_role_binding(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -886,18 +1044,20 @@ def delete_collection_cluster_role_binding(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_cluster_role_binding # noqa: E501 @@ -908,9 +1068,8 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no >>> thread = api.delete_collection_cluster_role_binding_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -921,24 +1080,49 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role_binding" % key ) @@ -950,32 +1134,28 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -983,8 +1163,8 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1017,10 +1197,9 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_collection_namespaced_role(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1031,18 +1210,20 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_role # noqa: E501 @@ -1053,10 +1234,9 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): >>> thread = api.delete_collection_namespaced_role_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1067,33 +1247,59 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") # noqa: E501 collection_formats = {} @@ -1102,32 +1308,28 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1135,8 +1337,8 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1169,10 +1371,9 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): # noq >>> thread = api.delete_collection_namespaced_role_binding(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1183,18 +1384,20 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): # noq :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_role_binding # noqa: E501 @@ -1205,10 +1408,9 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** >>> thread = api.delete_collection_namespaced_role_binding_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1219,33 +1421,59 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -1254,32 +1482,28 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1287,8 +1511,8 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1321,7 +1545,7 @@ def delete_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_role(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1330,16 +1554,19 @@ def delete_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_role # noqa: E501 @@ -1350,7 +1577,7 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # n >>> thread = api.delete_namespaced_role_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1359,35 +1586,57 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # n :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") # noqa: E501 collection_formats = {} @@ -1398,15 +1647,15 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1449,7 +1698,7 @@ def delete_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.delete_namespaced_role_binding(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1458,16 +1707,19 @@ def delete_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E5 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_role_binding # noqa: E501 @@ -1478,7 +1730,7 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg >>> thread = api.delete_namespaced_role_binding_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1487,35 +1739,57 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -1526,15 +1800,15 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1577,17 +1851,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -1598,23 +1875,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -1665,7 +1956,7 @@ def list_cluster_role(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1675,16 +1966,19 @@ def list_cluster_role(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRoleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 """list_cluster_role # noqa: E501 @@ -1695,7 +1989,7 @@ def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1705,22 +1999,45 @@ def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ClusterRoleList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRoleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role" % key ) @@ -1732,23 +2049,23 @@ def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1789,7 +2106,7 @@ def list_cluster_role_binding(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role_binding(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1799,16 +2116,19 @@ def list_cluster_role_binding(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRoleBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 """list_cluster_role_binding # noqa: E501 @@ -1819,7 +2139,7 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role_binding_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1829,22 +2149,45 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1ClusterRoleBindingList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRoleBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role_binding" % key ) @@ -1856,23 +2199,23 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1913,7 +2256,7 @@ def list_namespaced_role(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_role(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1924,16 +2267,19 @@ def list_namespaced_role(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1RoleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_role # noqa: E501 @@ -1944,7 +2290,7 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E50 >>> thread = api.list_namespaced_role_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1955,31 +2301,55 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1RoleList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1RoleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") # noqa: E501 collection_formats = {} @@ -1988,23 +2358,23 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E50 path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2045,7 +2415,7 @@ def list_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_role_binding(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2056,16 +2426,19 @@ def list_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1RoleBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_role_binding # noqa: E501 @@ -2076,7 +2449,7 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # n >>> thread = api.list_namespaced_role_binding_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2087,31 +2460,55 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # n :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1RoleBindingList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1RoleBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -2120,23 +2517,23 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2177,7 +2574,7 @@ def list_role_binding_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_role_binding_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2187,16 +2584,19 @@ def list_role_binding_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1RoleBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_role_binding_for_all_namespaces # noqa: E501 @@ -2207,7 +2607,7 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa >>> thread = api.list_role_binding_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2217,22 +2617,45 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1RoleBindingList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1RoleBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_role_binding_for_all_namespaces" % key ) @@ -2244,23 +2667,23 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2301,7 +2724,7 @@ def list_role_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_role_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2311,16 +2734,19 @@ def list_role_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1RoleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_role_for_all_namespaces # noqa: E501 @@ -2331,7 +2757,7 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_role_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2341,22 +2767,45 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1RoleList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1RoleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_role_for_all_namespaces" % key ) @@ -2368,23 +2817,23 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2425,23 +2874,26 @@ def patch_cluster_role(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_cluster_role(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_cluster_role # noqa: E501 @@ -2452,42 +2904,62 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_cluster_role_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_role`") # noqa: E501 collection_formats = {} @@ -2496,13 +2968,13 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2549,23 +3021,26 @@ def patch_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_cluster_role_binding(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_cluster_role_binding # noqa: E501 @@ -2576,42 +3051,62 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # no >>> thread = api.patch_cluster_role_binding_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -2620,13 +3115,13 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # no path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2673,24 +3168,27 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespaced_role(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_role # noqa: E501 @@ -2701,47 +3199,68 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_role_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") # noqa: E501 collection_formats = {} @@ -2752,13 +3271,13 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2805,24 +3324,27 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): # noq >>> thread = api.patch_namespaced_role_binding(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_role_binding # noqa: E501 @@ -2833,47 +3355,68 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** >>> thread = api.patch_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -2884,13 +3427,13 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2937,19 +3480,22 @@ def read_cluster_role(self, name, **kwargs): # noqa: E501 >>> thread = api.read_cluster_role(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 """read_cluster_role # noqa: E501 @@ -2960,34 +3506,50 @@ def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_cluster_role_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_cluster_role`") # noqa: E501 collection_formats = {} @@ -2996,7 +3558,7 @@ def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3037,19 +3599,22 @@ def read_cluster_role_binding(self, name, **kwargs): # noqa: E501 >>> thread = api.read_cluster_role_binding(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 """read_cluster_role_binding # noqa: E501 @@ -3060,34 +3625,50 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E50 >>> thread = api.read_cluster_role_binding_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -3096,7 +3677,7 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3137,20 +3718,23 @@ def read_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_role(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_role # noqa: E501 @@ -3161,39 +3745,56 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noq >>> thread = api.read_namespaced_role_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") # noqa: E501 collection_formats = {} @@ -3204,7 +3805,7 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3245,20 +3846,23 @@ def read_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_role_binding(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_role_binding # noqa: E501 @@ -3269,39 +3873,56 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) >>> thread = api.read_namespaced_role_binding_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -3312,7 +3933,7 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3353,22 +3974,25 @@ def replace_cluster_role(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_cluster_role(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param V1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_cluster_role # noqa: E501 @@ -3379,41 +4003,60 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E5 >>> thread = api.replace_cluster_role_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param V1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_role`") # noqa: E501 collection_formats = {} @@ -3422,11 +4065,11 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E5 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3469,22 +4112,25 @@ def replace_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_cluster_role_binding(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param V1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_cluster_role_binding # noqa: E501 @@ -3495,41 +4141,60 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # >>> thread = api.replace_cluster_role_binding_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param V1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -3538,11 +4203,11 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3585,23 +4250,26 @@ def replace_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E50 >>> thread = api.replace_namespaced_role(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_role # noqa: E501 @@ -3612,46 +4280,66 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs >>> thread = api.replace_namespaced_role_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") # noqa: E501 collection_formats = {} @@ -3662,11 +4350,11 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3709,23 +4397,26 @@ def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): # n >>> thread = api.replace_namespaced_role_binding(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_role_binding # noqa: E501 @@ -3736,46 +4427,66 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, >>> thread = api.replace_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -3786,11 +4497,11 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/rbac_authorization_v1alpha1_api.py b/kubernetes/client/api/rbac_authorization_v1alpha1_api.py index f085d3c9ac..477b9a9ba9 100644 --- a/kubernetes/client/api/rbac_authorization_v1alpha1_api.py +++ b/kubernetes/client/api/rbac_authorization_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class RbacAuthorizationV1alpha1Api(object): @@ -41,21 +45,24 @@ def create_cluster_role(self, body, **kwargs): # noqa: E501 >>> thread = api.create_cluster_role(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 def create_cluster_role_with_http_info(self, body, **kwargs): # noqa: E501 """create_cluster_role # noqa: E501 @@ -66,47 +73,65 @@ def create_cluster_role_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_cluster_role_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,21 +174,24 @@ def create_cluster_role_binding(self, body, **kwargs): # noqa: E501 >>> thread = api.create_cluster_role_binding(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 def create_cluster_role_binding_with_http_info(self, body, **kwargs): # noqa: E501 """create_cluster_role_binding # noqa: E501 @@ -174,47 +202,65 @@ def create_cluster_role_binding_with_http_info(self, body, **kwargs): # noqa: E >>> thread = api.create_cluster_role_binding_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -257,22 +303,25 @@ def create_namespaced_role(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_role(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_role # noqa: E501 @@ -283,41 +332,60 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # n >>> thread = api.create_namespaced_role_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_role`") # noqa: E501 collection_formats = {} @@ -326,11 +394,11 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -373,22 +441,25 @@ def create_namespaced_role_binding(self, namespace, body, **kwargs): # noqa: E5 >>> thread = api.create_namespaced_role_binding(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_role_binding # noqa: E501 @@ -399,41 +470,60 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg >>> thread = api.create_namespaced_role_binding_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -442,11 +532,11 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -489,7 +579,7 @@ def delete_cluster_role(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_cluster_role(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -497,16 +587,19 @@ def delete_cluster_role(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 """delete_cluster_role # noqa: E501 @@ -517,7 +610,7 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_cluster_role_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -525,31 +618,52 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_cluster_role`") # noqa: E501 collection_formats = {} @@ -558,15 +672,15 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -609,7 +723,7 @@ def delete_cluster_role_binding(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_cluster_role_binding(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -617,16 +731,19 @@ def delete_cluster_role_binding(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 """delete_cluster_role_binding # noqa: E501 @@ -637,7 +754,7 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E >>> thread = api.delete_cluster_role_binding_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -645,31 +762,52 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -678,15 +816,15 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -729,9 +867,8 @@ def delete_collection_cluster_role(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_cluster_role(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -742,18 +879,20 @@ def delete_collection_cluster_role(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_cluster_role # noqa: E501 @@ -764,9 +903,8 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_cluster_role_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -777,24 +915,49 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role" % key ) @@ -806,32 +969,28 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -839,8 +998,8 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -873,9 +1032,8 @@ def delete_collection_cluster_role_binding(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_cluster_role_binding(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -886,18 +1044,20 @@ def delete_collection_cluster_role_binding(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_cluster_role_binding # noqa: E501 @@ -908,9 +1068,8 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no >>> thread = api.delete_collection_cluster_role_binding_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -921,24 +1080,49 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role_binding" % key ) @@ -950,32 +1134,28 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -983,8 +1163,8 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1017,10 +1197,9 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_collection_namespaced_role(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1031,18 +1210,20 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_role # noqa: E501 @@ -1053,10 +1234,9 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): >>> thread = api.delete_collection_namespaced_role_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1067,33 +1247,59 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") # noqa: E501 collection_formats = {} @@ -1102,32 +1308,28 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1135,8 +1337,8 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1169,10 +1371,9 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): # noq >>> thread = api.delete_collection_namespaced_role_binding(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1183,18 +1384,20 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): # noq :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_role_binding # noqa: E501 @@ -1205,10 +1408,9 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** >>> thread = api.delete_collection_namespaced_role_binding_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1219,33 +1421,59 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -1254,32 +1482,28 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1287,8 +1511,8 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1321,7 +1545,7 @@ def delete_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_role(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1330,16 +1554,19 @@ def delete_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_role # noqa: E501 @@ -1350,7 +1577,7 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # n >>> thread = api.delete_namespaced_role_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1359,35 +1586,57 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # n :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") # noqa: E501 collection_formats = {} @@ -1398,15 +1647,15 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1449,7 +1698,7 @@ def delete_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.delete_namespaced_role_binding(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1458,16 +1707,19 @@ def delete_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E5 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_role_binding # noqa: E501 @@ -1478,7 +1730,7 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg >>> thread = api.delete_namespaced_role_binding_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1487,35 +1739,57 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -1526,15 +1800,15 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1577,17 +1851,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -1598,23 +1875,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -1665,7 +1956,7 @@ def list_cluster_role(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1675,16 +1966,19 @@ def list_cluster_role(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRoleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 """list_cluster_role # noqa: E501 @@ -1695,7 +1989,7 @@ def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1705,22 +1999,45 @@ def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1ClusterRoleList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRoleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role" % key ) @@ -1732,23 +2049,23 @@ def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1789,7 +2106,7 @@ def list_cluster_role_binding(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role_binding(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1799,16 +2116,19 @@ def list_cluster_role_binding(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRoleBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 """list_cluster_role_binding # noqa: E501 @@ -1819,7 +2139,7 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role_binding_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1829,22 +2149,45 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1ClusterRoleBindingList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRoleBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role_binding" % key ) @@ -1856,23 +2199,23 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1913,7 +2256,7 @@ def list_namespaced_role(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_role(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1924,16 +2267,19 @@ def list_namespaced_role(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RoleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_role # noqa: E501 @@ -1944,7 +2290,7 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E50 >>> thread = api.list_namespaced_role_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1955,31 +2301,55 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RoleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") # noqa: E501 collection_formats = {} @@ -1988,23 +2358,23 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E50 path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2045,7 +2415,7 @@ def list_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_role_binding(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2056,16 +2426,19 @@ def list_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RoleBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_role_binding # noqa: E501 @@ -2076,7 +2449,7 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # n >>> thread = api.list_namespaced_role_binding_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2087,31 +2460,55 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # n :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleBindingList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RoleBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -2120,23 +2517,23 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2177,7 +2574,7 @@ def list_role_binding_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_role_binding_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2187,16 +2584,19 @@ def list_role_binding_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RoleBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_role_binding_for_all_namespaces # noqa: E501 @@ -2207,7 +2607,7 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa >>> thread = api.list_role_binding_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2217,22 +2617,45 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleBindingList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RoleBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_role_binding_for_all_namespaces" % key ) @@ -2244,23 +2667,23 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2301,7 +2724,7 @@ def list_role_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_role_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2311,16 +2734,19 @@ def list_role_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RoleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_role_for_all_namespaces # noqa: E501 @@ -2331,7 +2757,7 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_role_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2341,22 +2767,45 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1RoleList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RoleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_role_for_all_namespaces" % key ) @@ -2368,23 +2817,23 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2425,23 +2874,26 @@ def patch_cluster_role(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_cluster_role(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_cluster_role # noqa: E501 @@ -2452,42 +2904,62 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_cluster_role_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_role`") # noqa: E501 collection_formats = {} @@ -2496,13 +2968,13 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2549,23 +3021,26 @@ def patch_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_cluster_role_binding(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_cluster_role_binding # noqa: E501 @@ -2576,42 +3051,62 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # no >>> thread = api.patch_cluster_role_binding_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -2620,13 +3115,13 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # no path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2673,24 +3168,27 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespaced_role(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_role # noqa: E501 @@ -2701,47 +3199,68 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_role_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") # noqa: E501 collection_formats = {} @@ -2752,13 +3271,13 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2805,24 +3324,27 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): # noq >>> thread = api.patch_namespaced_role_binding(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_role_binding # noqa: E501 @@ -2833,47 +3355,68 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** >>> thread = api.patch_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -2884,13 +3427,13 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2937,19 +3480,22 @@ def read_cluster_role(self, name, **kwargs): # noqa: E501 >>> thread = api.read_cluster_role(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 """read_cluster_role # noqa: E501 @@ -2960,34 +3506,50 @@ def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_cluster_role_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_cluster_role`") # noqa: E501 collection_formats = {} @@ -2996,7 +3558,7 @@ def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3037,19 +3599,22 @@ def read_cluster_role_binding(self, name, **kwargs): # noqa: E501 >>> thread = api.read_cluster_role_binding(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 """read_cluster_role_binding # noqa: E501 @@ -3060,34 +3625,50 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E50 >>> thread = api.read_cluster_role_binding_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -3096,7 +3677,7 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3137,20 +3718,23 @@ def read_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_role(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_role # noqa: E501 @@ -3161,39 +3745,56 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noq >>> thread = api.read_namespaced_role_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") # noqa: E501 collection_formats = {} @@ -3204,7 +3805,7 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3245,20 +3846,23 @@ def read_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_role_binding(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_role_binding # noqa: E501 @@ -3269,39 +3873,56 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) >>> thread = api.read_namespaced_role_binding_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1alpha1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -3312,7 +3933,7 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3353,22 +3974,25 @@ def replace_cluster_role(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_cluster_role(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param V1alpha1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_cluster_role # noqa: E501 @@ -3379,41 +4003,60 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E5 >>> thread = api.replace_cluster_role_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param V1alpha1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_role`") # noqa: E501 collection_formats = {} @@ -3422,11 +4065,11 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E5 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3469,22 +4112,25 @@ def replace_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_cluster_role_binding(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param V1alpha1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_cluster_role_binding # noqa: E501 @@ -3495,41 +4141,60 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # >>> thread = api.replace_cluster_role_binding_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param V1alpha1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -3538,11 +4203,11 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3585,23 +4250,26 @@ def replace_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E50 >>> thread = api.replace_namespaced_role(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_role # noqa: E501 @@ -3612,46 +4280,66 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs >>> thread = api.replace_namespaced_role_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") # noqa: E501 collection_formats = {} @@ -3662,11 +4350,11 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3709,23 +4397,26 @@ def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): # n >>> thread = api.replace_namespaced_role_binding(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_role_binding # noqa: E501 @@ -3736,46 +4427,66 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, >>> thread = api.replace_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -3786,11 +4497,11 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/rbac_authorization_v1beta1_api.py b/kubernetes/client/api/rbac_authorization_v1beta1_api.py index ff99ab1977..11126c6ea6 100644 --- a/kubernetes/client/api/rbac_authorization_v1beta1_api.py +++ b/kubernetes/client/api/rbac_authorization_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class RbacAuthorizationV1beta1Api(object): @@ -41,21 +45,24 @@ def create_cluster_role(self, body, **kwargs): # noqa: E501 >>> thread = api.create_cluster_role(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_cluster_role_with_http_info(body, **kwargs) # noqa: E501 def create_cluster_role_with_http_info(self, body, **kwargs): # noqa: E501 """create_cluster_role # noqa: E501 @@ -66,47 +73,65 @@ def create_cluster_role_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_cluster_role_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_cluster_role`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,21 +174,24 @@ def create_cluster_role_binding(self, body, **kwargs): # noqa: E501 >>> thread = api.create_cluster_role_binding(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_cluster_role_binding_with_http_info(body, **kwargs) # noqa: E501 def create_cluster_role_binding_with_http_info(self, body, **kwargs): # noqa: E501 """create_cluster_role_binding # noqa: E501 @@ -174,47 +202,65 @@ def create_cluster_role_binding_with_http_info(self, body, **kwargs): # noqa: E >>> thread = api.create_cluster_role_binding_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_cluster_role_binding`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -257,22 +303,25 @@ def create_namespaced_role(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_role(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_role_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_role # noqa: E501 @@ -283,41 +332,60 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # n >>> thread = api.create_namespaced_role_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_role`") # noqa: E501 collection_formats = {} @@ -326,11 +394,11 @@ def create_namespaced_role_with_http_info(self, namespace, body, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -373,22 +441,25 @@ def create_namespaced_role_binding(self, namespace, body, **kwargs): # noqa: E5 >>> thread = api.create_namespaced_role_binding(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_role_binding_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_role_binding # noqa: E501 @@ -399,41 +470,60 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg >>> thread = api.create_namespaced_role_binding_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -442,11 +532,11 @@ def create_namespaced_role_binding_with_http_info(self, namespace, body, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -489,7 +579,7 @@ def delete_cluster_role(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_cluster_role(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -497,16 +587,19 @@ def delete_cluster_role(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_cluster_role_with_http_info(name, **kwargs) # noqa: E501 def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 """delete_cluster_role # noqa: E501 @@ -517,7 +610,7 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_cluster_role_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -525,31 +618,52 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_cluster_role`") # noqa: E501 collection_formats = {} @@ -558,15 +672,15 @@ def delete_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -609,7 +723,7 @@ def delete_cluster_role_binding(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_cluster_role_binding(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -617,16 +731,19 @@ def delete_cluster_role_binding(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 """delete_cluster_role_binding # noqa: E501 @@ -637,7 +754,7 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E >>> thread = api.delete_cluster_role_binding_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -645,31 +762,52 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -678,15 +816,15 @@ def delete_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -729,9 +867,8 @@ def delete_collection_cluster_role(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_cluster_role(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -742,18 +879,20 @@ def delete_collection_cluster_role(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_cluster_role_with_http_info(**kwargs) # noqa: E501 def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_cluster_role # noqa: E501 @@ -764,9 +903,8 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_cluster_role_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -777,24 +915,49 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role" % key ) @@ -806,32 +969,28 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -839,8 +998,8 @@ def delete_collection_cluster_role_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -873,9 +1032,8 @@ def delete_collection_cluster_role_binding(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_cluster_role_binding(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -886,18 +1044,20 @@ def delete_collection_cluster_role_binding(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_cluster_role_binding # noqa: E501 @@ -908,9 +1068,8 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no >>> thread = api.delete_collection_cluster_role_binding_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -921,24 +1080,49 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_cluster_role_binding" % key ) @@ -950,32 +1134,28 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -983,8 +1163,8 @@ def delete_collection_cluster_role_binding_with_http_info(self, **kwargs): # no local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1017,10 +1197,9 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_collection_namespaced_role(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1031,18 +1210,20 @@ def delete_collection_namespaced_role(self, namespace, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_role # noqa: E501 @@ -1053,10 +1234,9 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): >>> thread = api.delete_collection_namespaced_role_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1067,33 +1247,59 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role`") # noqa: E501 collection_formats = {} @@ -1102,32 +1308,28 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1135,8 +1337,8 @@ def delete_collection_namespaced_role_with_http_info(self, namespace, **kwargs): local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1169,10 +1371,9 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): # noq >>> thread = api.delete_collection_namespaced_role_binding(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1183,18 +1384,20 @@ def delete_collection_namespaced_role_binding(self, namespace, **kwargs): # noq :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_role_binding # noqa: E501 @@ -1205,10 +1408,9 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** >>> thread = api.delete_collection_namespaced_role_binding_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -1219,33 +1421,59 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -1254,32 +1482,28 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1287,8 +1511,8 @@ def delete_collection_namespaced_role_binding_with_http_info(self, namespace, ** local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1321,7 +1545,7 @@ def delete_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_role(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1330,16 +1554,19 @@ def delete_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_role # noqa: E501 @@ -1350,7 +1577,7 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # n >>> thread = api.delete_namespaced_role_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1359,35 +1586,57 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # n :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role`") # noqa: E501 collection_formats = {} @@ -1398,15 +1647,15 @@ def delete_namespaced_role_with_http_info(self, name, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1449,7 +1698,7 @@ def delete_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E5 >>> thread = api.delete_namespaced_role_binding(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1458,16 +1707,19 @@ def delete_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E5 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_role_binding # noqa: E501 @@ -1478,7 +1730,7 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg >>> thread = api.delete_namespaced_role_binding_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -1487,35 +1739,57 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -1526,15 +1800,15 @@ def delete_namespaced_role_binding_with_http_info(self, name, namespace, **kwarg path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1577,17 +1851,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -1598,23 +1875,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -1665,7 +1956,7 @@ def list_cluster_role(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1675,16 +1966,19 @@ def list_cluster_role(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRoleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_cluster_role_with_http_info(**kwargs) # noqa: E501 def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 """list_cluster_role # noqa: E501 @@ -1695,7 +1989,7 @@ def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1705,22 +1999,45 @@ def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ClusterRoleList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRoleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role" % key ) @@ -1732,23 +2049,23 @@ def list_cluster_role_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1789,7 +2106,7 @@ def list_cluster_role_binding(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role_binding(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1799,16 +2116,19 @@ def list_cluster_role_binding(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRoleBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_cluster_role_binding_with_http_info(**kwargs) # noqa: E501 def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 """list_cluster_role_binding # noqa: E501 @@ -1819,7 +2139,7 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_cluster_role_binding_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1829,22 +2149,45 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1ClusterRoleBindingList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRoleBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_cluster_role_binding" % key ) @@ -1856,23 +2199,23 @@ def list_cluster_role_binding_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1913,7 +2256,7 @@ def list_namespaced_role(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_role(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1924,16 +2267,19 @@ def list_namespaced_role(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RoleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_role_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_role # noqa: E501 @@ -1944,7 +2290,7 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E50 >>> thread = api.list_namespaced_role_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -1955,31 +2301,55 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E50 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RoleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_role`") # noqa: E501 collection_formats = {} @@ -1988,23 +2358,23 @@ def list_namespaced_role_with_http_info(self, namespace, **kwargs): # noqa: E50 path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2045,7 +2415,7 @@ def list_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_role_binding(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2056,16 +2426,19 @@ def list_namespaced_role_binding(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RoleBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_role_binding_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_role_binding # noqa: E501 @@ -2076,7 +2449,7 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # n >>> thread = api.list_namespaced_role_binding_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -2087,31 +2460,55 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # n :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleBindingList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RoleBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -2120,23 +2517,23 @@ def list_namespaced_role_binding_with_http_info(self, namespace, **kwargs): # n path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2177,7 +2574,7 @@ def list_role_binding_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_role_binding_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2187,16 +2584,19 @@ def list_role_binding_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RoleBindingList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_role_binding_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_role_binding_for_all_namespaces # noqa: E501 @@ -2207,7 +2607,7 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa >>> thread = api.list_role_binding_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2217,22 +2617,45 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleBindingList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RoleBindingList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_role_binding_for_all_namespaces" % key ) @@ -2244,23 +2667,23 @@ def list_role_binding_for_all_namespaces_with_http_info(self, **kwargs): # noqa path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2301,7 +2724,7 @@ def list_role_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_role_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2311,16 +2734,19 @@ def list_role_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RoleList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_role_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_role_for_all_namespaces # noqa: E501 @@ -2331,7 +2757,7 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_role_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -2341,22 +2767,45 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1RoleList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RoleList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_role_for_all_namespaces" % key ) @@ -2368,23 +2817,23 @@ def list_role_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2425,23 +2874,26 @@ def patch_cluster_role(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_cluster_role(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_cluster_role # noqa: E501 @@ -2452,42 +2904,62 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_cluster_role_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_role`") # noqa: E501 collection_formats = {} @@ -2496,13 +2968,13 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2549,23 +3021,26 @@ def patch_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_cluster_role_binding(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_cluster_role_binding # noqa: E501 @@ -2576,42 +3051,62 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # no >>> thread = api.patch_cluster_role_binding_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -2620,13 +3115,13 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): # no path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2673,24 +3168,27 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E501 >>> thread = api.patch_namespaced_role(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_role # noqa: E501 @@ -2701,47 +3199,68 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): >>> thread = api.patch_namespaced_role_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_role`") # noqa: E501 collection_formats = {} @@ -2752,13 +3271,13 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2805,24 +3324,27 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): # noq >>> thread = api.patch_namespaced_role_binding(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_role_binding # noqa: E501 @@ -2833,47 +3355,68 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** >>> thread = api.patch_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -2884,13 +3427,13 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2937,19 +3480,22 @@ def read_cluster_role(self, name, **kwargs): # noqa: E501 >>> thread = api.read_cluster_role(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_cluster_role_with_http_info(name, **kwargs) # noqa: E501 def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 """read_cluster_role # noqa: E501 @@ -2960,34 +3506,50 @@ def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_cluster_role_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_cluster_role`") # noqa: E501 collection_formats = {} @@ -2996,7 +3558,7 @@ def read_cluster_role_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3037,19 +3599,22 @@ def read_cluster_role_binding(self, name, **kwargs): # noqa: E501 >>> thread = api.read_cluster_role_binding(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_cluster_role_binding_with_http_info(name, **kwargs) # noqa: E501 def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E501 """read_cluster_role_binding # noqa: E501 @@ -3060,34 +3625,50 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E50 >>> thread = api.read_cluster_role_binding_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -3096,7 +3677,7 @@ def read_cluster_role_binding_with_http_info(self, name, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3137,20 +3718,23 @@ def read_namespaced_role(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_role(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_role_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_role # noqa: E501 @@ -3161,39 +3745,56 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noq >>> thread = api.read_namespaced_role_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_role`") # noqa: E501 collection_formats = {} @@ -3204,7 +3805,7 @@ def read_namespaced_role_with_http_info(self, name, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3245,20 +3846,23 @@ def read_namespaced_role_binding(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_role_binding(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_role_binding_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_role_binding # noqa: E501 @@ -3269,39 +3873,56 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) >>> thread = api.read_namespaced_role_binding_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1beta1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -3312,7 +3933,7 @@ def read_namespaced_role_binding_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -3353,22 +3974,25 @@ def replace_cluster_role(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_cluster_role(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param V1beta1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRole If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_cluster_role_with_http_info(name, body, **kwargs) # noqa: E501 def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_cluster_role # noqa: E501 @@ -3379,41 +4003,60 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E5 >>> thread = api.replace_cluster_role_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRole (required) :param V1beta1ClusterRole body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ClusterRole + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRole, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_role`") # noqa: E501 collection_formats = {} @@ -3422,11 +4065,11 @@ def replace_cluster_role_with_http_info(self, name, body, **kwargs): # noqa: E5 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3469,22 +4112,25 @@ def replace_cluster_role_binding(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_cluster_role_binding(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param V1beta1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1ClusterRoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_cluster_role_binding_with_http_info(name, body, **kwargs) # noqa: E501 def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_cluster_role_binding # noqa: E501 @@ -3495,41 +4141,60 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # >>> thread = api.replace_cluster_role_binding_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the ClusterRoleBinding (required) :param V1beta1ClusterRoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1ClusterRoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1ClusterRoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_cluster_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_cluster_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_cluster_role_binding`") # noqa: E501 collection_formats = {} @@ -3538,11 +4203,11 @@ def replace_cluster_role_binding_with_http_info(self, name, body, **kwargs): # path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3585,23 +4250,26 @@ def replace_namespaced_role(self, name, namespace, body, **kwargs): # noqa: E50 >>> thread = api.replace_namespaced_role(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1Role If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_role_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_role # noqa: E501 @@ -3612,46 +4280,66 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs >>> thread = api.replace_namespaced_role_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1Role body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1Role + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1Role, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_role`") # noqa: E501 collection_formats = {} @@ -3662,11 +4350,11 @@ def replace_namespaced_role_with_http_info(self, name, namespace, body, **kwargs path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3709,23 +4397,26 @@ def replace_namespaced_role_binding(self, name, namespace, body, **kwargs): # n >>> thread = api.replace_namespaced_role_binding(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1RoleBinding If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_role_binding_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_role_binding # noqa: E501 @@ -3736,46 +4427,66 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, >>> thread = api.replace_namespaced_role_binding_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1beta1RoleBinding body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1RoleBinding + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1RoleBinding, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_role_binding" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_role_binding`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_role_binding`") # noqa: E501 collection_formats = {} @@ -3786,11 +4497,11 @@ def replace_namespaced_role_binding_with_http_info(self, name, namespace, body, path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/scheduling_api.py b/kubernetes/client/api/scheduling_api.py index 01e0f5e148..58667e9048 100644 --- a/kubernetes/client/api/scheduling_api.py +++ b/kubernetes/client/api/scheduling_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class SchedulingApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/scheduling_v1_api.py b/kubernetes/client/api/scheduling_v1_api.py index 116f6dc0c0..2ef9998663 100644 --- a/kubernetes/client/api/scheduling_v1_api.py +++ b/kubernetes/client/api/scheduling_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class SchedulingV1Api(object): @@ -41,21 +45,24 @@ def create_priority_class(self, body, **kwargs): # noqa: E501 >>> thread = api.create_priority_class(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 def create_priority_class_with_http_info(self, body, **kwargs): # noqa: E501 """create_priority_class # noqa: E501 @@ -66,47 +73,65 @@ def create_priority_class_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_priority_class_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_priority_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,9 +174,8 @@ def delete_collection_priority_class(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_priority_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -162,18 +186,20 @@ def delete_collection_priority_class(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_priority_class # noqa: E501 @@ -184,9 +210,8 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 >>> thread = api.delete_collection_priority_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -197,24 +222,49 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_priority_class" % key ) @@ -226,32 +276,28 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -259,8 +305,8 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -293,7 +339,7 @@ def delete_priority_class(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_priority_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -301,16 +347,19 @@ def delete_priority_class(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 """delete_priority_class # noqa: E501 @@ -321,7 +370,7 @@ def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_priority_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -329,31 +378,52 @@ def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_priority_class`") # noqa: E501 collection_formats = {} @@ -362,15 +432,15 @@ def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_priority_class(self, **kwargs): # noqa: E501 >>> thread = api.list_priority_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_priority_class(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PriorityClassList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_priority_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_priority_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_priority_class_with_http_info(**kwargs) # noqa: E501 def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 """list_priority_class # noqa: E501 @@ -531,7 +621,7 @@ def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_priority_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1PriorityClassList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PriorityClassList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_priority_class" % key ) @@ -568,23 +681,23 @@ def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_priority_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_priority_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_priority_class # noqa: E501 @@ -652,42 +768,62 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E5 >>> thread = api.patch_priority_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_priority_class`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E5 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,21 +885,24 @@ def read_priority_class(self, name, **kwargs): # noqa: E501 >>> thread = api.read_priority_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 """read_priority_class # noqa: E501 @@ -774,36 +913,54 @@ def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_priority_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_priority_class`") # noqa: E501 collection_formats = {} @@ -812,11 +969,11 @@ def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -857,22 +1014,25 @@ def replace_priority_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_priority_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param V1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_priority_class # noqa: E501 @@ -883,41 +1043,60 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: >>> thread = api.replace_priority_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param V1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_priority_class`") # noqa: E501 collection_formats = {} @@ -926,11 +1105,11 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/scheduling_v1alpha1_api.py b/kubernetes/client/api/scheduling_v1alpha1_api.py index 315f5b2b3f..a59890d982 100644 --- a/kubernetes/client/api/scheduling_v1alpha1_api.py +++ b/kubernetes/client/api/scheduling_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class SchedulingV1alpha1Api(object): @@ -41,21 +45,24 @@ def create_priority_class(self, body, **kwargs): # noqa: E501 >>> thread = api.create_priority_class(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 def create_priority_class_with_http_info(self, body, **kwargs): # noqa: E501 """create_priority_class # noqa: E501 @@ -66,47 +73,65 @@ def create_priority_class_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_priority_class_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_priority_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,9 +174,8 @@ def delete_collection_priority_class(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_priority_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -162,18 +186,20 @@ def delete_collection_priority_class(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_priority_class # noqa: E501 @@ -184,9 +210,8 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 >>> thread = api.delete_collection_priority_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -197,24 +222,49 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_priority_class" % key ) @@ -226,32 +276,28 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -259,8 +305,8 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -293,7 +339,7 @@ def delete_priority_class(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_priority_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -301,16 +347,19 @@ def delete_priority_class(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 """delete_priority_class # noqa: E501 @@ -321,7 +370,7 @@ def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_priority_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -329,31 +378,52 @@ def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_priority_class`") # noqa: E501 collection_formats = {} @@ -362,15 +432,15 @@ def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_priority_class(self, **kwargs): # noqa: E501 >>> thread = api.list_priority_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_priority_class(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PriorityClassList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_priority_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_priority_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_priority_class_with_http_info(**kwargs) # noqa: E501 def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 """list_priority_class # noqa: E501 @@ -531,7 +621,7 @@ def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_priority_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1PriorityClassList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PriorityClassList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_priority_class" % key ) @@ -568,23 +681,23 @@ def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_priority_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_priority_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_priority_class # noqa: E501 @@ -652,42 +768,62 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E5 >>> thread = api.patch_priority_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_priority_class`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E5 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,21 +885,24 @@ def read_priority_class(self, name, **kwargs): # noqa: E501 >>> thread = api.read_priority_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 """read_priority_class # noqa: E501 @@ -774,36 +913,54 @@ def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_priority_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1alpha1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_priority_class`") # noqa: E501 collection_formats = {} @@ -812,11 +969,11 @@ def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -857,22 +1014,25 @@ def replace_priority_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_priority_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param V1alpha1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_priority_class # noqa: E501 @@ -883,41 +1043,60 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: >>> thread = api.replace_priority_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param V1alpha1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_priority_class`") # noqa: E501 collection_formats = {} @@ -926,11 +1105,11 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/scheduling_v1beta1_api.py b/kubernetes/client/api/scheduling_v1beta1_api.py index 0f1c4bd508..de29c1bc3d 100644 --- a/kubernetes/client/api/scheduling_v1beta1_api.py +++ b/kubernetes/client/api/scheduling_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class SchedulingV1beta1Api(object): @@ -41,21 +45,24 @@ def create_priority_class(self, body, **kwargs): # noqa: E501 >>> thread = api.create_priority_class(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_priority_class_with_http_info(body, **kwargs) # noqa: E501 def create_priority_class_with_http_info(self, body, **kwargs): # noqa: E501 """create_priority_class # noqa: E501 @@ -66,47 +73,65 @@ def create_priority_class_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_priority_class_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_priority_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,9 +174,8 @@ def delete_collection_priority_class(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_priority_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -162,18 +186,20 @@ def delete_collection_priority_class(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_priority_class_with_http_info(**kwargs) # noqa: E501 def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_priority_class # noqa: E501 @@ -184,9 +210,8 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 >>> thread = api.delete_collection_priority_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -197,24 +222,49 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_priority_class" % key ) @@ -226,32 +276,28 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -259,8 +305,8 @@ def delete_collection_priority_class_with_http_info(self, **kwargs): # noqa: E5 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -293,7 +339,7 @@ def delete_priority_class(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_priority_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -301,16 +347,19 @@ def delete_priority_class(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_priority_class_with_http_info(name, **kwargs) # noqa: E501 def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 """delete_priority_class # noqa: E501 @@ -321,7 +370,7 @@ def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_priority_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -329,31 +378,52 @@ def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_priority_class`") # noqa: E501 collection_formats = {} @@ -362,15 +432,15 @@ def delete_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_priority_class(self, **kwargs): # noqa: E501 >>> thread = api.list_priority_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_priority_class(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PriorityClassList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_priority_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_priority_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_priority_class_with_http_info(**kwargs) # noqa: E501 def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 """list_priority_class # noqa: E501 @@ -531,7 +621,7 @@ def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_priority_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1PriorityClassList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PriorityClassList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_priority_class" % key ) @@ -568,23 +681,23 @@ def list_priority_class_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_priority_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_priority_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_priority_class # noqa: E501 @@ -652,42 +768,62 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E5 >>> thread = api.patch_priority_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_priority_class`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E5 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,21 +885,24 @@ def read_priority_class(self, name, **kwargs): # noqa: E501 >>> thread = api.read_priority_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_priority_class_with_http_info(name, **kwargs) # noqa: E501 def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 """read_priority_class # noqa: E501 @@ -774,36 +913,54 @@ def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_priority_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_priority_class`") # noqa: E501 collection_formats = {} @@ -812,11 +969,11 @@ def read_priority_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -857,22 +1014,25 @@ def replace_priority_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_priority_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param V1beta1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1PriorityClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_priority_class_with_http_info(name, body, **kwargs) # noqa: E501 def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_priority_class # noqa: E501 @@ -883,41 +1043,60 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: >>> thread = api.replace_priority_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PriorityClass (required) :param V1beta1PriorityClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1PriorityClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1PriorityClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_priority_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_priority_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_priority_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_priority_class`") # noqa: E501 collection_formats = {} @@ -926,11 +1105,11 @@ def replace_priority_class_with_http_info(self, name, body, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/settings_api.py b/kubernetes/client/api/settings_api.py index fea15f825f..aaca2b5f72 100644 --- a/kubernetes/client/api/settings_api.py +++ b/kubernetes/client/api/settings_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class SettingsApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/settings_v1alpha1_api.py b/kubernetes/client/api/settings_v1alpha1_api.py index dc6e98846e..ef1fa8800a 100644 --- a/kubernetes/client/api/settings_v1alpha1_api.py +++ b/kubernetes/client/api/settings_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class SettingsV1alpha1Api(object): @@ -41,22 +45,25 @@ def create_namespaced_pod_preset(self, namespace, body, **kwargs): # noqa: E501 >>> thread = api.create_namespaced_pod_preset(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1PodPreset body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) # noqa: E501 - return data + return self.create_namespaced_pod_preset_with_http_info(namespace, body, **kwargs) # noqa: E501 def create_namespaced_pod_preset_with_http_info(self, namespace, body, **kwargs): # noqa: E501 """create_namespaced_pod_preset # noqa: E501 @@ -67,41 +74,60 @@ def create_namespaced_pod_preset_with_http_info(self, namespace, body, **kwargs) >>> thread = api.create_namespaced_pod_preset_with_http_info(namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1PodPreset body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1PodPreset + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodPreset, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_namespaced_pod_preset" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_pod_preset`") # noqa: E501 collection_formats = {} @@ -110,11 +136,11 @@ def create_namespaced_pod_preset_with_http_info(self, namespace, body, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -157,10 +183,9 @@ def delete_collection_namespaced_pod_preset(self, namespace, **kwargs): # noqa: >>> thread = api.delete_collection_namespaced_pod_preset(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -171,18 +196,20 @@ def delete_collection_namespaced_pod_preset(self, namespace, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.delete_collection_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): # noqa: E501 """delete_collection_namespaced_pod_preset # noqa: E501 @@ -193,10 +220,9 @@ def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kw >>> thread = api.delete_collection_namespaced_pod_preset_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -207,33 +233,59 @@ def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kw :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_namespaced_pod_preset" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_preset`") # noqa: E501 collection_formats = {} @@ -242,32 +294,28 @@ def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -275,8 +323,8 @@ def delete_collection_namespaced_pod_preset_with_http_info(self, namespace, **kw local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -309,7 +357,7 @@ def delete_namespaced_pod_preset(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.delete_namespaced_pod_preset(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -318,16 +366,19 @@ def delete_namespaced_pod_preset(self, name, namespace, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.delete_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.delete_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 def delete_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """delete_namespaced_pod_preset # noqa: E501 @@ -338,7 +389,7 @@ def delete_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs) >>> thread = api.delete_namespaced_pod_preset_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. @@ -347,35 +398,57 @@ def delete_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs) :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_namespaced_pod_preset" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_preset`") # noqa: E501 collection_formats = {} @@ -386,15 +459,15 @@ def delete_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs) path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -437,17 +510,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -458,23 +534,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -525,7 +615,7 @@ def list_namespaced_pod_preset(self, namespace, **kwargs): # noqa: E501 >>> thread = api.list_namespaced_pod_preset(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -536,16 +626,19 @@ def list_namespaced_pod_preset(self, namespace, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PodPresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 - else: - (data) = self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 - return data + return self.list_namespaced_pod_preset_with_http_info(namespace, **kwargs) # noqa: E501 def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): # noqa: E501 """list_namespaced_pod_preset # noqa: E501 @@ -556,7 +649,7 @@ def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): # noq >>> thread = api.list_namespaced_pod_preset_with_http_info(namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. @@ -567,31 +660,55 @@ def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): # noq :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1PodPresetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodPresetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['namespace', 'pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'namespace', + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_namespaced_pod_preset" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_preset`") # noqa: E501 collection_formats = {} @@ -600,23 +717,23 @@ def list_namespaced_pod_preset_with_http_info(self, namespace, **kwargs): # noq path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -657,7 +774,7 @@ def list_pod_preset_for_all_namespaces(self, **kwargs): # noqa: E501 >>> thread = api.list_pod_preset_for_all_namespaces(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -667,16 +784,19 @@ def list_pod_preset_for_all_namespaces(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PodPresetList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_pod_preset_for_all_namespaces_with_http_info(**kwargs) # noqa: E501 def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501 """list_pod_preset_for_all_namespaces # noqa: E501 @@ -687,7 +807,7 @@ def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): # noqa: >>> thread = api.list_pod_preset_for_all_namespaces_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -697,22 +817,45 @@ def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): # noqa: :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1PodPresetList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodPresetList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'pretty', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'pretty', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_pod_preset_for_all_namespaces" % key ) @@ -724,23 +867,23 @@ def list_pod_preset_for_all_namespaces_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -781,24 +924,27 @@ def patch_namespaced_pod_preset(self, name, namespace, body, **kwargs): # noqa: >>> thread = api.patch_namespaced_pod_preset(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.patch_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_pod_preset # noqa: E501 @@ -809,47 +955,68 @@ def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kw >>> thread = api.patch_namespaced_pod_preset_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1PodPreset + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodPreset, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_namespaced_pod_preset" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_preset`") # noqa: E501 collection_formats = {} @@ -860,13 +1027,13 @@ def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kw path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -913,22 +1080,25 @@ def read_namespaced_pod_preset(self, name, namespace, **kwargs): # noqa: E501 >>> thread = api.read_namespaced_pod_preset(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 - else: - (data) = self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 - return data + return self.read_namespaced_pod_preset_with_http_info(name, namespace, **kwargs) # noqa: E501 def read_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): # noqa: E501 """read_namespaced_pod_preset # noqa: E501 @@ -939,41 +1109,60 @@ def read_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): >>> thread = api.read_namespaced_pod_preset_with_http_info(name, namespace, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1alpha1PodPreset + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodPreset, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_namespaced_pod_preset" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_preset`") # noqa: E501 collection_formats = {} @@ -984,11 +1173,11 @@ def read_namespaced_pod_preset_with_http_info(self, name, namespace, **kwargs): path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1029,23 +1218,26 @@ def replace_namespaced_pod_preset(self, name, namespace, body, **kwargs): # noq >>> thread = api.replace_namespaced_pod_preset(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1PodPreset body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1PodPreset If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 - return data + return self.replace_namespaced_pod_preset_with_http_info(name, namespace, body, **kwargs) # noqa: E501 def replace_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501 """replace_namespaced_pod_preset # noqa: E501 @@ -1056,46 +1248,66 @@ def replace_namespaced_pod_preset_with_http_info(self, name, namespace, body, ** >>> thread = api.replace_namespaced_pod_preset_with_http_info(name, namespace, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) :param V1alpha1PodPreset body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1PodPreset + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1PodPreset, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'namespace', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'namespace', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_namespaced_pod_preset" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'namespace' is set - if ('namespace' not in local_var_params or - local_var_params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501 + local_var_params['namespace'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_preset`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_preset`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_preset`") # noqa: E501 collection_formats = {} @@ -1106,11 +1318,11 @@ def replace_namespaced_pod_preset_with_http_info(self, name, namespace, body, ** path_params['namespace'] = local_var_params['namespace'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/storage_api.py b/kubernetes/client/api/storage_api.py index 00ba07e282..fe1366d5ea 100644 --- a/kubernetes/client/api/storage_api.py +++ b/kubernetes/client/api/storage_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class StorageApi(object): @@ -41,17 +45,20 @@ def get_api_group(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_group_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_group_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_group_with_http_info(**kwargs) # noqa: E501 def get_api_group_with_http_info(self, **kwargs): # noqa: E501 """get_api_group # noqa: E501 @@ -62,23 +69,37 @@ def get_api_group_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_group_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIGroup + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIGroup, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_group" % key ) diff --git a/kubernetes/client/api/storage_v1_api.py b/kubernetes/client/api/storage_v1_api.py index 4feeaaa3dd..84a2419608 100644 --- a/kubernetes/client/api/storage_v1_api.py +++ b/kubernetes/client/api/storage_v1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class StorageV1Api(object): @@ -41,21 +45,24 @@ def create_storage_class(self, body, **kwargs): # noqa: E501 >>> thread = api.create_storage_class(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1StorageClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StorageClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 def create_storage_class_with_http_info(self, body, **kwargs): # noqa: E501 """create_storage_class # noqa: E501 @@ -66,47 +73,65 @@ def create_storage_class_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_storage_class_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1StorageClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1StorageClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StorageClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_storage_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,21 +174,24 @@ def create_volume_attachment(self, body, **kwargs): # noqa: E501 >>> thread = api.create_volume_attachment(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 """create_volume_attachment # noqa: E501 @@ -174,47 +202,65 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_volume_attachment_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -257,9 +303,8 @@ def delete_collection_storage_class(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_storage_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -270,18 +315,20 @@ def delete_collection_storage_class(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_storage_class # noqa: E501 @@ -292,9 +339,8 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E50 >>> thread = api.delete_collection_storage_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -305,24 +351,49 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E50 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_storage_class" % key ) @@ -334,32 +405,28 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E50 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -367,8 +434,8 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E50 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -401,9 +468,8 @@ def delete_collection_volume_attachment(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_volume_attachment(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -414,18 +480,20 @@ def delete_collection_volume_attachment(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_volume_attachment # noqa: E501 @@ -436,9 +504,8 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: >>> thread = api.delete_collection_volume_attachment_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -449,24 +516,49 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_volume_attachment" % key ) @@ -478,32 +570,28 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -511,8 +599,8 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -545,7 +633,7 @@ def delete_storage_class(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_storage_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -553,16 +641,19 @@ def delete_storage_class(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 """delete_storage_class # noqa: E501 @@ -573,7 +664,7 @@ def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_storage_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -581,31 +672,52 @@ def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_storage_class`") # noqa: E501 collection_formats = {} @@ -614,15 +726,15 @@ def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -665,7 +777,7 @@ def delete_volume_attachment(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_volume_attachment(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -673,16 +785,19 @@ def delete_volume_attachment(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 """delete_volume_attachment # noqa: E501 @@ -693,7 +808,7 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_volume_attachment_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -701,31 +816,52 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") # noqa: E501 collection_formats = {} @@ -734,15 +870,15 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -785,17 +921,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -806,23 +945,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -873,7 +1026,7 @@ def list_storage_class(self, **kwargs): # noqa: E501 >>> thread = api.list_storage_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -883,16 +1036,19 @@ def list_storage_class(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StorageClassList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_storage_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_storage_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_storage_class_with_http_info(**kwargs) # noqa: E501 def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 """list_storage_class # noqa: E501 @@ -903,7 +1059,7 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_storage_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -913,22 +1069,45 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1StorageClassList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StorageClassList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_storage_class" % key ) @@ -940,23 +1119,23 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -997,7 +1176,7 @@ def list_volume_attachment(self, **kwargs): # noqa: E501 >>> thread = api.list_volume_attachment(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1007,16 +1186,19 @@ def list_volume_attachment(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1VolumeAttachmentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 """list_volume_attachment # noqa: E501 @@ -1027,7 +1209,7 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_volume_attachment_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1037,22 +1219,45 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1VolumeAttachmentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttachmentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_volume_attachment" % key ) @@ -1064,23 +1269,23 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1121,23 +1326,26 @@ def patch_storage_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_storage_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StorageClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 def patch_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_storage_class # noqa: E501 @@ -1148,42 +1356,62 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E50 >>> thread = api.patch_storage_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1StorageClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StorageClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_storage_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_storage_class`") # noqa: E501 collection_formats = {} @@ -1192,13 +1420,13 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1245,23 +1473,26 @@ def patch_volume_attachment(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_volume_attachment(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_volume_attachment # noqa: E501 @@ -1272,42 +1503,62 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: >>> thread = api.patch_volume_attachment_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 collection_formats = {} @@ -1316,13 +1567,13 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1369,23 +1620,26 @@ def patch_volume_attachment_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_volume_attachment_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_volume_attachment_status # noqa: E501 @@ -1396,42 +1650,62 @@ def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): >>> thread = api.patch_volume_attachment_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_volume_attachment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attachment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attachment_status`") # noqa: E501 collection_formats = {} @@ -1440,13 +1714,13 @@ def patch_volume_attachment_status_with_http_info(self, name, body, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -1493,21 +1767,24 @@ def read_storage_class(self, name, **kwargs): # noqa: E501 >>> thread = api.read_storage_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StorageClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 def read_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 """read_storage_class # noqa: E501 @@ -1518,36 +1795,54 @@ def read_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_storage_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1StorageClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StorageClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_storage_class`") # noqa: E501 collection_formats = {} @@ -1556,11 +1851,11 @@ def read_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1601,21 +1896,24 @@ def read_volume_attachment(self, name, **kwargs): # noqa: E501 >>> thread = api.read_volume_attachment(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 """read_volume_attachment # noqa: E501 @@ -1626,36 +1924,54 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_volume_attachment_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_volume_attachment`") # noqa: E501 collection_formats = {} @@ -1664,11 +1980,11 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -1709,19 +2025,22 @@ def read_volume_attachment_status(self, name, **kwargs): # noqa: E501 >>> thread = api.read_volume_attachment_status(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_volume_attachment_status_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_volume_attachment_status_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_volume_attachment_status_with_http_info(name, **kwargs) # noqa: E501 def read_volume_attachment_status_with_http_info(self, name, **kwargs): # noqa: E501 """read_volume_attachment_status # noqa: E501 @@ -1732,34 +2051,50 @@ def read_volume_attachment_status_with_http_info(self, name, **kwargs): # noqa: >>> thread = api.read_volume_attachment_status_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. - :return: V1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_volume_attachment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_volume_attachment_status`") # noqa: E501 collection_formats = {} @@ -1768,7 +2103,7 @@ def read_volume_attachment_status_with_http_info(self, name, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 header_params = {} @@ -1809,22 +2144,25 @@ def replace_storage_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_storage_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param V1StorageClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1StorageClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 def replace_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_storage_class # noqa: E501 @@ -1835,41 +2173,60 @@ def replace_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E >>> thread = api.replace_storage_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param V1StorageClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1StorageClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1StorageClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_storage_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_storage_class`") # noqa: E501 collection_formats = {} @@ -1878,11 +2235,11 @@ def replace_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -1925,22 +2282,25 @@ def replace_volume_attachment(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_volume_attachment(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param V1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_volume_attachment # noqa: E501 @@ -1951,41 +2311,60 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noq >>> thread = api.replace_volume_attachment_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param V1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") # noqa: E501 collection_formats = {} @@ -1994,11 +2373,11 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noq path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -2041,22 +2420,25 @@ def replace_volume_attachment_status(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_volume_attachment_status(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param V1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_volume_attachment_status_with_http_info(name, body, **kwargs) # noqa: E501 def replace_volume_attachment_status_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_volume_attachment_status # noqa: E501 @@ -2067,41 +2449,60 @@ def replace_volume_attachment_status_with_http_info(self, name, body, **kwargs): >>> thread = api.replace_volume_attachment_status_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param V1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_volume_attachment_status" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_volume_attachment_status`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment_status`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_volume_attachment_status`") # noqa: E501 collection_formats = {} @@ -2110,11 +2511,11 @@ def replace_volume_attachment_status_with_http_info(self, name, body, **kwargs): path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/storage_v1alpha1_api.py b/kubernetes/client/api/storage_v1alpha1_api.py index 7ea025aa56..a65fc91197 100644 --- a/kubernetes/client/api/storage_v1alpha1_api.py +++ b/kubernetes/client/api/storage_v1alpha1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class StorageV1alpha1Api(object): @@ -41,21 +45,24 @@ def create_volume_attachment(self, body, **kwargs): # noqa: E501 >>> thread = api.create_volume_attachment(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 """create_volume_attachment # noqa: E501 @@ -66,47 +73,65 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_volume_attachment_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1alpha1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,9 +174,8 @@ def delete_collection_volume_attachment(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_volume_attachment(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -162,18 +186,20 @@ def delete_collection_volume_attachment(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_volume_attachment # noqa: E501 @@ -184,9 +210,8 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: >>> thread = api.delete_collection_volume_attachment_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -197,24 +222,49 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_volume_attachment" % key ) @@ -226,32 +276,28 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -259,8 +305,8 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -293,7 +339,7 @@ def delete_volume_attachment(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_volume_attachment(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -301,16 +347,19 @@ def delete_volume_attachment(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 """delete_volume_attachment # noqa: E501 @@ -321,7 +370,7 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_volume_attachment_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -329,31 +378,52 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") # noqa: E501 collection_formats = {} @@ -362,15 +432,15 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -413,17 +483,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -434,23 +507,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -501,7 +588,7 @@ def list_volume_attachment(self, **kwargs): # noqa: E501 >>> thread = api.list_volume_attachment(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -511,16 +598,19 @@ def list_volume_attachment(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1VolumeAttachmentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 """list_volume_attachment # noqa: E501 @@ -531,7 +621,7 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_volume_attachment_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -541,22 +631,45 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VolumeAttachmentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1VolumeAttachmentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_volume_attachment" % key ) @@ -568,23 +681,23 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -625,23 +738,26 @@ def patch_volume_attachment(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_volume_attachment(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_volume_attachment # noqa: E501 @@ -652,42 +768,62 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: >>> thread = api.patch_volume_attachment_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1alpha1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 collection_formats = {} @@ -696,13 +832,13 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -749,21 +885,24 @@ def read_volume_attachment(self, name, **kwargs): # noqa: E501 >>> thread = api.read_volume_attachment(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 """read_volume_attachment # noqa: E501 @@ -774,36 +913,54 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_volume_attachment_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1alpha1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_volume_attachment`") # noqa: E501 collection_formats = {} @@ -812,11 +969,11 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -857,22 +1014,25 @@ def replace_volume_attachment(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_volume_attachment(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param V1alpha1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1alpha1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_volume_attachment # noqa: E501 @@ -883,41 +1043,60 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noq >>> thread = api.replace_volume_attachment_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param V1alpha1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1alpha1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1alpha1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") # noqa: E501 collection_formats = {} @@ -926,11 +1105,11 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noq path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/storage_v1beta1_api.py b/kubernetes/client/api/storage_v1beta1_api.py index 3adcfe9bc6..93d11cfc73 100644 --- a/kubernetes/client/api/storage_v1beta1_api.py +++ b/kubernetes/client/api/storage_v1beta1_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class StorageV1beta1Api(object): @@ -41,21 +45,24 @@ def create_csi_driver(self, body, **kwargs): # noqa: E501 >>> thread = api.create_csi_driver(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1CSIDriver body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSIDriver If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_csi_driver_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_csi_driver_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_csi_driver_with_http_info(body, **kwargs) # noqa: E501 def create_csi_driver_with_http_info(self, body, **kwargs): # noqa: E501 """create_csi_driver # noqa: E501 @@ -66,47 +73,65 @@ def create_csi_driver_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_csi_driver_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1CSIDriver body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CSIDriver + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSIDriver, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_csi_driver" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_csi_driver`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_csi_driver`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -149,21 +174,24 @@ def create_csi_node(self, body, **kwargs): # noqa: E501 >>> thread = api.create_csi_node(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1CSINode body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSINode If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_csi_node_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_csi_node_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_csi_node_with_http_info(body, **kwargs) # noqa: E501 def create_csi_node_with_http_info(self, body, **kwargs): # noqa: E501 """create_csi_node # noqa: E501 @@ -174,47 +202,65 @@ def create_csi_node_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_csi_node_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1CSINode body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CSINode + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSINode, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_csi_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_csi_node`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_csi_node`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -257,21 +303,24 @@ def create_storage_class(self, body, **kwargs): # noqa: E501 >>> thread = api.create_storage_class(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1StorageClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StorageClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_storage_class_with_http_info(body, **kwargs) # noqa: E501 def create_storage_class_with_http_info(self, body, **kwargs): # noqa: E501 """create_storage_class # noqa: E501 @@ -282,47 +331,65 @@ def create_storage_class_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_storage_class_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1StorageClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1StorageClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StorageClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_storage_class`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -365,21 +432,24 @@ def create_volume_attachment(self, body, **kwargs): # noqa: E501 >>> thread = api.create_volume_attachment(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 - return data + return self.create_volume_attachment_with_http_info(body, **kwargs) # noqa: E501 def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 """create_volume_attachment # noqa: E501 @@ -390,47 +460,65 @@ def create_volume_attachment_with_http_info(self, body, **kwargs): # noqa: E501 >>> thread = api.create_volume_attachment_with_http_info(body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param V1beta1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `create_volume_attachment`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -473,9 +561,8 @@ def delete_collection_csi_driver(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_csi_driver(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -486,18 +573,20 @@ def delete_collection_csi_driver(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_csi_driver_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_csi_driver_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_csi_driver_with_http_info(**kwargs) # noqa: E501 def delete_collection_csi_driver_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_csi_driver # noqa: E501 @@ -508,9 +597,8 @@ def delete_collection_csi_driver_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_csi_driver_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -521,24 +609,49 @@ def delete_collection_csi_driver_with_http_info(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_csi_driver" % key ) @@ -550,32 +663,28 @@ def delete_collection_csi_driver_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -583,8 +692,8 @@ def delete_collection_csi_driver_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -617,9 +726,8 @@ def delete_collection_csi_node(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_csi_node(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -630,18 +738,20 @@ def delete_collection_csi_node(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_csi_node_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_csi_node_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_csi_node_with_http_info(**kwargs) # noqa: E501 def delete_collection_csi_node_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_csi_node # noqa: E501 @@ -652,9 +762,8 @@ def delete_collection_csi_node_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_csi_node_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -665,24 +774,49 @@ def delete_collection_csi_node_with_http_info(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_csi_node" % key ) @@ -694,32 +828,28 @@ def delete_collection_csi_node_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -727,8 +857,8 @@ def delete_collection_csi_node_with_http_info(self, **kwargs): # noqa: E501 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -761,9 +891,8 @@ def delete_collection_storage_class(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_storage_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -774,18 +903,20 @@ def delete_collection_storage_class(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_storage_class_with_http_info(**kwargs) # noqa: E501 def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_storage_class # noqa: E501 @@ -796,9 +927,8 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E50 >>> thread = api.delete_collection_storage_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -809,24 +939,49 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E50 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_storage_class" % key ) @@ -838,32 +993,28 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E50 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -871,8 +1022,8 @@ def delete_collection_storage_class_with_http_info(self, **kwargs): # noqa: E50 local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -905,9 +1056,8 @@ def delete_collection_volume_attachment(self, **kwargs): # noqa: E501 >>> thread = api.delete_collection_volume_attachment(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -918,18 +1068,20 @@ def delete_collection_volume_attachment(self, **kwargs): # noqa: E501 :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: + :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 - return data + return self.delete_collection_volume_attachment_with_http_info(**kwargs) # noqa: E501 def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 """delete_collection_volume_attachment # noqa: E501 @@ -940,9 +1092,8 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: >>> thread = api.delete_collection_volume_attachment_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. - :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. :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 :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. @@ -953,24 +1104,49 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: :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. :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :param V1DeleteOptions v1_delete_options: - :return: V1Status + :param V1DeleteOptions body: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'dry_run', 'field_selector', 'grace_period_seconds', 'label_selector', 'limit', 'orphan_dependents', 'propagation_policy', 'resource_version', 'timeout_seconds', 'watch', 'v1_delete_options'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + '_continue', + 'dry_run', + 'field_selector', + 'grace_period_seconds', + 'label_selector', + 'limit', + 'orphan_dependents', + 'propagation_policy', + 'resource_version', + 'timeout_seconds', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_collection_volume_attachment" % key ) @@ -982,32 +1158,28 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: - query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: - query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1015,8 +1187,8 @@ def delete_collection_volume_attachment_with_http_info(self, **kwargs): # noqa: local_var_files = {} body_params = None - if 'v1_delete_options' in local_var_params: - body_params = local_var_params['v1_delete_options'] + if 'body' in local_var_params: + body_params = local_var_params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf']) # noqa: E501 @@ -1049,7 +1221,7 @@ def delete_csi_driver(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_csi_driver(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -1057,16 +1229,19 @@ def delete_csi_driver(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_csi_driver_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_csi_driver_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_csi_driver_with_http_info(name, **kwargs) # noqa: E501 def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 """delete_csi_driver # noqa: E501 @@ -1077,7 +1252,7 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_csi_driver_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -1085,31 +1260,52 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_csi_driver" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_csi_driver`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_csi_driver`") # noqa: E501 collection_formats = {} @@ -1118,15 +1314,15 @@ def delete_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1169,7 +1365,7 @@ def delete_csi_node(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_csi_node(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSINode (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -1177,16 +1373,19 @@ def delete_csi_node(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_csi_node_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_csi_node_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_csi_node_with_http_info(name, **kwargs) # noqa: E501 def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 """delete_csi_node # noqa: E501 @@ -1197,7 +1396,7 @@ def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_csi_node_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSINode (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -1205,31 +1404,52 @@ def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_csi_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_csi_node`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_csi_node`") # noqa: E501 collection_formats = {} @@ -1238,15 +1458,15 @@ def delete_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1289,7 +1509,7 @@ def delete_storage_class(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_storage_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -1297,16 +1517,19 @@ def delete_storage_class(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_storage_class_with_http_info(name, **kwargs) # noqa: E501 def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 """delete_storage_class # noqa: E501 @@ -1317,7 +1540,7 @@ def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_storage_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -1325,31 +1548,52 @@ def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_storage_class`") # noqa: E501 collection_formats = {} @@ -1358,15 +1602,15 @@ def delete_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1409,7 +1653,7 @@ def delete_volume_attachment(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_volume_attachment(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -1417,16 +1661,19 @@ def delete_volume_attachment(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1Status If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.delete_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 """delete_volume_attachment # noqa: E501 @@ -1437,7 +1684,7 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.delete_volume_attachment_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :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 @@ -1445,31 +1692,52 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 :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. :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. :param V1DeleteOptions body: - :return: V1Status + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'dry_run', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'dry_run', + 'grace_period_seconds', + 'orphan_dependents', + 'propagation_policy', + 'body' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method delete_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `delete_volume_attachment`") # noqa: E501 collection_formats = {} @@ -1478,15 +1746,15 @@ def delete_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'grace_period_seconds' in local_var_params: + if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501 query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501 - if 'orphan_dependents' in local_var_params: + if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501 query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501 - if 'propagation_policy' in local_var_params: + if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501 query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501 header_params = {} @@ -1529,17 +1797,20 @@ def get_api_resources(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1APIResourceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_api_resources_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_api_resources_with_http_info(**kwargs) # noqa: E501 def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 """get_api_resources # noqa: E501 @@ -1550,23 +1821,37 @@ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_api_resources_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: V1APIResourceList + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_api_resources" % key ) @@ -1617,7 +1902,7 @@ def list_csi_driver(self, **kwargs): # noqa: E501 >>> thread = api.list_csi_driver(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1627,16 +1912,19 @@ def list_csi_driver(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSIDriverList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_csi_driver_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_csi_driver_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_csi_driver_with_http_info(**kwargs) # noqa: E501 def list_csi_driver_with_http_info(self, **kwargs): # noqa: E501 """list_csi_driver # noqa: E501 @@ -1647,7 +1935,7 @@ def list_csi_driver_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_csi_driver_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1657,22 +1945,45 @@ def list_csi_driver_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1CSIDriverList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSIDriverList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_csi_driver" % key ) @@ -1684,23 +1995,23 @@ def list_csi_driver_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1741,7 +2052,7 @@ def list_csi_node(self, **kwargs): # noqa: E501 >>> thread = api.list_csi_node(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1751,16 +2062,19 @@ def list_csi_node(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSINodeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_csi_node_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_csi_node_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_csi_node_with_http_info(**kwargs) # noqa: E501 def list_csi_node_with_http_info(self, **kwargs): # noqa: E501 """list_csi_node # noqa: E501 @@ -1771,7 +2085,7 @@ def list_csi_node_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_csi_node_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1781,22 +2095,45 @@ def list_csi_node_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1CSINodeList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSINodeList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_csi_node" % key ) @@ -1808,23 +2145,23 @@ def list_csi_node_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1865,7 +2202,7 @@ def list_storage_class(self, **kwargs): # noqa: E501 >>> thread = api.list_storage_class(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1875,16 +2212,19 @@ def list_storage_class(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StorageClassList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_storage_class_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_storage_class_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_storage_class_with_http_info(**kwargs) # noqa: E501 def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 """list_storage_class # noqa: E501 @@ -1895,7 +2235,7 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_storage_class_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1905,22 +2245,45 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1StorageClassList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StorageClassList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_storage_class" % key ) @@ -1932,23 +2295,23 @@ def list_storage_class_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -1989,7 +2352,7 @@ def list_volume_attachment(self, **kwargs): # noqa: E501 >>> thread = api.list_volume_attachment(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -1999,16 +2362,19 @@ def list_volume_attachment(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1VolumeAttachmentList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 - return data + return self.list_volume_attachment_with_http_info(**kwargs) # noqa: E501 def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 """list_volume_attachment # noqa: E501 @@ -2019,7 +2385,7 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.list_volume_attachment_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str pretty: If 'true', then the output is pretty printed. :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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. :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. @@ -2029,22 +2395,45 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1VolumeAttachmentList + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1VolumeAttachmentList, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['pretty', 'allow_watch_bookmarks', '_continue', 'field_selector', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'pretty', + 'allow_watch_bookmarks', + '_continue', + 'field_selector', + 'label_selector', + 'limit', + 'resource_version', + 'timeout_seconds', + 'watch' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_volume_attachment" % key ) @@ -2056,23 +2445,23 @@ def list_volume_attachment_with_http_info(self, **kwargs): # noqa: E501 path_params = {} query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'allow_watch_bookmarks' in local_var_params: + if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501 query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501 - if '_continue' in local_var_params: + if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501 query_params.append(('continue', local_var_params['_continue'])) # noqa: E501 - if 'field_selector' in local_var_params: + if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501 query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501 - if 'label_selector' in local_var_params: + if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501 query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501 - if 'limit' in local_var_params: + if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 - if 'resource_version' in local_var_params: + if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501 query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501 - if 'timeout_seconds' in local_var_params: + if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501 query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501 - if 'watch' in local_var_params: + if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501 query_params.append(('watch', local_var_params['watch'])) # noqa: E501 header_params = {} @@ -2113,23 +2502,26 @@ def patch_csi_driver(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_csi_driver(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSIDriver (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSIDriver If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 def patch_csi_driver_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_csi_driver # noqa: E501 @@ -2140,42 +2532,62 @@ def patch_csi_driver_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_csi_driver_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSIDriver (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1CSIDriver + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSIDriver, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_csi_driver" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_csi_driver`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_csi_driver`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_csi_driver`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_csi_driver`") # noqa: E501 collection_formats = {} @@ -2184,13 +2596,13 @@ def patch_csi_driver_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2237,23 +2649,26 @@ def patch_csi_node(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_csi_node(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSINode (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSINode If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 def patch_csi_node_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_csi_node # noqa: E501 @@ -2264,42 +2679,62 @@ def patch_csi_node_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_csi_node_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSINode (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1CSINode + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSINode, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_csi_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_csi_node`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_csi_node`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_csi_node`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_csi_node`") # noqa: E501 collection_formats = {} @@ -2308,13 +2743,13 @@ def patch_csi_node_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2361,23 +2796,26 @@ def patch_storage_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_storage_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StorageClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 def patch_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_storage_class # noqa: E501 @@ -2388,42 +2826,62 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E50 >>> thread = api.patch_storage_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1StorageClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StorageClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_storage_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_storage_class`") # noqa: E501 collection_formats = {} @@ -2432,13 +2890,13 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E50 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2485,23 +2943,26 @@ def patch_volume_attachment(self, name, body, **kwargs): # noqa: E501 >>> thread = api.patch_volume_attachment(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.patch_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 """patch_volume_attachment # noqa: E501 @@ -2512,42 +2973,62 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: >>> thread = api.patch_volume_attachment_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) - :param UNKNOWN_BASE_TYPE body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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). :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. - :return: V1beta1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager', 'force'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager', + 'force' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method patch_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attachment`") # noqa: E501 collection_formats = {} @@ -2556,13 +3037,13 @@ def patch_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 - if 'force' in local_var_params: + if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501 query_params.append(('force', local_var_params['force'])) # noqa: E501 header_params = {} @@ -2609,21 +3090,24 @@ def read_csi_driver(self, name, **kwargs): # noqa: E501 >>> thread = api.read_csi_driver(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSIDriver If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_csi_driver_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_csi_driver_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_csi_driver_with_http_info(name, **kwargs) # noqa: E501 def read_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 """read_csi_driver # noqa: E501 @@ -2634,36 +3118,54 @@ def read_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_csi_driver_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSIDriver (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1CSIDriver + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSIDriver, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_csi_driver" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_csi_driver`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_csi_driver`") # noqa: E501 collection_formats = {} @@ -2672,11 +3174,11 @@ def read_csi_driver_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -2717,21 +3219,24 @@ def read_csi_node(self, name, **kwargs): # noqa: E501 >>> thread = api.read_csi_node(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSINode (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSINode If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_csi_node_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_csi_node_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_csi_node_with_http_info(name, **kwargs) # noqa: E501 def read_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 """read_csi_node # noqa: E501 @@ -2742,36 +3247,54 @@ def read_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_csi_node_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSINode (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1CSINode + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSINode, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_csi_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_csi_node`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_csi_node`") # noqa: E501 collection_formats = {} @@ -2780,11 +3303,11 @@ def read_csi_node_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -2825,21 +3348,24 @@ def read_storage_class(self, name, **kwargs): # noqa: E501 >>> thread = api.read_storage_class(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StorageClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_storage_class_with_http_info(name, **kwargs) # noqa: E501 def read_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 """read_storage_class # noqa: E501 @@ -2850,36 +3376,54 @@ def read_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_storage_class_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1StorageClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StorageClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_storage_class`") # noqa: E501 collection_formats = {} @@ -2888,11 +3432,11 @@ def read_storage_class_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -2933,21 +3477,24 @@ def read_volume_attachment(self, name, **kwargs): # noqa: E501 >>> thread = api.read_volume_attachment(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - else: - (data) = self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 - return data + return self.read_volume_attachment_with_http_info(name, **kwargs) # noqa: E501 def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 """read_volume_attachment # noqa: E501 @@ -2958,36 +3505,54 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 >>> thread = api.read_volume_attachment_with_http_info(name, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param str pretty: If 'true', then the output is pretty printed. :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. :param bool export: Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. - :return: V1beta1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'pretty', 'exact', 'export'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'pretty', + 'exact', + 'export' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method read_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `read_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `read_volume_attachment`") # noqa: E501 collection_formats = {} @@ -2996,11 +3561,11 @@ def read_volume_attachment_with_http_info(self, name, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'exact' in local_var_params: + if 'exact' in local_var_params and local_var_params['exact'] is not None: # noqa: E501 query_params.append(('exact', local_var_params['exact'])) # noqa: E501 - if 'export' in local_var_params: + if 'export' in local_var_params and local_var_params['export'] is not None: # noqa: E501 query_params.append(('export', local_var_params['export'])) # noqa: E501 header_params = {} @@ -3041,22 +3606,25 @@ def replace_csi_driver(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_csi_driver(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSIDriver (required) :param V1beta1CSIDriver body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSIDriver If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_csi_driver_with_http_info(name, body, **kwargs) # noqa: E501 def replace_csi_driver_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_csi_driver # noqa: E501 @@ -3067,41 +3635,60 @@ def replace_csi_driver_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_csi_driver_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSIDriver (required) :param V1beta1CSIDriver body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CSIDriver + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSIDriver, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_csi_driver" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_csi_driver`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_csi_driver`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_csi_driver`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_csi_driver`") # noqa: E501 collection_formats = {} @@ -3110,11 +3697,11 @@ def replace_csi_driver_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3157,22 +3744,25 @@ def replace_csi_node(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_csi_node(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSINode (required) :param V1beta1CSINode body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1CSINode If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_csi_node_with_http_info(name, body, **kwargs) # noqa: E501 def replace_csi_node_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_csi_node # noqa: E501 @@ -3183,41 +3773,60 @@ def replace_csi_node_with_http_info(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_csi_node_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the CSINode (required) :param V1beta1CSINode body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1CSINode + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1CSINode, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_csi_node" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_csi_node`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_csi_node`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_csi_node`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_csi_node`") # noqa: E501 collection_formats = {} @@ -3226,11 +3835,11 @@ def replace_csi_node_with_http_info(self, name, body, **kwargs): # noqa: E501 path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3273,22 +3882,25 @@ def replace_storage_class(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_storage_class(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param V1beta1StorageClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1StorageClass If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_storage_class_with_http_info(name, body, **kwargs) # noqa: E501 def replace_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_storage_class # noqa: E501 @@ -3299,41 +3911,60 @@ def replace_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E >>> thread = api.replace_storage_class_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the StorageClass (required) :param V1beta1StorageClass body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1StorageClass + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1StorageClass, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_storage_class" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_storage_class`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_storage_class`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_storage_class`") # noqa: E501 collection_formats = {} @@ -3342,11 +3973,11 @@ def replace_storage_class_with_http_info(self, name, body, **kwargs): # noqa: E path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} @@ -3389,22 +4020,25 @@ def replace_volume_attachment(self, name, body, **kwargs): # noqa: E501 >>> thread = api.replace_volume_attachment(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param V1beta1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: V1beta1VolumeAttachment If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - else: - (data) = self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 - return data + return self.replace_volume_attachment_with_http_info(name, body, **kwargs) # noqa: E501 def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noqa: E501 """replace_volume_attachment # noqa: E501 @@ -3415,41 +4049,60 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noq >>> thread = api.replace_volume_attachment_with_http_info(name, body, async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously :param str name: name of the VolumeAttachment (required) :param V1beta1VolumeAttachment body: (required) :param str pretty: If 'true', then the output is pretty printed. :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 :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. - :return: V1beta1VolumeAttachment + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(V1beta1VolumeAttachment, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = ['name', 'body', 'pretty', 'dry_run', 'field_manager'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + 'name', + 'body', + 'pretty', + 'dry_run', + 'field_manager' + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method replace_volume_attachment" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'name' is set - if ('name' not in local_var_params or - local_var_params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501 + local_var_params['name'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `name` when calling `replace_volume_attachment`") # noqa: E501 # verify the required parameter 'body' is set - if ('body' not in local_var_params or - local_var_params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") # noqa: E501 + if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501 + local_var_params['body'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `body` when calling `replace_volume_attachment`") # noqa: E501 collection_formats = {} @@ -3458,11 +4111,11 @@ def replace_volume_attachment_with_http_info(self, name, body, **kwargs): # noq path_params['name'] = local_var_params['name'] # noqa: E501 query_params = [] - if 'pretty' in local_var_params: + if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501 query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501 - if 'dry_run' in local_var_params: + if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501 query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501 - if 'field_manager' in local_var_params: + if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501 query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501 header_params = {} diff --git a/kubernetes/client/api/version_api.py b/kubernetes/client/api/version_api.py index 06e8578d4b..7ae099f95c 100644 --- a/kubernetes/client/api/version_api.py +++ b/kubernetes/client/api/version_api.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -18,6 +18,10 @@ import six from kubernetes.client.api_client import ApiClient +from kubernetes.client.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) class VersionApi(object): @@ -41,17 +45,20 @@ def get_code(self, **kwargs): # noqa: E501 >>> thread = api.get_code(async_req=True) >>> result = thread.get() - :param async_req bool + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. :return: VersionInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_code_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_code_with_http_info(**kwargs) # noqa: E501 - return data + return self.get_code_with_http_info(**kwargs) # noqa: E501 def get_code_with_http_info(self, **kwargs): # noqa: E501 """get_code # noqa: E501 @@ -62,23 +69,37 @@ def get_code_with_http_info(self, **kwargs): # noqa: E501 >>> thread = api.get_code_with_http_info(async_req=True) >>> result = thread.get() - :param async_req bool - :return: VersionInfo + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(VersionInfo, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ local_var_params = locals() - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') + all_params = [ + ] + all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout' + ] + ) for key, val in six.iteritems(local_var_params['kwargs']): if key not in all_params: - raise TypeError( + raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_code" % key ) diff --git a/kubernetes/client/api_client.py b/kubernetes/client/api_client.py index 67bba9cc82..ef56f4eb7d 100644 --- a/kubernetes/client/api_client.py +++ b/kubernetes/client/api_client.py @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -12,6 +12,7 @@ import atexit import datetime +from dateutil.parser import parse import json import mimetypes from multiprocessing.pool import ThreadPool @@ -26,6 +27,7 @@ from kubernetes.client.configuration import Configuration import kubernetes.client.models from kubernetes.client import rest +from kubernetes.client.exceptions import ApiValueError class ApiClient(object): @@ -64,9 +66,9 @@ class ApiClient(object): _pool = None def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None, pool_threads=None): + cookie=None, pool_threads=1): if configuration is None: - configuration = Configuration() + configuration = Configuration.get_default_copy() self.configuration = configuration self.pool_threads = pool_threads @@ -77,6 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.cookie = cookie # Set default User-Agent. self.user_agent = 'OpenAPI-Generator/12.0.0-snapshot/python' + self.client_side_validation = configuration.client_side_validation def __enter__(self): return self @@ -119,7 +122,7 @@ def __call_api( query_params=None, header_params=None, body=None, post_params=None, files=None, response_type=None, auth_settings=None, _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): + _preload_content=True, _request_timeout=None, _host=None): config = self.configuration @@ -153,10 +156,11 @@ def __call_api( # post parameters if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) + post_params = post_params if post_params else [] post_params = self.sanitize_for_serialization(post_params) post_params = self.parameters_to_tuples(post_params, collection_formats) + post_params.extend(self.files_parameters(files)) # auth setting self.update_params_for_auth(header_params, query_params, auth_settings) @@ -166,7 +170,11 @@ def __call_api( body = self.sanitize_for_serialization(body) # request url - url = self.configuration.host + resource_path + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path # perform request and return response response_data = self.request( @@ -290,7 +298,7 @@ def __deserialize(self, data, klass): elif klass == datetime.date: return self.__deserialize_date(data) elif klass == datetime.datetime: - return self.__deserialize_datatime(data) + return self.__deserialize_datetime(data) else: return self.__deserialize_model(data, klass) @@ -299,7 +307,7 @@ def call_api(self, resource_path, method, body=None, post_params=None, files=None, response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): + _preload_content=True, _request_timeout=None, _host=None): """Makes the HTTP request (synchronous) and returns deserialized data. To make an async_req request, set the async_req parameter. @@ -342,17 +350,20 @@ def call_api(self, resource_path, method, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread + _preload_content, _request_timeout, _host) + + return self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, + query_params, + header_params, body, + post_params, files, + response_type, + auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, + _request_timeout, + _host)) def request(self, method, url, query_params=None, headers=None, post_params=None, body=None, _preload_content=True, @@ -374,10 +385,8 @@ def request(self, method, url, query_params=None, headers=None, return self.rest_client.OPTIONS(url, query_params=query_params, headers=headers, - post_params=post_params, _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) + _request_timeout=_request_timeout) elif method == "POST": return self.rest_client.POST(url, query_params=query_params, @@ -410,7 +419,7 @@ def request(self, method, url, query_params=None, headers=None, _request_timeout=_request_timeout, body=body) else: - raise ValueError( + raise ApiValueError( "http method must be `GET`, `HEAD`, `OPTIONS`," " `POST`, `PATCH`, `PUT` or `DELETE`." ) @@ -445,18 +454,14 @@ def parameters_to_tuples(self, params, collection_formats): new_params.append((k, v)) return new_params - def prepare_post_parameters(self, post_params=None, files=None): + def files_parameters(self, files=None): """Builds form parameters. - :param post_params: Normal form parameters. :param files: File parameters. :return: Form parameters with files. """ params = [] - if post_params: - params = post_params - if files: for k, v in six.iteritems(files): if not v: @@ -518,14 +523,14 @@ def update_params_for_auth(self, headers, querys, auth_settings): for auth in auth_settings: auth_setting = self.configuration.auth_settings().get(auth) if auth_setting: - if not auth_setting['value']: - continue + if auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] elif auth_setting['in'] == 'header': headers[auth_setting['key']] = auth_setting['value'] elif auth_setting['in'] == 'query': querys.append((auth_setting['key'], auth_setting['value'])) else: - raise ValueError( + raise ApiValueError( 'Authentication token must be in `query` or `header`' ) @@ -582,7 +587,6 @@ def __deserialize_date(self, string): :return: date. """ try: - from dateutil.parser import parse return parse(string).date() except ImportError: return string @@ -592,7 +596,7 @@ def __deserialize_date(self, string): reason="Failed to parse `{0}` as date object".format(string) ) - def __deserialize_datatime(self, string): + def __deserialize_datetime(self, string): """Deserializes string to datetime. The string should be in iso8601 datetime format. @@ -601,7 +605,6 @@ def __deserialize_datatime(self, string): :return: datetime. """ try: - from dateutil.parser import parse return parse(string) except ImportError: return string @@ -627,11 +630,11 @@ def __deserialize_model(self, data, klass): return data kwargs = {} - if klass.openapi_types is not None: + if (data is not None and + klass.openapi_types is not None and + isinstance(data, (list, dict))): for attr, attr_type in six.iteritems(klass.openapi_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): + if klass.attribute_map[attr] in data: value = data[klass.attribute_map[attr]] kwargs[attr] = self.__deserialize(value, attr_type) diff --git a/kubernetes/client/configuration.py b/kubernetes/client/configuration.py index ca1ac85702..ac926fc094 100644 --- a/kubernetes/client/configuration.py +++ b/kubernetes/client/configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -22,83 +22,190 @@ from six.moves import http_client as httplib -class TypeWithDefault(type): - def __init__(cls, name, bases, dct): - super(TypeWithDefault, cls).__init__(name, bases, dct) - cls._default = None - - def __call__(cls): - if cls._default is None: - cls._default = type.__call__(cls) - return copy.copy(cls._default) - - def set_default(cls, default): - cls._default = copy.copy(default) - - -class Configuration(six.with_metaclass(TypeWithDefault, object)): +class Configuration(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + :param discard_unknown_keys: Boolean value indicating whether to discard + unknown properties. A server may send a response that includes additional + properties that are not known by the client in the following scenarios: + 1. The OpenAPI document is incomplete, i.e. it does not match the server + implementation. + 2. The client was generated using an older version of the OpenAPI document + and the server has been upgraded since then. + If a schema in the OpenAPI document defines the additionalProperties attribute, + then all undeclared properties received by the server are injected into the + additional properties map. In that case, there are undeclared properties, and + nothing to discard. + + :Example: + + API Key Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + cookieAuth: # name for the security scheme + type: apiKey + in: cookie + name: JSESSIONID # cookie name + + You can programmatically set the cookie: + conf = client.Configuration( + api_key={'cookieAuth': 'abc123'} + api_key_prefix={'cookieAuth': 'JSESSIONID'} + ) + The following cookie will be added to the HTTP request: + Cookie: JSESSIONID abc123 """ - def __init__(self): - """Constructor""" - # Default Base url - self.host = "http://localhost" - # Temp file folder for downloading files - self.temp_folder_path = None + _default = None + def __init__(self, host="http://localhost", + api_key=None, api_key_prefix=None, + username=None, password=None, + discard_unknown_keys=False, + ): + """Constructor + """ + self.host = host + """Default Base url + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ # Authentication Settings - # dict to store API key(s) self.api_key = {} - # dict to store API prefix (e.g. Bearer) + if api_key: + self.api_key = api_key + """dict to store API key(s) + """ self.api_key_prefix = {} - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - - # Logging Settings + if api_key_prefix: + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.discard_unknown_keys = discard_unknown_keys self.logger = {} + """Logging Settings + """ self.logger["package_logger"] = logging.getLogger("client") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler + """Log format + """ self.logger_stream_handler = None - # Log file handler + """Log stream handler + """ self.logger_file_handler = None - # Debug file location + """Log file handler + """ self.logger_file = None - # Debug switch + """Debug file location + """ self.debug = False + """Debug switch + """ - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ self.ssl_ca_cert = None - # client certificate file + """Set this to customize the certificate file to verify the peer. + """ self.cert_file = None - # client key file + """client certificate file + """ self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. + """client key file + """ self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. urllib3 uses 1 connection as default value, but this is + not the best value when you are making a lot of possibly parallel + requests to the same host, which is often the case here. + cpu_count * 5 is used as default value to increase performance. + """ - # Proxy URL self.proxy = None - # Safe chars for path_param + """Proxy URL + """ + self.proxy_headers = None + """Proxy headers + """ self.safe_chars_for_path_param = '' + """Safe chars for path_param + """ + self.retries = None + """Adding retries to override urllib3 default value 3 + """ + # Disable client side validation + self.client_side_validation = True + + def __deepcopy__(self, memo): + cls = self.__class__ + result = cls.__new__(cls) + memo[id(self)] = result + for k, v in self.__dict__.items(): + if k not in ('logger', 'logger_file_handler'): + setattr(result, k, copy.deepcopy(v, memo)) + # shallow copy of loggers + result.logger = copy.copy(self.logger) + # use setters to configure loggers + result.logger_file = self.logger_file + result.debug = self.debug + return result + + @classmethod + def set_default(cls, default): + """Set default instance of configuration. + + It stores default configuration, which can be + returned by get_default_copy method. + + :param default: object of Configuration + """ + cls._default = copy.deepcopy(default) + + @classmethod + def get_default_copy(cls): + """Return new instance of configuration. + + This method returns newly created, based on default constructor, + object of Configuration class or returns a copy of default + configuration passed by the set_default method. + + :return: The configuration object. + """ + if cls._default is not None: + return copy.deepcopy(cls._default) + return Configuration() @property def logger_file(self): @@ -191,19 +298,29 @@ def get_api_key_with_prefix(self, identifier): :param identifier: The identifier of apiKey. :return: The token for api key authentication. """ - if (self.api_key.get(identifier) and - self.api_key_prefix.get(identifier)): - return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 - elif self.api_key.get(identifier): - return self.api_key[identifier] + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key def get_basic_auth_token(self): """Gets HTTP basic authentication header (string). :return: The token for basic HTTP authentication. """ + username = "" + if self.username is not None: + username = self.username + password = "" + if self.password is not None: + password = self.password return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password + basic_auth=username + ':' + password ).get('authorization') def auth_settings(self): @@ -211,16 +328,15 @@ def auth_settings(self): :return: The Auth Settings information dict. """ - return { - 'BearerToken': - { - 'type': 'api_key', - 'in': 'header', - 'key': 'authorization', - 'value': self.get_api_key_with_prefix('authorization') - }, - - } + auth = {} + if 'authorization' in self.api_key: + auth['BearerToken'] = { + 'type': 'api_key', + 'in': 'header', + 'key': 'authorization', + 'value': self.get_api_key_with_prefix('authorization') + } + return auth def to_debug_report(self): """Gets the essential information for debugging. @@ -233,3 +349,50 @@ def to_debug_report(self): "Version of the API: release-1.16\n"\ "SDK Package Version: 12.0.0-snapshot".\ format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "/", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables=None): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :return: URL based on host settings + """ + variables = {} if variables is None else variables + servers = self.get_host_settings() + + try: + server = servers[index] + except IndexError: + raise ValueError( + "Invalid index {0} when selecting the host settings. " + "Must be less than {1}".format(index, len(servers))) + + url = server['url'] + + # go through variables and replace placeholders + for variable_name, variable in server['variables'].items(): + used_value = variables.get( + variable_name, variable['default_value']) + + if 'enum_values' in variable \ + and used_value not in variable['enum_values']: + raise ValueError( + "The variable `{0}` in the host URL has invalid value " + "{1}. Must be {2}.".format( + variable_name, variables[variable_name], + variable['enum_values'])) + + url = url.replace("{" + variable_name + "}", used_value) + + return url diff --git a/kubernetes/client/exceptions.py b/kubernetes/client/exceptions.py new file mode 100644 index 0000000000..ba300af854 --- /dev/null +++ b/kubernetes/client/exceptions.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + Kubernetes + + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 + + The version of the OpenAPI document: release-1.16 + Generated by: https://openapi-generator.tech +""" + + +import six + + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, six.integer_types): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/kubernetes/client/models/__init__.py b/kubernetes/client/models/__init__.py index 823b775719..b141cc5f34 100644 --- a/kubernetes/client/models/__init__.py +++ b/kubernetes/client/models/__init__.py @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ diff --git a/kubernetes/client/models/admissionregistration_v1_service_reference.py b/kubernetes/client/models/admissionregistration_v1_service_reference.py index 71cb194419..8d925dd6dd 100644 --- a/kubernetes/client/models/admissionregistration_v1_service_reference.py +++ b/kubernetes/client/models/admissionregistration_v1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AdmissionregistrationV1ServiceReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class AdmissionregistrationV1ServiceReference(object): 'port': 'port' } - def __init__(self, name=None, namespace=None, path=None, port=None): # noqa: E501 + def __init__(self, name=None, namespace=None, path=None, port=None, local_vars_configuration=None): # noqa: E501 """AdmissionregistrationV1ServiceReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._namespace = None @@ -80,7 +85,7 @@ def name(self, name): :param name: The name of this AdmissionregistrationV1ServiceReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -105,7 +110,7 @@ def namespace(self, namespace): :param namespace: The namespace of this AdmissionregistrationV1ServiceReference. # noqa: E501 :type: str """ - if namespace is None: + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, AdmissionregistrationV1ServiceReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AdmissionregistrationV1ServiceReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py b/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py index d7899352d0..e03d5cf4bf 100644 --- a/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py +++ b/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AdmissionregistrationV1WebhookClientConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class AdmissionregistrationV1WebhookClientConfig(object): 'url': 'url' } - def __init__(self, ca_bundle=None, service=None, url=None): # noqa: E501 + def __init__(self, ca_bundle=None, service=None, url=None, local_vars_configuration=None): # noqa: E501 """AdmissionregistrationV1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ca_bundle = None self._service = None @@ -77,7 +82,8 @@ def ca_bundle(self, ca_bundle): :param ca_bundle: The ca_bundle of this AdmissionregistrationV1WebhookClientConfig. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501 raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @@ -163,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, AdmissionregistrationV1WebhookClientConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AdmissionregistrationV1WebhookClientConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/admissionregistration_v1beta1_service_reference.py b/kubernetes/client/models/admissionregistration_v1beta1_service_reference.py index f010eef3f5..37de23d267 100644 --- a/kubernetes/client/models/admissionregistration_v1beta1_service_reference.py +++ b/kubernetes/client/models/admissionregistration_v1beta1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AdmissionregistrationV1beta1ServiceReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class AdmissionregistrationV1beta1ServiceReference(object): 'port': 'port' } - def __init__(self, name=None, namespace=None, path=None, port=None): # noqa: E501 + def __init__(self, name=None, namespace=None, path=None, port=None, local_vars_configuration=None): # noqa: E501 """AdmissionregistrationV1beta1ServiceReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._namespace = None @@ -80,7 +85,7 @@ def name(self, name): :param name: The name of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -105,7 +110,7 @@ def namespace(self, namespace): :param namespace: The namespace of this AdmissionregistrationV1beta1ServiceReference. # noqa: E501 :type: str """ - if namespace is None: + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, AdmissionregistrationV1beta1ServiceReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AdmissionregistrationV1beta1ServiceReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/admissionregistration_v1beta1_webhook_client_config.py b/kubernetes/client/models/admissionregistration_v1beta1_webhook_client_config.py index 41347a574d..7a63d73d6e 100644 --- a/kubernetes/client/models/admissionregistration_v1beta1_webhook_client_config.py +++ b/kubernetes/client/models/admissionregistration_v1beta1_webhook_client_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AdmissionregistrationV1beta1WebhookClientConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class AdmissionregistrationV1beta1WebhookClientConfig(object): 'url': 'url' } - def __init__(self, ca_bundle=None, service=None, url=None): # noqa: E501 + def __init__(self, ca_bundle=None, service=None, url=None, local_vars_configuration=None): # noqa: E501 """AdmissionregistrationV1beta1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ca_bundle = None self._service = None @@ -77,7 +82,8 @@ def ca_bundle(self, ca_bundle): :param ca_bundle: The ca_bundle of this AdmissionregistrationV1beta1WebhookClientConfig. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501 raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @@ -163,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, AdmissionregistrationV1beta1WebhookClientConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AdmissionregistrationV1beta1WebhookClientConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apiextensions_v1_service_reference.py b/kubernetes/client/models/apiextensions_v1_service_reference.py index 89485ebad6..5b1963a5da 100644 --- a/kubernetes/client/models/apiextensions_v1_service_reference.py +++ b/kubernetes/client/models/apiextensions_v1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ApiextensionsV1ServiceReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class ApiextensionsV1ServiceReference(object): 'port': 'port' } - def __init__(self, name=None, namespace=None, path=None, port=None): # noqa: E501 + def __init__(self, name=None, namespace=None, path=None, port=None, local_vars_configuration=None): # noqa: E501 """ApiextensionsV1ServiceReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._namespace = None @@ -80,7 +85,7 @@ def name(self, name): :param name: The name of this ApiextensionsV1ServiceReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -105,7 +110,7 @@ def namespace(self, namespace): :param namespace: The namespace of this ApiextensionsV1ServiceReference. # noqa: E501 :type: str """ - if namespace is None: + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, ApiextensionsV1ServiceReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiextensionsV1ServiceReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apiextensions_v1_webhook_client_config.py b/kubernetes/client/models/apiextensions_v1_webhook_client_config.py index d777f9d1d4..36f2346f80 100644 --- a/kubernetes/client/models/apiextensions_v1_webhook_client_config.py +++ b/kubernetes/client/models/apiextensions_v1_webhook_client_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ApiextensionsV1WebhookClientConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class ApiextensionsV1WebhookClientConfig(object): 'url': 'url' } - def __init__(self, ca_bundle=None, service=None, url=None): # noqa: E501 + def __init__(self, ca_bundle=None, service=None, url=None, local_vars_configuration=None): # noqa: E501 """ApiextensionsV1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ca_bundle = None self._service = None @@ -77,7 +82,8 @@ def ca_bundle(self, ca_bundle): :param ca_bundle: The ca_bundle of this ApiextensionsV1WebhookClientConfig. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501 raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @@ -163,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, ApiextensionsV1WebhookClientConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiextensionsV1WebhookClientConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apiextensions_v1beta1_service_reference.py b/kubernetes/client/models/apiextensions_v1beta1_service_reference.py index 74d0067a07..cec0b7acd9 100644 --- a/kubernetes/client/models/apiextensions_v1beta1_service_reference.py +++ b/kubernetes/client/models/apiextensions_v1beta1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ApiextensionsV1beta1ServiceReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class ApiextensionsV1beta1ServiceReference(object): 'port': 'port' } - def __init__(self, name=None, namespace=None, path=None, port=None): # noqa: E501 + def __init__(self, name=None, namespace=None, path=None, port=None, local_vars_configuration=None): # noqa: E501 """ApiextensionsV1beta1ServiceReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._namespace = None @@ -80,7 +85,7 @@ def name(self, name): :param name: The name of this ApiextensionsV1beta1ServiceReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -105,7 +110,7 @@ def namespace(self, namespace): :param namespace: The namespace of this ApiextensionsV1beta1ServiceReference. # noqa: E501 :type: str """ - if namespace is None: + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, ApiextensionsV1beta1ServiceReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiextensionsV1beta1ServiceReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py b/kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py index 98c49ae3d5..5e77ba4a3d 100644 --- a/kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py +++ b/kubernetes/client/models/apiextensions_v1beta1_webhook_client_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ApiextensionsV1beta1WebhookClientConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class ApiextensionsV1beta1WebhookClientConfig(object): 'url': 'url' } - def __init__(self, ca_bundle=None, service=None, url=None): # noqa: E501 + def __init__(self, ca_bundle=None, service=None, url=None, local_vars_configuration=None): # noqa: E501 """ApiextensionsV1beta1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ca_bundle = None self._service = None @@ -77,7 +82,8 @@ def ca_bundle(self, ca_bundle): :param ca_bundle: The ca_bundle of this ApiextensionsV1beta1WebhookClientConfig. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501 raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @@ -163,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, ApiextensionsV1beta1WebhookClientConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiextensionsV1beta1WebhookClientConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apiregistration_v1_service_reference.py b/kubernetes/client/models/apiregistration_v1_service_reference.py index 3cdb89b5a1..beb22a5e48 100644 --- a/kubernetes/client/models/apiregistration_v1_service_reference.py +++ b/kubernetes/client/models/apiregistration_v1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ApiregistrationV1ServiceReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class ApiregistrationV1ServiceReference(object): 'port': 'port' } - def __init__(self, name=None, namespace=None, port=None): # noqa: E501 + def __init__(self, name=None, namespace=None, port=None, local_vars_configuration=None): # noqa: E501 """ApiregistrationV1ServiceReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._namespace = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, ApiregistrationV1ServiceReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiregistrationV1ServiceReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apiregistration_v1beta1_service_reference.py b/kubernetes/client/models/apiregistration_v1beta1_service_reference.py index 963ca07d99..603c6b6eb4 100644 --- a/kubernetes/client/models/apiregistration_v1beta1_service_reference.py +++ b/kubernetes/client/models/apiregistration_v1beta1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ApiregistrationV1beta1ServiceReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class ApiregistrationV1beta1ServiceReference(object): 'port': 'port' } - def __init__(self, name=None, namespace=None, port=None): # noqa: E501 + def __init__(self, name=None, namespace=None, port=None, local_vars_configuration=None): # noqa: E501 """ApiregistrationV1beta1ServiceReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._namespace = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, ApiregistrationV1beta1ServiceReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ApiregistrationV1beta1ServiceReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_deployment.py b/kubernetes/client/models/apps_v1beta1_deployment.py index 950b524dcf..d544d51282 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment.py +++ b/kubernetes/client/models/apps_v1beta1_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1Deployment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class AppsV1beta1Deployment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1Deployment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1Deployment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1Deployment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_deployment_condition.py b/kubernetes/client/models/apps_v1beta1_deployment_condition.py index 4001e8d151..c0bf0f6844 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_condition.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1DeploymentCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class AppsV1beta1DeploymentCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1DeploymentCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._last_update_time = None @@ -182,7 +187,7 @@ def status(self, status): :param status: The status of this AppsV1beta1DeploymentCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -207,7 +212,7 @@ def type(self, type): :param type: The type of this AppsV1beta1DeploymentCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1DeploymentCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1DeploymentCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_deployment_list.py b/kubernetes/client/models/apps_v1beta1_deployment_list.py index a06b7f5191..0ffbd17269 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_list.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1DeploymentList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class AppsV1beta1DeploymentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1DeploymentList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this AppsV1beta1DeploymentList. # noqa: E501 :type: list[AppsV1beta1Deployment] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1DeploymentList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1DeploymentList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_deployment_rollback.py b/kubernetes/client/models/apps_v1beta1_deployment_rollback.py index 44b3d6e869..c652da7d0b 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_rollback.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_rollback.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1DeploymentRollback(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class AppsV1beta1DeploymentRollback(object): 'updated_annotations': 'updatedAnnotations' } - def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1DeploymentRollback - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -131,7 +136,7 @@ def name(self, name): :param name: The name of this AppsV1beta1DeploymentRollback. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -154,7 +159,7 @@ def rollback_to(self, rollback_to): :param rollback_to: The rollback_to of this AppsV1beta1DeploymentRollback. # noqa: E501 :type: AppsV1beta1RollbackConfig """ - if rollback_to is None: + if self.local_vars_configuration.client_side_validation and rollback_to is None: # noqa: E501 raise ValueError("Invalid value for `rollback_to`, must not be `None`") # noqa: E501 self._rollback_to = rollback_to @@ -219,8 +224,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1DeploymentRollback): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1DeploymentRollback): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_deployment_spec.py b/kubernetes/client/models/apps_v1beta1_deployment_spec.py index 3c83da5578..09c7069de1 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_spec.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1DeploymentSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -54,8 +56,11 @@ class AppsV1beta1DeploymentSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1DeploymentSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._paused = None @@ -282,7 +287,7 @@ def template(self, template): :param template: The template of this AppsV1beta1DeploymentSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -324,8 +329,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1DeploymentSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1DeploymentSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_deployment_status.py b/kubernetes/client/models/apps_v1beta1_deployment_status.py index 011835fcf1..d685443938 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_status.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1DeploymentStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class AppsV1beta1DeploymentStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): # noqa: E501 + def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1DeploymentStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._available_replicas = None self._collision_count = None @@ -303,8 +308,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1DeploymentStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1DeploymentStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_deployment_strategy.py b/kubernetes/client/models/apps_v1beta1_deployment_strategy.py index 1cdcf7a77e..4a3850339a 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_strategy.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1DeploymentStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class AppsV1beta1DeploymentStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1DeploymentStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1DeploymentStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1DeploymentStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_rollback_config.py b/kubernetes/client/models/apps_v1beta1_rollback_config.py index f9b3951be6..3d16e83fc9 100644 --- a/kubernetes/client/models/apps_v1beta1_rollback_config.py +++ b/kubernetes/client/models/apps_v1beta1_rollback_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1RollbackConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class AppsV1beta1RollbackConfig(object): 'revision': 'revision' } - def __init__(self, revision=None): # noqa: E501 + def __init__(self, revision=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1RollbackConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._revision = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1RollbackConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1RollbackConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py b/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py index a342dc37e1..7540904ded 100644 --- a/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py +++ b/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1RollingUpdateDeployment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class AppsV1beta1RollingUpdateDeployment(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_surge=None, max_unavailable=None): # noqa: E501 + def __init__(self, max_surge=None, max_unavailable=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1RollingUpdateDeployment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_surge = None self._max_unavailable = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1RollingUpdateDeployment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1RollingUpdateDeployment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_scale.py b/kubernetes/client/models/apps_v1beta1_scale.py index b34b9c6c67..3ed78ccd4c 100644 --- a/kubernetes/client/models/apps_v1beta1_scale.py +++ b/kubernetes/client/models/apps_v1beta1_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1Scale(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class AppsV1beta1Scale(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1Scale - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1Scale): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1Scale): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_scale_spec.py b/kubernetes/client/models/apps_v1beta1_scale_spec.py index 299b93fbcb..a5664a165b 100644 --- a/kubernetes/client/models/apps_v1beta1_scale_spec.py +++ b/kubernetes/client/models/apps_v1beta1_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1ScaleSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class AppsV1beta1ScaleSpec(object): 'replicas': 'replicas' } - def __init__(self, replicas=None): # noqa: E501 + def __init__(self, replicas=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1ScaleSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._replicas = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1ScaleSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1ScaleSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/apps_v1beta1_scale_status.py b/kubernetes/client/models/apps_v1beta1_scale_status.py index 0d7eef5df6..8f93651461 100644 --- a/kubernetes/client/models/apps_v1beta1_scale_status.py +++ b/kubernetes/client/models/apps_v1beta1_scale_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class AppsV1beta1ScaleStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class AppsV1beta1ScaleStatus(object): 'target_selector': 'targetSelector' } - def __init__(self, replicas=None, selector=None, target_selector=None): # noqa: E501 + def __init__(self, replicas=None, selector=None, target_selector=None, local_vars_configuration=None): # noqa: E501 """AppsV1beta1ScaleStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._replicas = None self._selector = None @@ -76,7 +81,7 @@ def replicas(self, replicas): :param replicas: The replicas of this AppsV1beta1ScaleStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, AppsV1beta1ScaleStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, AppsV1beta1ScaleStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py b/kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py index e9b042bb93..ccf52259da 100644 --- a/kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py +++ b/kubernetes/client/models/extensions_v1beta1_allowed_csi_driver.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1AllowedCSIDriver(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class ExtensionsV1beta1AllowedCSIDriver(object): 'name': 'name' } - def __init__(self, name=None): # noqa: E501 + def __init__(self, name=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1AllowedCSIDriver - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self.discriminator = None @@ -66,7 +71,7 @@ def name(self, name): :param name: The name of this ExtensionsV1beta1AllowedCSIDriver. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1AllowedCSIDriver): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1AllowedCSIDriver): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_allowed_flex_volume.py b/kubernetes/client/models/extensions_v1beta1_allowed_flex_volume.py index 748bc16614..9d00858f43 100644 --- a/kubernetes/client/models/extensions_v1beta1_allowed_flex_volume.py +++ b/kubernetes/client/models/extensions_v1beta1_allowed_flex_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1AllowedFlexVolume(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class ExtensionsV1beta1AllowedFlexVolume(object): 'driver': 'driver' } - def __init__(self, driver=None): # noqa: E501 + def __init__(self, driver=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1AllowedFlexVolume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._driver = None self.discriminator = None @@ -66,7 +71,7 @@ def driver(self, driver): :param driver: The driver of this ExtensionsV1beta1AllowedFlexVolume. # noqa: E501 :type: str """ - if driver is None: + if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1AllowedFlexVolume): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1AllowedFlexVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_allowed_host_path.py b/kubernetes/client/models/extensions_v1beta1_allowed_host_path.py index 86c573eba9..e108c2ed51 100644 --- a/kubernetes/client/models/extensions_v1beta1_allowed_host_path.py +++ b/kubernetes/client/models/extensions_v1beta1_allowed_host_path.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1AllowedHostPath(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1AllowedHostPath(object): 'read_only': 'readOnly' } - def __init__(self, path_prefix=None, read_only=None): # noqa: E501 + def __init__(self, path_prefix=None, read_only=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1AllowedHostPath - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._path_prefix = None self._read_only = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1AllowedHostPath): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1AllowedHostPath): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_deployment.py b/kubernetes/client/models/extensions_v1beta1_deployment.py index 22d47ecb5c..f329ea33b3 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1Deployment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class ExtensionsV1beta1Deployment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1Deployment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1Deployment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1Deployment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_condition.py b/kubernetes/client/models/extensions_v1beta1_deployment_condition.py index e5cc0db5bc..8e956b812e 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_condition.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1DeploymentCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class ExtensionsV1beta1DeploymentCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1DeploymentCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._last_update_time = None @@ -182,7 +187,7 @@ def status(self, status): :param status: The status of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -207,7 +212,7 @@ def type(self, type): :param type: The type of this ExtensionsV1beta1DeploymentCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1DeploymentCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1DeploymentCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_list.py b/kubernetes/client/models/extensions_v1beta1_deployment_list.py index 8580ba550d..82389f5837 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_list.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1DeploymentList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class ExtensionsV1beta1DeploymentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1DeploymentList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this ExtensionsV1beta1DeploymentList. # noqa: E501 :type: list[ExtensionsV1beta1Deployment] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1DeploymentList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1DeploymentList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py b/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py index 2fbc4ca331..10f76771e6 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_rollback.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1DeploymentRollback(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class ExtensionsV1beta1DeploymentRollback(object): 'updated_annotations': 'updatedAnnotations' } - def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, name=None, rollback_to=None, updated_annotations=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1DeploymentRollback - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -131,7 +136,7 @@ def name(self, name): :param name: The name of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -154,7 +159,7 @@ def rollback_to(self, rollback_to): :param rollback_to: The rollback_to of this ExtensionsV1beta1DeploymentRollback. # noqa: E501 :type: ExtensionsV1beta1RollbackConfig """ - if rollback_to is None: + if self.local_vars_configuration.client_side_validation and rollback_to is None: # noqa: E501 raise ValueError("Invalid value for `rollback_to`, must not be `None`") # noqa: E501 self._rollback_to = rollback_to @@ -219,8 +224,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1DeploymentRollback): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1DeploymentRollback): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_spec.py b/kubernetes/client/models/extensions_v1beta1_deployment_spec.py index e90dcb9049..ca3ac748fb 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_spec.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1DeploymentSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -54,8 +56,11 @@ class ExtensionsV1beta1DeploymentSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, rollback_to=None, selector=None, strategy=None, template=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1DeploymentSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._paused = None @@ -282,7 +287,7 @@ def template(self, template): :param template: The template of this ExtensionsV1beta1DeploymentSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -324,8 +329,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1DeploymentSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1DeploymentSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_status.py b/kubernetes/client/models/extensions_v1beta1_deployment_status.py index 3c68e66df7..d94b35bbaf 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_status.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1DeploymentStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class ExtensionsV1beta1DeploymentStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): # noqa: E501 + def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1DeploymentStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._available_replicas = None self._collision_count = None @@ -303,8 +308,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1DeploymentStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1DeploymentStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py b/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py index d765dc9084..737482f67f 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1DeploymentStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1DeploymentStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1DeploymentStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1DeploymentStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1DeploymentStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_fs_group_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_fs_group_strategy_options.py index ca28fe73ff..2f264e1c41 100644 --- a/kubernetes/client/models/extensions_v1beta1_fs_group_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_fs_group_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1FSGroupStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1FSGroupStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): # noqa: E501 + def __init__(self, ranges=None, rule=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1FSGroupStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ranges = None self._rule = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1FSGroupStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1FSGroupStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_host_port_range.py b/kubernetes/client/models/extensions_v1beta1_host_port_range.py index 75ff1e9615..97c28dd62f 100644 --- a/kubernetes/client/models/extensions_v1beta1_host_port_range.py +++ b/kubernetes/client/models/extensions_v1beta1_host_port_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1HostPortRange(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1HostPortRange(object): 'min': 'min' } - def __init__(self, max=None, min=None): # noqa: E501 + def __init__(self, max=None, min=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1HostPortRange - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max = None self._min = None @@ -70,7 +75,7 @@ def max(self, max): :param max: The max of this ExtensionsV1beta1HostPortRange. # noqa: E501 :type: int """ - if max is None: + if self.local_vars_configuration.client_side_validation and max is None: # noqa: E501 raise ValueError("Invalid value for `max`, must not be `None`") # noqa: E501 self._max = max @@ -95,7 +100,7 @@ def min(self, min): :param min: The min of this ExtensionsV1beta1HostPortRange. # noqa: E501 :type: int """ - if min is None: + if self.local_vars_configuration.client_side_validation and min is None: # noqa: E501 raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501 self._min = min @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1HostPortRange): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1HostPortRange): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_http_ingress_path.py b/kubernetes/client/models/extensions_v1beta1_http_ingress_path.py index 295e7c1ae0..2545b40ce3 100644 --- a/kubernetes/client/models/extensions_v1beta1_http_ingress_path.py +++ b/kubernetes/client/models/extensions_v1beta1_http_ingress_path.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1HTTPIngressPath(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1HTTPIngressPath(object): 'path': 'path' } - def __init__(self, backend=None, path=None): # noqa: E501 + def __init__(self, backend=None, path=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1HTTPIngressPath - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._backend = None self._path = None @@ -69,7 +74,7 @@ def backend(self, backend): :param backend: The backend of this ExtensionsV1beta1HTTPIngressPath. # noqa: E501 :type: ExtensionsV1beta1IngressBackend """ - if backend is None: + if self.local_vars_configuration.client_side_validation and backend is None: # noqa: E501 raise ValueError("Invalid value for `backend`, must not be `None`") # noqa: E501 self._backend = backend @@ -134,8 +139,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1HTTPIngressPath): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1HTTPIngressPath): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_http_ingress_rule_value.py b/kubernetes/client/models/extensions_v1beta1_http_ingress_rule_value.py index fce6599723..8d874aaa34 100644 --- a/kubernetes/client/models/extensions_v1beta1_http_ingress_rule_value.py +++ b/kubernetes/client/models/extensions_v1beta1_http_ingress_rule_value.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1HTTPIngressRuleValue(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class ExtensionsV1beta1HTTPIngressRuleValue(object): 'paths': 'paths' } - def __init__(self, paths=None): # noqa: E501 + def __init__(self, paths=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1HTTPIngressRuleValue - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._paths = None self.discriminator = None @@ -66,7 +71,7 @@ def paths(self, paths): :param paths: The paths of this ExtensionsV1beta1HTTPIngressRuleValue. # noqa: E501 :type: list[ExtensionsV1beta1HTTPIngressPath] """ - if paths is None: + if self.local_vars_configuration.client_side_validation and paths is None: # noqa: E501 raise ValueError("Invalid value for `paths`, must not be `None`") # noqa: E501 self._paths = paths @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1HTTPIngressRuleValue): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1HTTPIngressRuleValue): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_id_range.py b/kubernetes/client/models/extensions_v1beta1_id_range.py index 3c106af7c2..82a27d7725 100644 --- a/kubernetes/client/models/extensions_v1beta1_id_range.py +++ b/kubernetes/client/models/extensions_v1beta1_id_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1IDRange(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1IDRange(object): 'min': 'min' } - def __init__(self, max=None, min=None): # noqa: E501 + def __init__(self, max=None, min=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1IDRange - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max = None self._min = None @@ -70,7 +75,7 @@ def max(self, max): :param max: The max of this ExtensionsV1beta1IDRange. # noqa: E501 :type: int """ - if max is None: + if self.local_vars_configuration.client_side_validation and max is None: # noqa: E501 raise ValueError("Invalid value for `max`, must not be `None`") # noqa: E501 self._max = max @@ -95,7 +100,7 @@ def min(self, min): :param min: The min of this ExtensionsV1beta1IDRange. # noqa: E501 :type: int """ - if min is None: + if self.local_vars_configuration.client_side_validation and min is None: # noqa: E501 raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501 self._min = min @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1IDRange): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1IDRange): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_ingress.py b/kubernetes/client/models/extensions_v1beta1_ingress.py index 9074d23077..18068a96c0 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1Ingress(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class ExtensionsV1beta1Ingress(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1Ingress - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1Ingress): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1Ingress): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_backend.py b/kubernetes/client/models/extensions_v1beta1_ingress_backend.py index 1f9895a596..b211f4bfa7 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_backend.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_backend.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1IngressBackend(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1IngressBackend(object): 'service_port': 'servicePort' } - def __init__(self, service_name=None, service_port=None): # noqa: E501 + def __init__(self, service_name=None, service_port=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1IngressBackend - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._service_name = None self._service_port = None @@ -70,7 +75,7 @@ def service_name(self, service_name): :param service_name: The service_name of this ExtensionsV1beta1IngressBackend. # noqa: E501 :type: str """ - if service_name is None: + if self.local_vars_configuration.client_side_validation and service_name is None: # noqa: E501 raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @@ -95,7 +100,7 @@ def service_port(self, service_port): :param service_port: The service_port of this ExtensionsV1beta1IngressBackend. # noqa: E501 :type: object """ - if service_port is None: + if self.local_vars_configuration.client_side_validation and service_port is None: # noqa: E501 raise ValueError("Invalid value for `service_port`, must not be `None`") # noqa: E501 self._service_port = service_port @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1IngressBackend): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1IngressBackend): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_list.py b/kubernetes/client/models/extensions_v1beta1_ingress_list.py index 4034ad292c..8275f36924 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_list.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1IngressList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class ExtensionsV1beta1IngressList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1IngressList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this ExtensionsV1beta1IngressList. # noqa: E501 :type: list[ExtensionsV1beta1Ingress] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1IngressList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1IngressList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_rule.py b/kubernetes/client/models/extensions_v1beta1_ingress_rule.py index 05dfebf86b..30c5ffa21d 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_rule.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1IngressRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1IngressRule(object): 'http': 'http' } - def __init__(self, host=None, http=None): # noqa: E501 + def __init__(self, host=None, http=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1IngressRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._host = None self._http = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1IngressRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1IngressRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_spec.py b/kubernetes/client/models/extensions_v1beta1_ingress_spec.py index d054235f03..776893d1ea 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_spec.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1IngressSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class ExtensionsV1beta1IngressSpec(object): 'tls': 'tls' } - def __init__(self, backend=None, rules=None, tls=None): # noqa: E501 + def __init__(self, backend=None, rules=None, tls=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1IngressSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._backend = None self._rules = None @@ -161,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1IngressSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1IngressSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_status.py b/kubernetes/client/models/extensions_v1beta1_ingress_status.py index 4ad02832fc..ffff4fcc4c 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_status.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1IngressStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class ExtensionsV1beta1IngressStatus(object): 'load_balancer': 'loadBalancer' } - def __init__(self, load_balancer=None): # noqa: E501 + def __init__(self, load_balancer=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1IngressStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._load_balancer = None self.discriminator = None @@ -105,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1IngressStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1IngressStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_ingress_tls.py b/kubernetes/client/models/extensions_v1beta1_ingress_tls.py index 640631e2c8..be946aa70d 100644 --- a/kubernetes/client/models/extensions_v1beta1_ingress_tls.py +++ b/kubernetes/client/models/extensions_v1beta1_ingress_tls.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1IngressTLS(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1IngressTLS(object): 'secret_name': 'secretName' } - def __init__(self, hosts=None, secret_name=None): # noqa: E501 + def __init__(self, hosts=None, secret_name=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1IngressTLS - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._hosts = None self._secret_name = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1IngressTLS): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1IngressTLS): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_pod_security_policy.py b/kubernetes/client/models/extensions_v1beta1_pod_security_policy.py index d179bb7d93..1a01f00893 100644 --- a/kubernetes/client/models/extensions_v1beta1_pod_security_policy.py +++ b/kubernetes/client/models/extensions_v1beta1_pod_security_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1PodSecurityPolicy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class ExtensionsV1beta1PodSecurityPolicy(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1PodSecurityPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1PodSecurityPolicy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1PodSecurityPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_pod_security_policy_list.py b/kubernetes/client/models/extensions_v1beta1_pod_security_policy_list.py index 4a34e08317..d8a741512a 100644 --- a/kubernetes/client/models/extensions_v1beta1_pod_security_policy_list.py +++ b/kubernetes/client/models/extensions_v1beta1_pod_security_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1PodSecurityPolicyList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class ExtensionsV1beta1PodSecurityPolicyList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1PodSecurityPolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this ExtensionsV1beta1PodSecurityPolicyList. # noqa: E501 :type: list[ExtensionsV1beta1PodSecurityPolicy] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1PodSecurityPolicyList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1PodSecurityPolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_pod_security_policy_spec.py b/kubernetes/client/models/extensions_v1beta1_pod_security_policy_spec.py index 980eccf134..12e5df5380 100644 --- a/kubernetes/client/models/extensions_v1beta1_pod_security_policy_spec.py +++ b/kubernetes/client/models/extensions_v1beta1_pod_security_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1PodSecurityPolicySpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -84,8 +86,11 @@ class ExtensionsV1beta1PodSecurityPolicySpec(object): 'volumes': 'volumes' } - def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, allowed_capabilities=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, default_add_capabilities=None, default_allow_privilege_escalation=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, runtime_class=None, se_linux=None, supplemental_groups=None, volumes=None): # noqa: E501 + def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, allowed_capabilities=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, default_add_capabilities=None, default_allow_privilege_escalation=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, runtime_class=None, se_linux=None, supplemental_groups=None, volumes=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1PodSecurityPolicySpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allow_privilege_escalation = None self._allowed_csi_drivers = None @@ -406,7 +411,7 @@ def fs_group(self, fs_group): :param fs_group: The fs_group of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: ExtensionsV1beta1FSGroupStrategyOptions """ - if fs_group is None: + if self.local_vars_configuration.client_side_validation and fs_group is None: # noqa: E501 raise ValueError("Invalid value for `fs_group`, must not be `None`") # noqa: E501 self._fs_group = fs_group @@ -611,7 +616,7 @@ def run_as_user(self, run_as_user): :param run_as_user: The run_as_user of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: ExtensionsV1beta1RunAsUserStrategyOptions """ - if run_as_user is None: + if self.local_vars_configuration.client_side_validation and run_as_user is None: # noqa: E501 raise ValueError("Invalid value for `run_as_user`, must not be `None`") # noqa: E501 self._run_as_user = run_as_user @@ -655,7 +660,7 @@ def se_linux(self, se_linux): :param se_linux: The se_linux of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: ExtensionsV1beta1SELinuxStrategyOptions """ - if se_linux is None: + if self.local_vars_configuration.client_side_validation and se_linux is None: # noqa: E501 raise ValueError("Invalid value for `se_linux`, must not be `None`") # noqa: E501 self._se_linux = se_linux @@ -678,7 +683,7 @@ def supplemental_groups(self, supplemental_groups): :param supplemental_groups: The supplemental_groups of this ExtensionsV1beta1PodSecurityPolicySpec. # noqa: E501 :type: ExtensionsV1beta1SupplementalGroupsStrategyOptions """ - if supplemental_groups is None: + if self.local_vars_configuration.client_side_validation and supplemental_groups is None: # noqa: E501 raise ValueError("Invalid value for `supplemental_groups`, must not be `None`") # noqa: E501 self._supplemental_groups = supplemental_groups @@ -743,8 +748,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1PodSecurityPolicySpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1PodSecurityPolicySpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_rollback_config.py b/kubernetes/client/models/extensions_v1beta1_rollback_config.py index 32b4f43515..4be545cfaf 100644 --- a/kubernetes/client/models/extensions_v1beta1_rollback_config.py +++ b/kubernetes/client/models/extensions_v1beta1_rollback_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1RollbackConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class ExtensionsV1beta1RollbackConfig(object): 'revision': 'revision' } - def __init__(self, revision=None): # noqa: E501 + def __init__(self, revision=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1RollbackConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._revision = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1RollbackConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1RollbackConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py b/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py index cdcd31316a..594d81eb5e 100644 --- a/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py +++ b/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1RollingUpdateDeployment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1RollingUpdateDeployment(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_surge=None, max_unavailable=None): # noqa: E501 + def __init__(self, max_surge=None, max_unavailable=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1RollingUpdateDeployment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_surge = None self._max_unavailable = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1RollingUpdateDeployment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1RollingUpdateDeployment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_run_as_group_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_run_as_group_strategy_options.py index 85a56f946b..fde1c36a7b 100644 --- a/kubernetes/client/models/extensions_v1beta1_run_as_group_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_run_as_group_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1RunAsGroupStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1RunAsGroupStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): # noqa: E501 + def __init__(self, ranges=None, rule=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1RunAsGroupStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ranges = None self._rule = None @@ -94,7 +99,7 @@ def rule(self, rule): :param rule: The rule of this ExtensionsV1beta1RunAsGroupStrategyOptions. # noqa: E501 :type: str """ - if rule is None: + if self.local_vars_configuration.client_side_validation and rule is None: # noqa: E501 raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1RunAsGroupStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1RunAsGroupStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_run_as_user_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_run_as_user_strategy_options.py index 6b668fd595..6f477da5ec 100644 --- a/kubernetes/client/models/extensions_v1beta1_run_as_user_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_run_as_user_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1RunAsUserStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1RunAsUserStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): # noqa: E501 + def __init__(self, ranges=None, rule=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1RunAsUserStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ranges = None self._rule = None @@ -94,7 +99,7 @@ def rule(self, rule): :param rule: The rule of this ExtensionsV1beta1RunAsUserStrategyOptions. # noqa: E501 :type: str """ - if rule is None: + if self.local_vars_configuration.client_side_validation and rule is None: # noqa: E501 raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1RunAsUserStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1RunAsUserStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_runtime_class_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_runtime_class_strategy_options.py index 5397c62087..b6c6147dbd 100644 --- a/kubernetes/client/models/extensions_v1beta1_runtime_class_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_runtime_class_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1RuntimeClassStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1RuntimeClassStrategyOptions(object): 'default_runtime_class_name': 'defaultRuntimeClassName' } - def __init__(self, allowed_runtime_class_names=None, default_runtime_class_name=None): # noqa: E501 + def __init__(self, allowed_runtime_class_names=None, default_runtime_class_name=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1RuntimeClassStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allowed_runtime_class_names = None self._default_runtime_class_name = None @@ -71,7 +76,7 @@ def allowed_runtime_class_names(self, allowed_runtime_class_names): :param allowed_runtime_class_names: The allowed_runtime_class_names of this ExtensionsV1beta1RuntimeClassStrategyOptions. # noqa: E501 :type: list[str] """ - if allowed_runtime_class_names is None: + if self.local_vars_configuration.client_side_validation and allowed_runtime_class_names is None: # noqa: E501 raise ValueError("Invalid value for `allowed_runtime_class_names`, must not be `None`") # noqa: E501 self._allowed_runtime_class_names = allowed_runtime_class_names @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1RuntimeClassStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1RuntimeClassStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_scale.py b/kubernetes/client/models/extensions_v1beta1_scale.py index 79189c65c4..8512b9b798 100644 --- a/kubernetes/client/models/extensions_v1beta1_scale.py +++ b/kubernetes/client/models/extensions_v1beta1_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1Scale(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class ExtensionsV1beta1Scale(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1Scale - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1Scale): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1Scale): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_scale_spec.py b/kubernetes/client/models/extensions_v1beta1_scale_spec.py index 59f0f3f9e0..b65a77723c 100644 --- a/kubernetes/client/models/extensions_v1beta1_scale_spec.py +++ b/kubernetes/client/models/extensions_v1beta1_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1ScaleSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class ExtensionsV1beta1ScaleSpec(object): 'replicas': 'replicas' } - def __init__(self, replicas=None): # noqa: E501 + def __init__(self, replicas=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1ScaleSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._replicas = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1ScaleSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1ScaleSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_scale_status.py b/kubernetes/client/models/extensions_v1beta1_scale_status.py index 80b5aba169..30e706fdd2 100644 --- a/kubernetes/client/models/extensions_v1beta1_scale_status.py +++ b/kubernetes/client/models/extensions_v1beta1_scale_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1ScaleStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class ExtensionsV1beta1ScaleStatus(object): 'target_selector': 'targetSelector' } - def __init__(self, replicas=None, selector=None, target_selector=None): # noqa: E501 + def __init__(self, replicas=None, selector=None, target_selector=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1ScaleStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._replicas = None self._selector = None @@ -76,7 +81,7 @@ def replicas(self, replicas): :param replicas: The replicas of this ExtensionsV1beta1ScaleStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1ScaleStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1ScaleStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_se_linux_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_se_linux_strategy_options.py index f1bcbed86b..b85b0a03c6 100644 --- a/kubernetes/client/models/extensions_v1beta1_se_linux_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_se_linux_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1SELinuxStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1SELinuxStrategyOptions(object): 'se_linux_options': 'seLinuxOptions' } - def __init__(self, rule=None, se_linux_options=None): # noqa: E501 + def __init__(self, rule=None, se_linux_options=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1SELinuxStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rule = None self._se_linux_options = None @@ -71,7 +76,7 @@ def rule(self, rule): :param rule: The rule of this ExtensionsV1beta1SELinuxStrategyOptions. # noqa: E501 :type: str """ - if rule is None: + if self.local_vars_configuration.client_side_validation and rule is None: # noqa: E501 raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule @@ -134,8 +139,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1SELinuxStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1SELinuxStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/extensions_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/client/models/extensions_v1beta1_supplemental_groups_strategy_options.py index d06194c98c..3a047c4375 100644 --- a/kubernetes/client/models/extensions_v1beta1_supplemental_groups_strategy_options.py +++ b/kubernetes/client/models/extensions_v1beta1_supplemental_groups_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class ExtensionsV1beta1SupplementalGroupsStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class ExtensionsV1beta1SupplementalGroupsStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): # noqa: E501 + def __init__(self, ranges=None, rule=None, local_vars_configuration=None): # noqa: E501 """ExtensionsV1beta1SupplementalGroupsStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ranges = None self._rule = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, ExtensionsV1beta1SupplementalGroupsStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, ExtensionsV1beta1SupplementalGroupsStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/networking_v1beta1_http_ingress_path.py b/kubernetes/client/models/networking_v1beta1_http_ingress_path.py index 15d96dc2d6..54efc9b971 100644 --- a/kubernetes/client/models/networking_v1beta1_http_ingress_path.py +++ b/kubernetes/client/models/networking_v1beta1_http_ingress_path.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class NetworkingV1beta1HTTPIngressPath(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class NetworkingV1beta1HTTPIngressPath(object): 'path': 'path' } - def __init__(self, backend=None, path=None): # noqa: E501 + def __init__(self, backend=None, path=None, local_vars_configuration=None): # noqa: E501 """NetworkingV1beta1HTTPIngressPath - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._backend = None self._path = None @@ -69,7 +74,7 @@ def backend(self, backend): :param backend: The backend of this NetworkingV1beta1HTTPIngressPath. # noqa: E501 :type: NetworkingV1beta1IngressBackend """ - if backend is None: + if self.local_vars_configuration.client_side_validation and backend is None: # noqa: E501 raise ValueError("Invalid value for `backend`, must not be `None`") # noqa: E501 self._backend = backend @@ -134,8 +139,11 @@ def __eq__(self, other): if not isinstance(other, NetworkingV1beta1HTTPIngressPath): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NetworkingV1beta1HTTPIngressPath): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/networking_v1beta1_http_ingress_rule_value.py b/kubernetes/client/models/networking_v1beta1_http_ingress_rule_value.py index ffe5d74110..9f78f3f630 100644 --- a/kubernetes/client/models/networking_v1beta1_http_ingress_rule_value.py +++ b/kubernetes/client/models/networking_v1beta1_http_ingress_rule_value.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class NetworkingV1beta1HTTPIngressRuleValue(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class NetworkingV1beta1HTTPIngressRuleValue(object): 'paths': 'paths' } - def __init__(self, paths=None): # noqa: E501 + def __init__(self, paths=None, local_vars_configuration=None): # noqa: E501 """NetworkingV1beta1HTTPIngressRuleValue - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._paths = None self.discriminator = None @@ -66,7 +71,7 @@ def paths(self, paths): :param paths: The paths of this NetworkingV1beta1HTTPIngressRuleValue. # noqa: E501 :type: list[NetworkingV1beta1HTTPIngressPath] """ - if paths is None: + if self.local_vars_configuration.client_side_validation and paths is None: # noqa: E501 raise ValueError("Invalid value for `paths`, must not be `None`") # noqa: E501 self._paths = paths @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, NetworkingV1beta1HTTPIngressRuleValue): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NetworkingV1beta1HTTPIngressRuleValue): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/networking_v1beta1_ingress.py b/kubernetes/client/models/networking_v1beta1_ingress.py index 325d81bfb5..a734541332 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress.py +++ b/kubernetes/client/models/networking_v1beta1_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class NetworkingV1beta1Ingress(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class NetworkingV1beta1Ingress(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """NetworkingV1beta1Ingress - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, NetworkingV1beta1Ingress): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NetworkingV1beta1Ingress): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/networking_v1beta1_ingress_backend.py b/kubernetes/client/models/networking_v1beta1_ingress_backend.py index 1d865aa7ea..23f7b59ff7 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_backend.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_backend.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class NetworkingV1beta1IngressBackend(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class NetworkingV1beta1IngressBackend(object): 'service_port': 'servicePort' } - def __init__(self, service_name=None, service_port=None): # noqa: E501 + def __init__(self, service_name=None, service_port=None, local_vars_configuration=None): # noqa: E501 """NetworkingV1beta1IngressBackend - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._service_name = None self._service_port = None @@ -70,7 +75,7 @@ def service_name(self, service_name): :param service_name: The service_name of this NetworkingV1beta1IngressBackend. # noqa: E501 :type: str """ - if service_name is None: + if self.local_vars_configuration.client_side_validation and service_name is None: # noqa: E501 raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @@ -95,7 +100,7 @@ def service_port(self, service_port): :param service_port: The service_port of this NetworkingV1beta1IngressBackend. # noqa: E501 :type: object """ - if service_port is None: + if self.local_vars_configuration.client_side_validation and service_port is None: # noqa: E501 raise ValueError("Invalid value for `service_port`, must not be `None`") # noqa: E501 self._service_port = service_port @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, NetworkingV1beta1IngressBackend): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NetworkingV1beta1IngressBackend): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/networking_v1beta1_ingress_list.py b/kubernetes/client/models/networking_v1beta1_ingress_list.py index 60cdb033a8..a66e2b55af 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_list.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class NetworkingV1beta1IngressList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class NetworkingV1beta1IngressList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """NetworkingV1beta1IngressList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this NetworkingV1beta1IngressList. # noqa: E501 :type: list[NetworkingV1beta1Ingress] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, NetworkingV1beta1IngressList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NetworkingV1beta1IngressList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/networking_v1beta1_ingress_rule.py b/kubernetes/client/models/networking_v1beta1_ingress_rule.py index cd6d0afe0f..1726c1e0e6 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_rule.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class NetworkingV1beta1IngressRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class NetworkingV1beta1IngressRule(object): 'http': 'http' } - def __init__(self, host=None, http=None): # noqa: E501 + def __init__(self, host=None, http=None, local_vars_configuration=None): # noqa: E501 """NetworkingV1beta1IngressRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._host = None self._http = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, NetworkingV1beta1IngressRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NetworkingV1beta1IngressRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/networking_v1beta1_ingress_spec.py b/kubernetes/client/models/networking_v1beta1_ingress_spec.py index 9a6c707765..cde316ddbf 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_spec.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class NetworkingV1beta1IngressSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class NetworkingV1beta1IngressSpec(object): 'tls': 'tls' } - def __init__(self, backend=None, rules=None, tls=None): # noqa: E501 + def __init__(self, backend=None, rules=None, tls=None, local_vars_configuration=None): # noqa: E501 """NetworkingV1beta1IngressSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._backend = None self._rules = None @@ -161,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, NetworkingV1beta1IngressSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NetworkingV1beta1IngressSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/networking_v1beta1_ingress_status.py b/kubernetes/client/models/networking_v1beta1_ingress_status.py index d1fcd94895..e100d47564 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_status.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class NetworkingV1beta1IngressStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class NetworkingV1beta1IngressStatus(object): 'load_balancer': 'loadBalancer' } - def __init__(self, load_balancer=None): # noqa: E501 + def __init__(self, load_balancer=None, local_vars_configuration=None): # noqa: E501 """NetworkingV1beta1IngressStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._load_balancer = None self.discriminator = None @@ -105,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, NetworkingV1beta1IngressStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NetworkingV1beta1IngressStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/networking_v1beta1_ingress_tls.py b/kubernetes/client/models/networking_v1beta1_ingress_tls.py index a91e01db57..8bc4457b01 100644 --- a/kubernetes/client/models/networking_v1beta1_ingress_tls.py +++ b/kubernetes/client/models/networking_v1beta1_ingress_tls.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class NetworkingV1beta1IngressTLS(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class NetworkingV1beta1IngressTLS(object): 'secret_name': 'secretName' } - def __init__(self, hosts=None, secret_name=None): # noqa: E501 + def __init__(self, hosts=None, secret_name=None, local_vars_configuration=None): # noqa: E501 """NetworkingV1beta1IngressTLS - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._hosts = None self._secret_name = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, NetworkingV1beta1IngressTLS): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, NetworkingV1beta1IngressTLS): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_allowed_csi_driver.py b/kubernetes/client/models/policy_v1beta1_allowed_csi_driver.py index d824394ea4..8082670d8e 100644 --- a/kubernetes/client/models/policy_v1beta1_allowed_csi_driver.py +++ b/kubernetes/client/models/policy_v1beta1_allowed_csi_driver.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1AllowedCSIDriver(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class PolicyV1beta1AllowedCSIDriver(object): 'name': 'name' } - def __init__(self, name=None): # noqa: E501 + def __init__(self, name=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1AllowedCSIDriver - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self.discriminator = None @@ -66,7 +71,7 @@ def name(self, name): :param name: The name of this PolicyV1beta1AllowedCSIDriver. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1AllowedCSIDriver): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1AllowedCSIDriver): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_allowed_flex_volume.py b/kubernetes/client/models/policy_v1beta1_allowed_flex_volume.py index 70a6177a84..0fbb2c7ef1 100644 --- a/kubernetes/client/models/policy_v1beta1_allowed_flex_volume.py +++ b/kubernetes/client/models/policy_v1beta1_allowed_flex_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1AllowedFlexVolume(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class PolicyV1beta1AllowedFlexVolume(object): 'driver': 'driver' } - def __init__(self, driver=None): # noqa: E501 + def __init__(self, driver=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1AllowedFlexVolume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._driver = None self.discriminator = None @@ -66,7 +71,7 @@ def driver(self, driver): :param driver: The driver of this PolicyV1beta1AllowedFlexVolume. # noqa: E501 :type: str """ - if driver is None: + if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1AllowedFlexVolume): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1AllowedFlexVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_allowed_host_path.py b/kubernetes/client/models/policy_v1beta1_allowed_host_path.py index cfb22407bd..842a5b4489 100644 --- a/kubernetes/client/models/policy_v1beta1_allowed_host_path.py +++ b/kubernetes/client/models/policy_v1beta1_allowed_host_path.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1AllowedHostPath(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class PolicyV1beta1AllowedHostPath(object): 'read_only': 'readOnly' } - def __init__(self, path_prefix=None, read_only=None): # noqa: E501 + def __init__(self, path_prefix=None, read_only=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1AllowedHostPath - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._path_prefix = None self._read_only = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1AllowedHostPath): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1AllowedHostPath): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_fs_group_strategy_options.py b/kubernetes/client/models/policy_v1beta1_fs_group_strategy_options.py index 31993083a6..430e90eca0 100644 --- a/kubernetes/client/models/policy_v1beta1_fs_group_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_fs_group_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1FSGroupStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class PolicyV1beta1FSGroupStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): # noqa: E501 + def __init__(self, ranges=None, rule=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1FSGroupStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ranges = None self._rule = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1FSGroupStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1FSGroupStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_host_port_range.py b/kubernetes/client/models/policy_v1beta1_host_port_range.py index d70c575c6d..ccbb414171 100644 --- a/kubernetes/client/models/policy_v1beta1_host_port_range.py +++ b/kubernetes/client/models/policy_v1beta1_host_port_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1HostPortRange(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class PolicyV1beta1HostPortRange(object): 'min': 'min' } - def __init__(self, max=None, min=None): # noqa: E501 + def __init__(self, max=None, min=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1HostPortRange - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max = None self._min = None @@ -70,7 +75,7 @@ def max(self, max): :param max: The max of this PolicyV1beta1HostPortRange. # noqa: E501 :type: int """ - if max is None: + if self.local_vars_configuration.client_side_validation and max is None: # noqa: E501 raise ValueError("Invalid value for `max`, must not be `None`") # noqa: E501 self._max = max @@ -95,7 +100,7 @@ def min(self, min): :param min: The min of this PolicyV1beta1HostPortRange. # noqa: E501 :type: int """ - if min is None: + if self.local_vars_configuration.client_side_validation and min is None: # noqa: E501 raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501 self._min = min @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1HostPortRange): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1HostPortRange): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_id_range.py b/kubernetes/client/models/policy_v1beta1_id_range.py index aeeb7dd215..eca0b1b8cc 100644 --- a/kubernetes/client/models/policy_v1beta1_id_range.py +++ b/kubernetes/client/models/policy_v1beta1_id_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1IDRange(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class PolicyV1beta1IDRange(object): 'min': 'min' } - def __init__(self, max=None, min=None): # noqa: E501 + def __init__(self, max=None, min=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1IDRange - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max = None self._min = None @@ -70,7 +75,7 @@ def max(self, max): :param max: The max of this PolicyV1beta1IDRange. # noqa: E501 :type: int """ - if max is None: + if self.local_vars_configuration.client_side_validation and max is None: # noqa: E501 raise ValueError("Invalid value for `max`, must not be `None`") # noqa: E501 self._max = max @@ -95,7 +100,7 @@ def min(self, min): :param min: The min of this PolicyV1beta1IDRange. # noqa: E501 :type: int """ - if min is None: + if self.local_vars_configuration.client_side_validation and min is None: # noqa: E501 raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501 self._min = min @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1IDRange): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1IDRange): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_pod_security_policy.py b/kubernetes/client/models/policy_v1beta1_pod_security_policy.py index fa873b881b..44eabde85e 100644 --- a/kubernetes/client/models/policy_v1beta1_pod_security_policy.py +++ b/kubernetes/client/models/policy_v1beta1_pod_security_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1PodSecurityPolicy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class PolicyV1beta1PodSecurityPolicy(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1PodSecurityPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1PodSecurityPolicy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1PodSecurityPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_pod_security_policy_list.py b/kubernetes/client/models/policy_v1beta1_pod_security_policy_list.py index 4dd3fbb6c0..32d1742b84 100644 --- a/kubernetes/client/models/policy_v1beta1_pod_security_policy_list.py +++ b/kubernetes/client/models/policy_v1beta1_pod_security_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1PodSecurityPolicyList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class PolicyV1beta1PodSecurityPolicyList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1PodSecurityPolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this PolicyV1beta1PodSecurityPolicyList. # noqa: E501 :type: list[PolicyV1beta1PodSecurityPolicy] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1PodSecurityPolicyList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1PodSecurityPolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_pod_security_policy_spec.py b/kubernetes/client/models/policy_v1beta1_pod_security_policy_spec.py index 73045b02fe..42845c7db1 100644 --- a/kubernetes/client/models/policy_v1beta1_pod_security_policy_spec.py +++ b/kubernetes/client/models/policy_v1beta1_pod_security_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1PodSecurityPolicySpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -84,8 +86,11 @@ class PolicyV1beta1PodSecurityPolicySpec(object): 'volumes': 'volumes' } - def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, allowed_capabilities=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, default_add_capabilities=None, default_allow_privilege_escalation=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, runtime_class=None, se_linux=None, supplemental_groups=None, volumes=None): # noqa: E501 + def __init__(self, allow_privilege_escalation=None, allowed_csi_drivers=None, allowed_capabilities=None, allowed_flex_volumes=None, allowed_host_paths=None, allowed_proc_mount_types=None, allowed_unsafe_sysctls=None, default_add_capabilities=None, default_allow_privilege_escalation=None, forbidden_sysctls=None, fs_group=None, host_ipc=None, host_network=None, host_pid=None, host_ports=None, privileged=None, read_only_root_filesystem=None, required_drop_capabilities=None, run_as_group=None, run_as_user=None, runtime_class=None, se_linux=None, supplemental_groups=None, volumes=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1PodSecurityPolicySpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allow_privilege_escalation = None self._allowed_csi_drivers = None @@ -406,7 +411,7 @@ def fs_group(self, fs_group): :param fs_group: The fs_group of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: PolicyV1beta1FSGroupStrategyOptions """ - if fs_group is None: + if self.local_vars_configuration.client_side_validation and fs_group is None: # noqa: E501 raise ValueError("Invalid value for `fs_group`, must not be `None`") # noqa: E501 self._fs_group = fs_group @@ -611,7 +616,7 @@ def run_as_user(self, run_as_user): :param run_as_user: The run_as_user of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: PolicyV1beta1RunAsUserStrategyOptions """ - if run_as_user is None: + if self.local_vars_configuration.client_side_validation and run_as_user is None: # noqa: E501 raise ValueError("Invalid value for `run_as_user`, must not be `None`") # noqa: E501 self._run_as_user = run_as_user @@ -655,7 +660,7 @@ def se_linux(self, se_linux): :param se_linux: The se_linux of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: PolicyV1beta1SELinuxStrategyOptions """ - if se_linux is None: + if self.local_vars_configuration.client_side_validation and se_linux is None: # noqa: E501 raise ValueError("Invalid value for `se_linux`, must not be `None`") # noqa: E501 self._se_linux = se_linux @@ -678,7 +683,7 @@ def supplemental_groups(self, supplemental_groups): :param supplemental_groups: The supplemental_groups of this PolicyV1beta1PodSecurityPolicySpec. # noqa: E501 :type: PolicyV1beta1SupplementalGroupsStrategyOptions """ - if supplemental_groups is None: + if self.local_vars_configuration.client_side_validation and supplemental_groups is None: # noqa: E501 raise ValueError("Invalid value for `supplemental_groups`, must not be `None`") # noqa: E501 self._supplemental_groups = supplemental_groups @@ -743,8 +748,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1PodSecurityPolicySpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1PodSecurityPolicySpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_run_as_group_strategy_options.py b/kubernetes/client/models/policy_v1beta1_run_as_group_strategy_options.py index 2a5ef40df8..e53e71b2b2 100644 --- a/kubernetes/client/models/policy_v1beta1_run_as_group_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_run_as_group_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1RunAsGroupStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class PolicyV1beta1RunAsGroupStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): # noqa: E501 + def __init__(self, ranges=None, rule=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1RunAsGroupStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ranges = None self._rule = None @@ -94,7 +99,7 @@ def rule(self, rule): :param rule: The rule of this PolicyV1beta1RunAsGroupStrategyOptions. # noqa: E501 :type: str """ - if rule is None: + if self.local_vars_configuration.client_side_validation and rule is None: # noqa: E501 raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1RunAsGroupStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1RunAsGroupStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_run_as_user_strategy_options.py b/kubernetes/client/models/policy_v1beta1_run_as_user_strategy_options.py index 15fa4b56ce..fdedcb3957 100644 --- a/kubernetes/client/models/policy_v1beta1_run_as_user_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_run_as_user_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1RunAsUserStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class PolicyV1beta1RunAsUserStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): # noqa: E501 + def __init__(self, ranges=None, rule=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1RunAsUserStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ranges = None self._rule = None @@ -94,7 +99,7 @@ def rule(self, rule): :param rule: The rule of this PolicyV1beta1RunAsUserStrategyOptions. # noqa: E501 :type: str """ - if rule is None: + if self.local_vars_configuration.client_side_validation and rule is None: # noqa: E501 raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1RunAsUserStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1RunAsUserStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_runtime_class_strategy_options.py b/kubernetes/client/models/policy_v1beta1_runtime_class_strategy_options.py index aefab3b479..10c502a4e7 100644 --- a/kubernetes/client/models/policy_v1beta1_runtime_class_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_runtime_class_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1RuntimeClassStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class PolicyV1beta1RuntimeClassStrategyOptions(object): 'default_runtime_class_name': 'defaultRuntimeClassName' } - def __init__(self, allowed_runtime_class_names=None, default_runtime_class_name=None): # noqa: E501 + def __init__(self, allowed_runtime_class_names=None, default_runtime_class_name=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1RuntimeClassStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allowed_runtime_class_names = None self._default_runtime_class_name = None @@ -71,7 +76,7 @@ def allowed_runtime_class_names(self, allowed_runtime_class_names): :param allowed_runtime_class_names: The allowed_runtime_class_names of this PolicyV1beta1RuntimeClassStrategyOptions. # noqa: E501 :type: list[str] """ - if allowed_runtime_class_names is None: + if self.local_vars_configuration.client_side_validation and allowed_runtime_class_names is None: # noqa: E501 raise ValueError("Invalid value for `allowed_runtime_class_names`, must not be `None`") # noqa: E501 self._allowed_runtime_class_names = allowed_runtime_class_names @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1RuntimeClassStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1RuntimeClassStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_se_linux_strategy_options.py b/kubernetes/client/models/policy_v1beta1_se_linux_strategy_options.py index 6e4f0b8ef0..6c4f265d58 100644 --- a/kubernetes/client/models/policy_v1beta1_se_linux_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_se_linux_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1SELinuxStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class PolicyV1beta1SELinuxStrategyOptions(object): 'se_linux_options': 'seLinuxOptions' } - def __init__(self, rule=None, se_linux_options=None): # noqa: E501 + def __init__(self, rule=None, se_linux_options=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1SELinuxStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rule = None self._se_linux_options = None @@ -71,7 +76,7 @@ def rule(self, rule): :param rule: The rule of this PolicyV1beta1SELinuxStrategyOptions. # noqa: E501 :type: str """ - if rule is None: + if self.local_vars_configuration.client_side_validation and rule is None: # noqa: E501 raise ValueError("Invalid value for `rule`, must not be `None`") # noqa: E501 self._rule = rule @@ -134,8 +139,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1SELinuxStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1SELinuxStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/policy_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/client/models/policy_v1beta1_supplemental_groups_strategy_options.py index cd14885a70..7c6e5592a4 100644 --- a/kubernetes/client/models/policy_v1beta1_supplemental_groups_strategy_options.py +++ b/kubernetes/client/models/policy_v1beta1_supplemental_groups_strategy_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class PolicyV1beta1SupplementalGroupsStrategyOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class PolicyV1beta1SupplementalGroupsStrategyOptions(object): 'rule': 'rule' } - def __init__(self, ranges=None, rule=None): # noqa: E501 + def __init__(self, ranges=None, rule=None, local_vars_configuration=None): # noqa: E501 """PolicyV1beta1SupplementalGroupsStrategyOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ranges = None self._rule = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, PolicyV1beta1SupplementalGroupsStrategyOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, PolicyV1beta1SupplementalGroupsStrategyOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_affinity.py b/kubernetes/client/models/v1_affinity.py index 7df98c3ce4..523612d360 100644 --- a/kubernetes/client/models/v1_affinity.py +++ b/kubernetes/client/models/v1_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Affinity(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1Affinity(object): 'pod_anti_affinity': 'podAntiAffinity' } - def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None): # noqa: E501 + def __init__(self, node_affinity=None, pod_affinity=None, pod_anti_affinity=None, local_vars_configuration=None): # noqa: E501 """V1Affinity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._node_affinity = None self._pod_affinity = None @@ -157,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, V1Affinity): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Affinity): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_aggregation_rule.py b/kubernetes/client/models/v1_aggregation_rule.py index 3ef2e12bdb..8864b4aaa9 100644 --- a/kubernetes/client/models/v1_aggregation_rule.py +++ b/kubernetes/client/models/v1_aggregation_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1AggregationRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1AggregationRule(object): 'cluster_role_selectors': 'clusterRoleSelectors' } - def __init__(self, cluster_role_selectors=None): # noqa: E501 + def __init__(self, cluster_role_selectors=None, local_vars_configuration=None): # noqa: E501 """V1AggregationRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._cluster_role_selectors = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1AggregationRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1AggregationRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_group.py b/kubernetes/client/models/v1_api_group.py index fb44056ef8..2769c22e0f 100644 --- a/kubernetes/client/models/v1_api_group.py +++ b/kubernetes/client/models/v1_api_group.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIGroup(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1APIGroup(object): 'versions': 'versions' } - def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, name=None, preferred_version=None, server_address_by_client_cid_rs=None, versions=None, local_vars_configuration=None): # noqa: E501 """V1APIGroup - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -136,7 +141,7 @@ def name(self, name): :param name: The name of this V1APIGroup. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -205,7 +210,7 @@ def versions(self, versions): :param versions: The versions of this V1APIGroup. # noqa: E501 :type: list[V1GroupVersionForDiscovery] """ - if versions is None: + if self.local_vars_configuration.client_side_validation and versions is None: # noqa: E501 raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501 self._versions = versions @@ -247,8 +252,11 @@ def __eq__(self, other): if not isinstance(other, V1APIGroup): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIGroup): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_group_list.py b/kubernetes/client/models/v1_api_group_list.py index 28956d4aaa..a47827184d 100644 --- a/kubernetes/client/models/v1_api_group_list.py +++ b/kubernetes/client/models/v1_api_group_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIGroupList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1APIGroupList(object): 'kind': 'kind' } - def __init__(self, api_version=None, groups=None, kind=None): # noqa: E501 + def __init__(self, api_version=None, groups=None, kind=None, local_vars_configuration=None): # noqa: E501 """V1APIGroupList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._groups = None @@ -99,7 +104,7 @@ def groups(self, groups): :param groups: The groups of this V1APIGroupList. # noqa: E501 :type: list[V1APIGroup] """ - if groups is None: + if self.local_vars_configuration.client_side_validation and groups is None: # noqa: E501 raise ValueError("Invalid value for `groups`, must not be `None`") # noqa: E501 self._groups = groups @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1APIGroupList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIGroupList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_resource.py b/kubernetes/client/models/v1_api_resource.py index 7980f7e929..8f5cfcbcf4 100644 --- a/kubernetes/client/models/v1_api_resource.py +++ b/kubernetes/client/models/v1_api_resource.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIResource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1APIResource(object): 'version': 'version' } - def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None): # noqa: E501 + def __init__(self, categories=None, group=None, kind=None, name=None, namespaced=None, short_names=None, singular_name=None, storage_version_hash=None, verbs=None, version=None, local_vars_configuration=None): # noqa: E501 """V1APIResource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._categories = None self._group = None @@ -153,7 +158,7 @@ def kind(self, kind): :param kind: The kind of this V1APIResource. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -178,7 +183,7 @@ def name(self, name): :param name: The name of this V1APIResource. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -203,7 +208,7 @@ def namespaced(self, namespaced): :param namespaced: The namespaced of this V1APIResource. # noqa: E501 :type: bool """ - if namespaced is None: + if self.local_vars_configuration.client_side_validation and namespaced is None: # noqa: E501 raise ValueError("Invalid value for `namespaced`, must not be `None`") # noqa: E501 self._namespaced = namespaced @@ -251,7 +256,7 @@ def singular_name(self, singular_name): :param singular_name: The singular_name of this V1APIResource. # noqa: E501 :type: str """ - if singular_name is None: + if self.local_vars_configuration.client_side_validation and singular_name is None: # noqa: E501 raise ValueError("Invalid value for `singular_name`, must not be `None`") # noqa: E501 self._singular_name = singular_name @@ -299,7 +304,7 @@ def verbs(self, verbs): :param verbs: The verbs of this V1APIResource. # noqa: E501 :type: list[str] """ - if verbs is None: + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs @@ -364,8 +369,11 @@ def __eq__(self, other): if not isinstance(other, V1APIResource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIResource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_resource_list.py b/kubernetes/client/models/v1_api_resource_list.py index d5191d9727..76a6e6d272 100644 --- a/kubernetes/client/models/v1_api_resource_list.py +++ b/kubernetes/client/models/v1_api_resource_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIResourceList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1APIResourceList(object): 'resources': 'resources' } - def __init__(self, api_version=None, group_version=None, kind=None, resources=None): # noqa: E501 + def __init__(self, api_version=None, group_version=None, kind=None, resources=None, local_vars_configuration=None): # noqa: E501 """V1APIResourceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._group_version = None @@ -103,7 +108,7 @@ def group_version(self, group_version): :param group_version: The group_version of this V1APIResourceList. # noqa: E501 :type: str """ - if group_version is None: + if self.local_vars_configuration.client_side_validation and group_version is None: # noqa: E501 raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 self._group_version = group_version @@ -151,7 +156,7 @@ def resources(self, resources): :param resources: The resources of this V1APIResourceList. # noqa: E501 :type: list[V1APIResource] """ - if resources is None: + if self.local_vars_configuration.client_side_validation and resources is None: # noqa: E501 raise ValueError("Invalid value for `resources`, must not be `None`") # noqa: E501 self._resources = resources @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1APIResourceList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIResourceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_service.py b/kubernetes/client/models/v1_api_service.py index 41a8e29e2e..b547b6157e 100644 --- a/kubernetes/client/models/v1_api_service.py +++ b/kubernetes/client/models/v1_api_service.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIService(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1APIService(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1APIService - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1APIService): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIService): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_service_condition.py b/kubernetes/client/models/v1_api_service_condition.py index 388b4f10a2..abfe2e62f8 100644 --- a/kubernetes/client/models/v1_api_service_condition.py +++ b/kubernetes/client/models/v1_api_service_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIServiceCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1APIServiceCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1APIServiceCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1APIServiceCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1APIServiceCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1APIServiceCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIServiceCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_service_list.py b/kubernetes/client/models/v1_api_service_list.py index 2a57474dfa..524b47572b 100644 --- a/kubernetes/client/models/v1_api_service_list.py +++ b/kubernetes/client/models/v1_api_service_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIServiceList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1APIServiceList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1APIServiceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -102,7 +107,7 @@ def items(self, items): :param items: The items of this V1APIServiceList. # noqa: E501 :type: list[V1APIService] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1APIServiceList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIServiceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_service_spec.py b/kubernetes/client/models/v1_api_service_spec.py index 2cf7ae77fa..ea16d54f2c 100644 --- a/kubernetes/client/models/v1_api_service_spec.py +++ b/kubernetes/client/models/v1_api_service_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIServiceSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1APIServiceSpec(object): 'version_priority': 'versionPriority' } - def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None): # noqa: E501 + def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None, local_vars_configuration=None): # noqa: E501 """V1APIServiceSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ca_bundle = None self._group = None @@ -94,7 +99,8 @@ def ca_bundle(self, ca_bundle): :param ca_bundle: The ca_bundle of this V1APIServiceSpec. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501 raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @@ -142,7 +148,7 @@ def group_priority_minimum(self, group_priority_minimum): :param group_priority_minimum: The group_priority_minimum of this V1APIServiceSpec. # noqa: E501 :type: int """ - if group_priority_minimum is None: + if self.local_vars_configuration.client_side_validation and group_priority_minimum is None: # noqa: E501 raise ValueError("Invalid value for `group_priority_minimum`, must not be `None`") # noqa: E501 self._group_priority_minimum = group_priority_minimum @@ -188,7 +194,7 @@ def service(self, service): :param service: The service of this V1APIServiceSpec. # noqa: E501 :type: ApiregistrationV1ServiceReference """ - if service is None: + if self.local_vars_configuration.client_side_validation and service is None: # noqa: E501 raise ValueError("Invalid value for `service`, must not be `None`") # noqa: E501 self._service = service @@ -236,7 +242,7 @@ def version_priority(self, version_priority): :param version_priority: The version_priority of this V1APIServiceSpec. # noqa: E501 :type: int """ - if version_priority is None: + if self.local_vars_configuration.client_side_validation and version_priority is None: # noqa: E501 raise ValueError("Invalid value for `version_priority`, must not be `None`") # noqa: E501 self._version_priority = version_priority @@ -278,8 +284,11 @@ def __eq__(self, other): if not isinstance(other, V1APIServiceSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIServiceSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_service_status.py b/kubernetes/client/models/v1_api_service_status.py index 9318414bb0..2dd5054749 100644 --- a/kubernetes/client/models/v1_api_service_status.py +++ b/kubernetes/client/models/v1_api_service_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIServiceStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1APIServiceStatus(object): 'conditions': 'conditions' } - def __init__(self, conditions=None): # noqa: E501 + def __init__(self, conditions=None, local_vars_configuration=None): # noqa: E501 """V1APIServiceStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._conditions = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1APIServiceStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIServiceStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_api_versions.py b/kubernetes/client/models/v1_api_versions.py index 9180989430..ae77b35e36 100644 --- a/kubernetes/client/models/v1_api_versions.py +++ b/kubernetes/client/models/v1_api_versions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1APIVersions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1APIVersions(object): 'versions': 'versions' } - def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs=None, versions=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, server_address_by_client_cid_rs=None, versions=None, local_vars_configuration=None): # noqa: E501 """V1APIVersions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -126,7 +131,7 @@ def server_address_by_client_cid_rs(self, server_address_by_client_cid_rs): :param server_address_by_client_cid_rs: The server_address_by_client_cid_rs of this V1APIVersions. # noqa: E501 :type: list[V1ServerAddressByClientCIDR] """ - if server_address_by_client_cid_rs is None: + if self.local_vars_configuration.client_side_validation and server_address_by_client_cid_rs is None: # noqa: E501 raise ValueError("Invalid value for `server_address_by_client_cid_rs`, must not be `None`") # noqa: E501 self._server_address_by_client_cid_rs = server_address_by_client_cid_rs @@ -151,7 +156,7 @@ def versions(self, versions): :param versions: The versions of this V1APIVersions. # noqa: E501 :type: list[str] """ - if versions is None: + if self.local_vars_configuration.client_side_validation and versions is None: # noqa: E501 raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501 self._versions = versions @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1APIVersions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1APIVersions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_attached_volume.py b/kubernetes/client/models/v1_attached_volume.py index 85fe4bca9f..8499322a88 100644 --- a/kubernetes/client/models/v1_attached_volume.py +++ b/kubernetes/client/models/v1_attached_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1AttachedVolume(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1AttachedVolume(object): 'name': 'name' } - def __init__(self, device_path=None, name=None): # noqa: E501 + def __init__(self, device_path=None, name=None, local_vars_configuration=None): # noqa: E501 """V1AttachedVolume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._device_path = None self._name = None @@ -70,7 +75,7 @@ def device_path(self, device_path): :param device_path: The device_path of this V1AttachedVolume. # noqa: E501 :type: str """ - if device_path is None: + if self.local_vars_configuration.client_side_validation and device_path is None: # noqa: E501 raise ValueError("Invalid value for `device_path`, must not be `None`") # noqa: E501 self._device_path = device_path @@ -95,7 +100,7 @@ def name(self, name): :param name: The name of this V1AttachedVolume. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, V1AttachedVolume): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1AttachedVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py index 9c515b4055..506d25509e 100644 --- a/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py +++ b/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1AWSElasticBlockStoreVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1AWSElasticBlockStoreVolumeSource(object): 'volume_id': 'volumeID' } - def __init__(self, fs_type=None, partition=None, read_only=None, volume_id=None): # noqa: E501 + def __init__(self, fs_type=None, partition=None, read_only=None, volume_id=None, local_vars_configuration=None): # noqa: E501 """V1AWSElasticBlockStoreVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._partition = None @@ -150,7 +155,7 @@ def volume_id(self, volume_id): :param volume_id: The volume_id of this V1AWSElasticBlockStoreVolumeSource. # noqa: E501 :type: str """ - if volume_id is None: + if self.local_vars_configuration.client_side_validation and volume_id is None: # noqa: E501 raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501 self._volume_id = volume_id @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V1AWSElasticBlockStoreVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1AWSElasticBlockStoreVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_azure_disk_volume_source.py b/kubernetes/client/models/v1_azure_disk_volume_source.py index e142c6f442..027f58f49e 100644 --- a/kubernetes/client/models/v1_azure_disk_volume_source.py +++ b/kubernetes/client/models/v1_azure_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1AzureDiskVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1AzureDiskVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, caching_mode=None, disk_name=None, disk_uri=None, fs_type=None, kind=None, read_only=None): # noqa: E501 + def __init__(self, caching_mode=None, disk_name=None, disk_uri=None, fs_type=None, kind=None, read_only=None, local_vars_configuration=None): # noqa: E501 """V1AzureDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._caching_mode = None self._disk_name = None @@ -113,7 +118,7 @@ def disk_name(self, disk_name): :param disk_name: The disk_name of this V1AzureDiskVolumeSource. # noqa: E501 :type: str """ - if disk_name is None: + if self.local_vars_configuration.client_side_validation and disk_name is None: # noqa: E501 raise ValueError("Invalid value for `disk_name`, must not be `None`") # noqa: E501 self._disk_name = disk_name @@ -138,7 +143,7 @@ def disk_uri(self, disk_uri): :param disk_uri: The disk_uri of this V1AzureDiskVolumeSource. # noqa: E501 :type: str """ - if disk_uri is None: + if self.local_vars_configuration.client_side_validation and disk_uri is None: # noqa: E501 raise ValueError("Invalid value for `disk_uri`, must not be `None`") # noqa: E501 self._disk_uri = disk_uri @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1AzureDiskVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1AzureDiskVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_azure_file_persistent_volume_source.py b/kubernetes/client/models/v1_azure_file_persistent_volume_source.py index 5cc61cfbf6..d6c7628de4 100644 --- a/kubernetes/client/models/v1_azure_file_persistent_volume_source.py +++ b/kubernetes/client/models/v1_azure_file_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1AzureFilePersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1AzureFilePersistentVolumeSource(object): 'share_name': 'shareName' } - def __init__(self, read_only=None, secret_name=None, secret_namespace=None, share_name=None): # noqa: E501 + def __init__(self, read_only=None, secret_name=None, secret_namespace=None, share_name=None, local_vars_configuration=None): # noqa: E501 """V1AzureFilePersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._read_only = None self._secret_name = None @@ -103,7 +108,7 @@ def secret_name(self, secret_name): :param secret_name: The secret_name of this V1AzureFilePersistentVolumeSource. # noqa: E501 :type: str """ - if secret_name is None: + if self.local_vars_configuration.client_side_validation and secret_name is None: # noqa: E501 raise ValueError("Invalid value for `secret_name`, must not be `None`") # noqa: E501 self._secret_name = secret_name @@ -151,7 +156,7 @@ def share_name(self, share_name): :param share_name: The share_name of this V1AzureFilePersistentVolumeSource. # noqa: E501 :type: str """ - if share_name is None: + if self.local_vars_configuration.client_side_validation and share_name is None: # noqa: E501 raise ValueError("Invalid value for `share_name`, must not be `None`") # noqa: E501 self._share_name = share_name @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1AzureFilePersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1AzureFilePersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_azure_file_volume_source.py b/kubernetes/client/models/v1_azure_file_volume_source.py index 022ae574e5..c43ae32ea6 100644 --- a/kubernetes/client/models/v1_azure_file_volume_source.py +++ b/kubernetes/client/models/v1_azure_file_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1AzureFileVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1AzureFileVolumeSource(object): 'share_name': 'shareName' } - def __init__(self, read_only=None, secret_name=None, share_name=None): # noqa: E501 + def __init__(self, read_only=None, secret_name=None, share_name=None, local_vars_configuration=None): # noqa: E501 """V1AzureFileVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._read_only = None self._secret_name = None @@ -98,7 +103,7 @@ def secret_name(self, secret_name): :param secret_name: The secret_name of this V1AzureFileVolumeSource. # noqa: E501 :type: str """ - if secret_name is None: + if self.local_vars_configuration.client_side_validation and secret_name is None: # noqa: E501 raise ValueError("Invalid value for `secret_name`, must not be `None`") # noqa: E501 self._secret_name = secret_name @@ -123,7 +128,7 @@ def share_name(self, share_name): :param share_name: The share_name of this V1AzureFileVolumeSource. # noqa: E501 :type: str """ - if share_name is None: + if self.local_vars_configuration.client_side_validation and share_name is None: # noqa: E501 raise ValueError("Invalid value for `share_name`, must not be `None`") # noqa: E501 self._share_name = share_name @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1AzureFileVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1AzureFileVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_binding.py b/kubernetes/client/models/v1_binding.py index b7e6cc5fd6..15710a8801 100644 --- a/kubernetes/client/models/v1_binding.py +++ b/kubernetes/client/models/v1_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Binding(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1Binding(object): 'target': 'target' } - def __init__(self, api_version=None, kind=None, metadata=None, target=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, target=None, local_vars_configuration=None): # noqa: E501 """V1Binding - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -146,7 +151,7 @@ def target(self, target): :param target: The target of this V1Binding. # noqa: E501 :type: V1ObjectReference """ - if target is None: + if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1Binding): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Binding): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_bound_object_reference.py b/kubernetes/client/models/v1_bound_object_reference.py index 996a41b65c..ce2c74bc44 100644 --- a/kubernetes/client/models/v1_bound_object_reference.py +++ b/kubernetes/client/models/v1_bound_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1BoundObjectReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1BoundObjectReference(object): 'uid': 'uid' } - def __init__(self, api_version=None, kind=None, name=None, uid=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, name=None, uid=None, local_vars_configuration=None): # noqa: E501 """V1BoundObjectReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1BoundObjectReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1BoundObjectReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_capabilities.py b/kubernetes/client/models/v1_capabilities.py index c0151051da..4a043cc49a 100644 --- a/kubernetes/client/models/v1_capabilities.py +++ b/kubernetes/client/models/v1_capabilities.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Capabilities(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1Capabilities(object): 'drop': 'drop' } - def __init__(self, add=None, drop=None): # noqa: E501 + def __init__(self, add=None, drop=None, local_vars_configuration=None): # noqa: E501 """V1Capabilities - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._add = None self._drop = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1Capabilities): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Capabilities): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py b/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py index a15e5fbd00..7c377eee6b 100644 --- a/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py +++ b/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CephFSPersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1CephFSPersistentVolumeSource(object): 'user': 'user' } - def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None): # noqa: E501 + def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None, local_vars_configuration=None): # noqa: E501 """V1CephFSPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._monitors = None self._path = None @@ -91,7 +96,7 @@ def monitors(self, monitors): :param monitors: The monitors of this V1CephFSPersistentVolumeSource. # noqa: E501 :type: list[str] """ - if monitors is None: + if self.local_vars_configuration.client_side_validation and monitors is None: # noqa: E501 raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 self._monitors = monitors @@ -246,8 +251,11 @@ def __eq__(self, other): if not isinstance(other, V1CephFSPersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CephFSPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_ceph_fs_volume_source.py b/kubernetes/client/models/v1_ceph_fs_volume_source.py index 2c5978d0b2..d14e295856 100644 --- a/kubernetes/client/models/v1_ceph_fs_volume_source.py +++ b/kubernetes/client/models/v1_ceph_fs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CephFSVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1CephFSVolumeSource(object): 'user': 'user' } - def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None): # noqa: E501 + def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, secret_ref=None, user=None, local_vars_configuration=None): # noqa: E501 """V1CephFSVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._monitors = None self._path = None @@ -91,7 +96,7 @@ def monitors(self, monitors): :param monitors: The monitors of this V1CephFSVolumeSource. # noqa: E501 :type: list[str] """ - if monitors is None: + if self.local_vars_configuration.client_side_validation and monitors is None: # noqa: E501 raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 self._monitors = monitors @@ -246,8 +251,11 @@ def __eq__(self, other): if not isinstance(other, V1CephFSVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CephFSVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_cinder_persistent_volume_source.py b/kubernetes/client/models/v1_cinder_persistent_volume_source.py index d971aa8846..01b2904326 100644 --- a/kubernetes/client/models/v1_cinder_persistent_volume_source.py +++ b/kubernetes/client/models/v1_cinder_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CinderPersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1CinderPersistentVolumeSource(object): 'volume_id': 'volumeID' } - def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None): # noqa: E501 + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None, local_vars_configuration=None): # noqa: E501 """V1CinderPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._read_only = None @@ -148,7 +153,7 @@ def volume_id(self, volume_id): :param volume_id: The volume_id of this V1CinderPersistentVolumeSource. # noqa: E501 :type: str """ - if volume_id is None: + if self.local_vars_configuration.client_side_validation and volume_id is None: # noqa: E501 raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501 self._volume_id = volume_id @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1CinderPersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CinderPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_cinder_volume_source.py b/kubernetes/client/models/v1_cinder_volume_source.py index cd23dc521a..81c3f38adb 100644 --- a/kubernetes/client/models/v1_cinder_volume_source.py +++ b/kubernetes/client/models/v1_cinder_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CinderVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1CinderVolumeSource(object): 'volume_id': 'volumeID' } - def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None): # noqa: E501 + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None, local_vars_configuration=None): # noqa: E501 """V1CinderVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._read_only = None @@ -148,7 +153,7 @@ def volume_id(self, volume_id): :param volume_id: The volume_id of this V1CinderVolumeSource. # noqa: E501 :type: str """ - if volume_id is None: + if self.local_vars_configuration.client_side_validation and volume_id is None: # noqa: E501 raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501 self._volume_id = volume_id @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1CinderVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CinderVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_client_ip_config.py b/kubernetes/client/models/v1_client_ip_config.py index 107ed9df92..1a54189671 100644 --- a/kubernetes/client/models/v1_client_ip_config.py +++ b/kubernetes/client/models/v1_client_ip_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ClientIPConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1ClientIPConfig(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, timeout_seconds=None): # noqa: E501 + def __init__(self, timeout_seconds=None, local_vars_configuration=None): # noqa: E501 """V1ClientIPConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._timeout_seconds = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1ClientIPConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ClientIPConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_cluster_role.py b/kubernetes/client/models/v1_cluster_role.py index 959e927a79..01b1111b10 100644 --- a/kubernetes/client/models/v1_cluster_role.py +++ b/kubernetes/client/models/v1_cluster_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ClusterRole(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ClusterRole(object): 'rules': 'rules' } - def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, local_vars_configuration=None): # noqa: E501 """V1ClusterRole - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._aggregation_rule = None self._api_version = None @@ -215,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, V1ClusterRole): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ClusterRole): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_cluster_role_binding.py b/kubernetes/client/models/v1_cluster_role_binding.py index 6142ae3dd4..03044f5cf9 100644 --- a/kubernetes/client/models/v1_cluster_role_binding.py +++ b/kubernetes/client/models/v1_cluster_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ClusterRoleBinding(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ClusterRoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, local_vars_configuration=None): # noqa: E501 """V1ClusterRoleBinding - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def role_ref(self, role_ref): :param role_ref: The role_ref of this V1ClusterRoleBinding. # noqa: E501 :type: V1RoleRef """ - if role_ref is None: + if self.local_vars_configuration.client_side_validation and role_ref is None: # noqa: E501 raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @@ -216,8 +221,11 @@ def __eq__(self, other): if not isinstance(other, V1ClusterRoleBinding): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ClusterRoleBinding): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_cluster_role_binding_list.py b/kubernetes/client/models/v1_cluster_role_binding_list.py index 4ce730bf13..8eaef972c2 100644 --- a/kubernetes/client/models/v1_cluster_role_binding_list.py +++ b/kubernetes/client/models/v1_cluster_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ClusterRoleBindingList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ClusterRoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ClusterRoleBindingList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ClusterRoleBindingList. # noqa: E501 :type: list[V1ClusterRoleBinding] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ClusterRoleBindingList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ClusterRoleBindingList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_cluster_role_list.py b/kubernetes/client/models/v1_cluster_role_list.py index 3da66fd2c8..da0604217b 100644 --- a/kubernetes/client/models/v1_cluster_role_list.py +++ b/kubernetes/client/models/v1_cluster_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ClusterRoleList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ClusterRoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ClusterRoleList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ClusterRoleList. # noqa: E501 :type: list[V1ClusterRole] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ClusterRoleList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ClusterRoleList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_component_condition.py b/kubernetes/client/models/v1_component_condition.py index 42e346c9ad..fde7e1d437 100644 --- a/kubernetes/client/models/v1_component_condition.py +++ b/kubernetes/client/models/v1_component_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ComponentCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ComponentCondition(object): 'type': 'type' } - def __init__(self, error=None, message=None, status=None, type=None): # noqa: E501 + def __init__(self, error=None, message=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1ComponentCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._error = None self._message = None @@ -126,7 +131,7 @@ def status(self, status): :param status: The status of this V1ComponentCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -151,7 +156,7 @@ def type(self, type): :param type: The type of this V1ComponentCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1ComponentCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ComponentCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_component_status.py b/kubernetes/client/models/v1_component_status.py index 98433acc73..da37d71147 100644 --- a/kubernetes/client/models/v1_component_status.py +++ b/kubernetes/client/models/v1_component_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ComponentStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ComponentStatus(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, conditions=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, conditions=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ComponentStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._conditions = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1ComponentStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ComponentStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_component_status_list.py b/kubernetes/client/models/v1_component_status_list.py index f57ff7decc..02438fba19 100644 --- a/kubernetes/client/models/v1_component_status_list.py +++ b/kubernetes/client/models/v1_component_status_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ComponentStatusList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ComponentStatusList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ComponentStatusList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ComponentStatusList. # noqa: E501 :type: list[V1ComponentStatus] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ComponentStatusList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ComponentStatusList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_config_map.py b/kubernetes/client/models/v1_config_map.py index f3148bce5e..4b43a65163 100644 --- a/kubernetes/client/models/v1_config_map.py +++ b/kubernetes/client/models/v1_config_map.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ConfigMap(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ConfigMap(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, binary_data=None, data=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, binary_data=None, data=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ConfigMap - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._binary_data = None @@ -217,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, V1ConfigMap): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ConfigMap): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_config_map_env_source.py b/kubernetes/client/models/v1_config_map_env_source.py index e552e1e182..adaa3ff31a 100644 --- a/kubernetes/client/models/v1_config_map_env_source.py +++ b/kubernetes/client/models/v1_config_map_env_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ConfigMapEnvSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ConfigMapEnvSource(object): 'optional': 'optional' } - def __init__(self, name=None, optional=None): # noqa: E501 + def __init__(self, name=None, optional=None, local_vars_configuration=None): # noqa: E501 """V1ConfigMapEnvSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._optional = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1ConfigMapEnvSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ConfigMapEnvSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_config_map_key_selector.py b/kubernetes/client/models/v1_config_map_key_selector.py index 9c3105bd07..3ab9ae461c 100644 --- a/kubernetes/client/models/v1_config_map_key_selector.py +++ b/kubernetes/client/models/v1_config_map_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ConfigMapKeySelector(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1ConfigMapKeySelector(object): 'optional': 'optional' } - def __init__(self, key=None, name=None, optional=None): # noqa: E501 + def __init__(self, key=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501 """V1ConfigMapKeySelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._key = None self._name = None @@ -76,7 +81,7 @@ def key(self, key): :param key: The key of this V1ConfigMapKeySelector. # noqa: E501 :type: str """ - if key is None: + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1ConfigMapKeySelector): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ConfigMapKeySelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_config_map_list.py b/kubernetes/client/models/v1_config_map_list.py index b658face2a..188dd6b33e 100644 --- a/kubernetes/client/models/v1_config_map_list.py +++ b/kubernetes/client/models/v1_config_map_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ConfigMapList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ConfigMapList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ConfigMapList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ConfigMapList. # noqa: E501 :type: list[V1ConfigMap] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ConfigMapList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ConfigMapList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_config_map_node_config_source.py b/kubernetes/client/models/v1_config_map_node_config_source.py index 844754bd1e..4052cdeabc 100644 --- a/kubernetes/client/models/v1_config_map_node_config_source.py +++ b/kubernetes/client/models/v1_config_map_node_config_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ConfigMapNodeConfigSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ConfigMapNodeConfigSource(object): 'uid': 'uid' } - def __init__(self, kubelet_config_key=None, name=None, namespace=None, resource_version=None, uid=None): # noqa: E501 + def __init__(self, kubelet_config_key=None, name=None, namespace=None, resource_version=None, uid=None, local_vars_configuration=None): # noqa: E501 """V1ConfigMapNodeConfigSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._kubelet_config_key = None self._name = None @@ -84,7 +89,7 @@ def kubelet_config_key(self, kubelet_config_key): :param kubelet_config_key: The kubelet_config_key of this V1ConfigMapNodeConfigSource. # noqa: E501 :type: str """ - if kubelet_config_key is None: + if self.local_vars_configuration.client_side_validation and kubelet_config_key is None: # noqa: E501 raise ValueError("Invalid value for `kubelet_config_key`, must not be `None`") # noqa: E501 self._kubelet_config_key = kubelet_config_key @@ -109,7 +114,7 @@ def name(self, name): :param name: The name of this V1ConfigMapNodeConfigSource. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -134,7 +139,7 @@ def namespace(self, namespace): :param namespace: The namespace of this V1ConfigMapNodeConfigSource. # noqa: E501 :type: str """ - if namespace is None: + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @@ -222,8 +227,11 @@ def __eq__(self, other): if not isinstance(other, V1ConfigMapNodeConfigSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ConfigMapNodeConfigSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_config_map_projection.py b/kubernetes/client/models/v1_config_map_projection.py index eb10d599df..5466c7948a 100644 --- a/kubernetes/client/models/v1_config_map_projection.py +++ b/kubernetes/client/models/v1_config_map_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ConfigMapProjection(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1ConfigMapProjection(object): 'optional': 'optional' } - def __init__(self, items=None, name=None, optional=None): # noqa: E501 + def __init__(self, items=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501 """V1ConfigMapProjection - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._items = None self._name = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1ConfigMapProjection): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ConfigMapProjection): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_config_map_volume_source.py b/kubernetes/client/models/v1_config_map_volume_source.py index 2e11e06ad3..3dbdb3d332 100644 --- a/kubernetes/client/models/v1_config_map_volume_source.py +++ b/kubernetes/client/models/v1_config_map_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ConfigMapVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ConfigMapVolumeSource(object): 'optional': 'optional' } - def __init__(self, default_mode=None, items=None, name=None, optional=None): # noqa: E501 + def __init__(self, default_mode=None, items=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501 """V1ConfigMapVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._default_mode = None self._items = None @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1ConfigMapVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ConfigMapVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container.py b/kubernetes/client/models/v1_container.py index f4096e4860..6c7021950c 100644 --- a/kubernetes/client/models/v1_container.py +++ b/kubernetes/client/models/v1_container.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Container(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -80,8 +82,11 @@ class V1Container(object): 'working_dir': 'workingDir' } - def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None): # noqa: E501 + def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501 """V1Container - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._args = None self._command = None @@ -351,7 +356,7 @@ def name(self, name): :param name: The name of this V1Container. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -684,8 +689,11 @@ def __eq__(self, other): if not isinstance(other, V1Container): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Container): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container_image.py b/kubernetes/client/models/v1_container_image.py index 373c7cfe27..6d26114233 100644 --- a/kubernetes/client/models/v1_container_image.py +++ b/kubernetes/client/models/v1_container_image.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ContainerImage(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ContainerImage(object): 'size_bytes': 'sizeBytes' } - def __init__(self, names=None, size_bytes=None): # noqa: E501 + def __init__(self, names=None, size_bytes=None, local_vars_configuration=None): # noqa: E501 """V1ContainerImage - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._names = None self._size_bytes = None @@ -71,7 +76,7 @@ def names(self, names): :param names: The names of this V1ContainerImage. # noqa: E501 :type: list[str] """ - if names is None: + if self.local_vars_configuration.client_side_validation and names is None: # noqa: E501 raise ValueError("Invalid value for `names`, must not be `None`") # noqa: E501 self._names = names @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1ContainerImage): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ContainerImage): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container_port.py b/kubernetes/client/models/v1_container_port.py index 06897c40b0..9547aad215 100644 --- a/kubernetes/client/models/v1_container_port.py +++ b/kubernetes/client/models/v1_container_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ContainerPort(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ContainerPort(object): 'protocol': 'protocol' } - def __init__(self, container_port=None, host_ip=None, host_port=None, name=None, protocol=None): # noqa: E501 + def __init__(self, container_port=None, host_ip=None, host_port=None, name=None, protocol=None, local_vars_configuration=None): # noqa: E501 """V1ContainerPort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._container_port = None self._host_ip = None @@ -86,7 +91,7 @@ def container_port(self, container_port): :param container_port: The container_port of this V1ContainerPort. # noqa: E501 :type: int """ - if container_port is None: + if self.local_vars_configuration.client_side_validation and container_port is None: # noqa: E501 raise ValueError("Invalid value for `container_port`, must not be `None`") # noqa: E501 self._container_port = container_port @@ -220,8 +225,11 @@ def __eq__(self, other): if not isinstance(other, V1ContainerPort): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ContainerPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container_state.py b/kubernetes/client/models/v1_container_state.py index 1d05b898e1..5ddee34ffe 100644 --- a/kubernetes/client/models/v1_container_state.py +++ b/kubernetes/client/models/v1_container_state.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ContainerState(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1ContainerState(object): 'waiting': 'waiting' } - def __init__(self, running=None, terminated=None, waiting=None): # noqa: E501 + def __init__(self, running=None, terminated=None, waiting=None, local_vars_configuration=None): # noqa: E501 """V1ContainerState - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._running = None self._terminated = None @@ -157,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, V1ContainerState): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ContainerState): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container_state_running.py b/kubernetes/client/models/v1_container_state_running.py index 07de5c32c9..8a8fc6be04 100644 --- a/kubernetes/client/models/v1_container_state_running.py +++ b/kubernetes/client/models/v1_container_state_running.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ContainerStateRunning(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1ContainerStateRunning(object): 'started_at': 'startedAt' } - def __init__(self, started_at=None): # noqa: E501 + def __init__(self, started_at=None, local_vars_configuration=None): # noqa: E501 """V1ContainerStateRunning - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._started_at = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1ContainerStateRunning): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ContainerStateRunning): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container_state_terminated.py b/kubernetes/client/models/v1_container_state_terminated.py index 23c8548dd4..35cbfd7d25 100644 --- a/kubernetes/client/models/v1_container_state_terminated.py +++ b/kubernetes/client/models/v1_container_state_terminated.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ContainerStateTerminated(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1ContainerStateTerminated(object): 'started_at': 'startedAt' } - def __init__(self, container_id=None, exit_code=None, finished_at=None, message=None, reason=None, signal=None, started_at=None): # noqa: E501 + def __init__(self, container_id=None, exit_code=None, finished_at=None, message=None, reason=None, signal=None, started_at=None, local_vars_configuration=None): # noqa: E501 """V1ContainerStateTerminated - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._container_id = None self._exit_code = None @@ -119,7 +124,7 @@ def exit_code(self, exit_code): :param exit_code: The exit_code of this V1ContainerStateTerminated. # noqa: E501 :type: int """ - if exit_code is None: + if self.local_vars_configuration.client_side_validation and exit_code is None: # noqa: E501 raise ValueError("Invalid value for `exit_code`, must not be `None`") # noqa: E501 self._exit_code = exit_code @@ -276,8 +281,11 @@ def __eq__(self, other): if not isinstance(other, V1ContainerStateTerminated): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ContainerStateTerminated): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container_state_waiting.py b/kubernetes/client/models/v1_container_state_waiting.py index 7ad4a86680..ad100cceb7 100644 --- a/kubernetes/client/models/v1_container_state_waiting.py +++ b/kubernetes/client/models/v1_container_state_waiting.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ContainerStateWaiting(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ContainerStateWaiting(object): 'reason': 'reason' } - def __init__(self, message=None, reason=None): # noqa: E501 + def __init__(self, message=None, reason=None, local_vars_configuration=None): # noqa: E501 """V1ContainerStateWaiting - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._message = None self._reason = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1ContainerStateWaiting): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ContainerStateWaiting): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_container_status.py b/kubernetes/client/models/v1_container_status.py index 4ac825e471..d93946a835 100644 --- a/kubernetes/client/models/v1_container_status.py +++ b/kubernetes/client/models/v1_container_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ContainerStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -54,8 +56,11 @@ class V1ContainerStatus(object): 'state': 'state' } - def __init__(self, container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, restart_count=None, started=None, state=None): # noqa: E501 + def __init__(self, container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, restart_count=None, started=None, state=None, local_vars_configuration=None): # noqa: E501 """V1ContainerStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._container_id = None self._image = None @@ -125,7 +130,7 @@ def image(self, image): :param image: The image of this V1ContainerStatus. # noqa: E501 :type: str """ - if image is None: + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 self._image = image @@ -150,7 +155,7 @@ def image_id(self, image_id): :param image_id: The image_id of this V1ContainerStatus. # noqa: E501 :type: str """ - if image_id is None: + if self.local_vars_configuration.client_side_validation and image_id is None: # noqa: E501 raise ValueError("Invalid value for `image_id`, must not be `None`") # noqa: E501 self._image_id = image_id @@ -196,7 +201,7 @@ def name(self, name): :param name: The name of this V1ContainerStatus. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -221,7 +226,7 @@ def ready(self, ready): :param ready: The ready of this V1ContainerStatus. # noqa: E501 :type: bool """ - if ready is None: + if self.local_vars_configuration.client_side_validation and ready is None: # noqa: E501 raise ValueError("Invalid value for `ready`, must not be `None`") # noqa: E501 self._ready = ready @@ -246,7 +251,7 @@ def restart_count(self, restart_count): :param restart_count: The restart_count of this V1ContainerStatus. # noqa: E501 :type: int """ - if restart_count is None: + if self.local_vars_configuration.client_side_validation and restart_count is None: # noqa: E501 raise ValueError("Invalid value for `restart_count`, must not be `None`") # noqa: E501 self._restart_count = restart_count @@ -332,8 +337,11 @@ def __eq__(self, other): if not isinstance(other, V1ContainerStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ContainerStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_controller_revision.py b/kubernetes/client/models/v1_controller_revision.py index c9cdd97484..2330571424 100644 --- a/kubernetes/client/models/v1_controller_revision.py +++ b/kubernetes/client/models/v1_controller_revision.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ControllerRevision(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ControllerRevision(object): 'revision': 'revision' } - def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None): # noqa: E501 + def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None, local_vars_configuration=None): # noqa: E501 """V1ControllerRevision - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._data = None @@ -176,7 +181,7 @@ def revision(self, revision): :param revision: The revision of this V1ControllerRevision. # noqa: E501 :type: int """ - if revision is None: + if self.local_vars_configuration.client_side_validation and revision is None: # noqa: E501 raise ValueError("Invalid value for `revision`, must not be `None`") # noqa: E501 self._revision = revision @@ -218,8 +223,11 @@ def __eq__(self, other): if not isinstance(other, V1ControllerRevision): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ControllerRevision): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_controller_revision_list.py b/kubernetes/client/models/v1_controller_revision_list.py index ccb270f719..1071104a74 100644 --- a/kubernetes/client/models/v1_controller_revision_list.py +++ b/kubernetes/client/models/v1_controller_revision_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ControllerRevisionList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ControllerRevisionList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ControllerRevisionList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ControllerRevisionList. # noqa: E501 :type: list[V1ControllerRevision] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ControllerRevisionList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ControllerRevisionList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_cross_version_object_reference.py b/kubernetes/client/models/v1_cross_version_object_reference.py index b4f877e869..b23d4930ee 100644 --- a/kubernetes/client/models/v1_cross_version_object_reference.py +++ b/kubernetes/client/models/v1_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CrossVersionObjectReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1CrossVersionObjectReference(object): 'name': 'name' } - def __init__(self, api_version=None, kind=None, name=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 """V1CrossVersionObjectReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -98,7 +103,7 @@ def kind(self, kind): :param kind: The kind of this V1CrossVersionObjectReference. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -123,7 +128,7 @@ def name(self, name): :param name: The name of this V1CrossVersionObjectReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1CrossVersionObjectReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CrossVersionObjectReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_csi_persistent_volume_source.py b/kubernetes/client/models/v1_csi_persistent_volume_source.py index 2c3e90c2b5..2c65dae228 100644 --- a/kubernetes/client/models/v1_csi_persistent_volume_source.py +++ b/kubernetes/client/models/v1_csi_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CSIPersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -54,8 +56,11 @@ class V1CSIPersistentVolumeSource(object): 'volume_handle': 'volumeHandle' } - def __init__(self, controller_expand_secret_ref=None, controller_publish_secret_ref=None, driver=None, fs_type=None, node_publish_secret_ref=None, node_stage_secret_ref=None, read_only=None, volume_attributes=None, volume_handle=None): # noqa: E501 + def __init__(self, controller_expand_secret_ref=None, controller_publish_secret_ref=None, driver=None, fs_type=None, node_publish_secret_ref=None, node_stage_secret_ref=None, read_only=None, volume_attributes=None, volume_handle=None, local_vars_configuration=None): # noqa: E501 """V1CSIPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._controller_expand_secret_ref = None self._controller_publish_secret_ref = None @@ -147,7 +152,7 @@ def driver(self, driver): :param driver: The driver of this V1CSIPersistentVolumeSource. # noqa: E501 :type: str """ - if driver is None: + if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @@ -283,7 +288,7 @@ def volume_handle(self, volume_handle): :param volume_handle: The volume_handle of this V1CSIPersistentVolumeSource. # noqa: E501 :type: str """ - if volume_handle is None: + if self.local_vars_configuration.client_side_validation and volume_handle is None: # noqa: E501 raise ValueError("Invalid value for `volume_handle`, must not be `None`") # noqa: E501 self._volume_handle = volume_handle @@ -325,8 +330,11 @@ def __eq__(self, other): if not isinstance(other, V1CSIPersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CSIPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_csi_volume_source.py b/kubernetes/client/models/v1_csi_volume_source.py index ae5a2dadac..4b94c9a14b 100644 --- a/kubernetes/client/models/v1_csi_volume_source.py +++ b/kubernetes/client/models/v1_csi_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CSIVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1CSIVolumeSource(object): 'volume_attributes': 'volumeAttributes' } - def __init__(self, driver=None, fs_type=None, node_publish_secret_ref=None, read_only=None, volume_attributes=None): # noqa: E501 + def __init__(self, driver=None, fs_type=None, node_publish_secret_ref=None, read_only=None, volume_attributes=None, local_vars_configuration=None): # noqa: E501 """V1CSIVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._driver = None self._fs_type = None @@ -86,7 +91,7 @@ def driver(self, driver): :param driver: The driver of this V1CSIVolumeSource. # noqa: E501 :type: str """ - if driver is None: + if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @@ -218,8 +223,11 @@ def __eq__(self, other): if not isinstance(other, V1CSIVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CSIVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_column_definition.py b/kubernetes/client/models/v1_custom_resource_column_definition.py index 5bd4c4770c..01127cabe8 100644 --- a/kubernetes/client/models/v1_custom_resource_column_definition.py +++ b/kubernetes/client/models/v1_custom_resource_column_definition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceColumnDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1CustomResourceColumnDefinition(object): 'type': 'type' } - def __init__(self, description=None, format=None, json_path=None, name=None, priority=None, type=None): # noqa: E501 + def __init__(self, description=None, format=None, json_path=None, name=None, priority=None, type=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceColumnDefinition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._description = None self._format = None @@ -135,7 +140,7 @@ def json_path(self, json_path): :param json_path: The json_path of this V1CustomResourceColumnDefinition. # noqa: E501 :type: str """ - if json_path is None: + if self.local_vars_configuration.client_side_validation and json_path is None: # noqa: E501 raise ValueError("Invalid value for `json_path`, must not be `None`") # noqa: E501 self._json_path = json_path @@ -160,7 +165,7 @@ def name(self, name): :param name: The name of this V1CustomResourceColumnDefinition. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -208,7 +213,7 @@ def type(self, type): :param type: The type of this V1CustomResourceColumnDefinition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -250,8 +255,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceColumnDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceColumnDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_conversion.py b/kubernetes/client/models/v1_custom_resource_conversion.py index c4728427c4..a9167452ff 100644 --- a/kubernetes/client/models/v1_custom_resource_conversion.py +++ b/kubernetes/client/models/v1_custom_resource_conversion.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceConversion(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1CustomResourceConversion(object): 'webhook': 'webhook' } - def __init__(self, strategy=None, webhook=None): # noqa: E501 + def __init__(self, strategy=None, webhook=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceConversion - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._strategy = None self._webhook = None @@ -71,7 +76,7 @@ def strategy(self, strategy): :param strategy: The strategy of this V1CustomResourceConversion. # noqa: E501 :type: str """ - if strategy is None: + if self.local_vars_configuration.client_side_validation and strategy is None: # noqa: E501 raise ValueError("Invalid value for `strategy`, must not be `None`") # noqa: E501 self._strategy = strategy @@ -134,8 +139,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceConversion): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceConversion): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_definition.py b/kubernetes/client/models/v1_custom_resource_definition.py index 4578e62447..5612990979 100644 --- a/kubernetes/client/models/v1_custom_resource_definition.py +++ b/kubernetes/client/models/v1_custom_resource_definition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1CustomResourceDefinition(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceDefinition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1CustomResourceDefinition. # noqa: E501 :type: V1CustomResourceDefinitionSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_definition_condition.py b/kubernetes/client/models/v1_custom_resource_definition_condition.py index c2fc9d29f7..49704db383 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_condition.py +++ b/kubernetes/client/models/v1_custom_resource_definition_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceDefinitionCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1CustomResourceDefinitionCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceDefinitionCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1CustomResourceDefinitionCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1CustomResourceDefinitionCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceDefinitionCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceDefinitionCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_definition_list.py b/kubernetes/client/models/v1_custom_resource_definition_list.py index 3cd58cb81c..56e0cf96ac 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_list.py +++ b/kubernetes/client/models/v1_custom_resource_definition_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceDefinitionList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1CustomResourceDefinitionList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceDefinitionList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1CustomResourceDefinitionList. # noqa: E501 :type: list[V1CustomResourceDefinition] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceDefinitionList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceDefinitionList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_definition_names.py b/kubernetes/client/models/v1_custom_resource_definition_names.py index 4ef3918342..3affdf805b 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_names.py +++ b/kubernetes/client/models/v1_custom_resource_definition_names.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceDefinitionNames(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1CustomResourceDefinitionNames(object): 'singular': 'singular' } - def __init__(self, categories=None, kind=None, list_kind=None, plural=None, short_names=None, singular=None): # noqa: E501 + def __init__(self, categories=None, kind=None, list_kind=None, plural=None, short_names=None, singular=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceDefinitionNames - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._categories = None self._kind = None @@ -113,7 +118,7 @@ def kind(self, kind): :param kind: The kind of this V1CustomResourceDefinitionNames. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -161,7 +166,7 @@ def plural(self, plural): :param plural: The plural of this V1CustomResourceDefinitionNames. # noqa: E501 :type: str """ - if plural is None: + if self.local_vars_configuration.client_side_validation and plural is None: # noqa: E501 raise ValueError("Invalid value for `plural`, must not be `None`") # noqa: E501 self._plural = plural @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceDefinitionNames): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceDefinitionNames): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_definition_spec.py b/kubernetes/client/models/v1_custom_resource_definition_spec.py index cd06dff4e9..6d6ca74f35 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_spec.py +++ b/kubernetes/client/models/v1_custom_resource_definition_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceDefinitionSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1CustomResourceDefinitionSpec(object): 'versions': 'versions' } - def __init__(self, conversion=None, group=None, names=None, preserve_unknown_fields=None, scope=None, versions=None): # noqa: E501 + def __init__(self, conversion=None, group=None, names=None, preserve_unknown_fields=None, scope=None, versions=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceDefinitionSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._conversion = None self._group = None @@ -109,7 +114,7 @@ def group(self, group): :param group: The group of this V1CustomResourceDefinitionSpec. # noqa: E501 :type: str """ - if group is None: + if self.local_vars_configuration.client_side_validation and group is None: # noqa: E501 raise ValueError("Invalid value for `group`, must not be `None`") # noqa: E501 self._group = group @@ -132,7 +137,7 @@ def names(self, names): :param names: The names of this V1CustomResourceDefinitionSpec. # noqa: E501 :type: V1CustomResourceDefinitionNames """ - if names is None: + if self.local_vars_configuration.client_side_validation and names is None: # noqa: E501 raise ValueError("Invalid value for `names`, must not be `None`") # noqa: E501 self._names = names @@ -180,7 +185,7 @@ def scope(self, scope): :param scope: The scope of this V1CustomResourceDefinitionSpec. # noqa: E501 :type: str """ - if scope is None: + if self.local_vars_configuration.client_side_validation and scope is None: # noqa: E501 raise ValueError("Invalid value for `scope`, must not be `None`") # noqa: E501 self._scope = scope @@ -205,7 +210,7 @@ def versions(self, versions): :param versions: The versions of this V1CustomResourceDefinitionSpec. # noqa: E501 :type: list[V1CustomResourceDefinitionVersion] """ - if versions is None: + if self.local_vars_configuration.client_side_validation and versions is None: # noqa: E501 raise ValueError("Invalid value for `versions`, must not be `None`") # noqa: E501 self._versions = versions @@ -247,8 +252,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceDefinitionSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceDefinitionSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_definition_status.py b/kubernetes/client/models/v1_custom_resource_definition_status.py index a04c9bcd81..cbbfcd8a8e 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_status.py +++ b/kubernetes/client/models/v1_custom_resource_definition_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceDefinitionStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1CustomResourceDefinitionStatus(object): 'stored_versions': 'storedVersions' } - def __init__(self, accepted_names=None, conditions=None, stored_versions=None): # noqa: E501 + def __init__(self, accepted_names=None, conditions=None, stored_versions=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceDefinitionStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._accepted_names = None self._conditions = None @@ -73,7 +78,7 @@ def accepted_names(self, accepted_names): :param accepted_names: The accepted_names of this V1CustomResourceDefinitionStatus. # noqa: E501 :type: V1CustomResourceDefinitionNames """ - if accepted_names is None: + if self.local_vars_configuration.client_side_validation and accepted_names is None: # noqa: E501 raise ValueError("Invalid value for `accepted_names`, must not be `None`") # noqa: E501 self._accepted_names = accepted_names @@ -121,7 +126,7 @@ def stored_versions(self, stored_versions): :param stored_versions: The stored_versions of this V1CustomResourceDefinitionStatus. # noqa: E501 :type: list[str] """ - if stored_versions is None: + if self.local_vars_configuration.client_side_validation and stored_versions is None: # noqa: E501 raise ValueError("Invalid value for `stored_versions`, must not be `None`") # noqa: E501 self._stored_versions = stored_versions @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceDefinitionStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceDefinitionStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_definition_version.py b/kubernetes/client/models/v1_custom_resource_definition_version.py index c63c5208a1..a57dc1b167 100644 --- a/kubernetes/client/models/v1_custom_resource_definition_version.py +++ b/kubernetes/client/models/v1_custom_resource_definition_version.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceDefinitionVersion(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1CustomResourceDefinitionVersion(object): 'subresources': 'subresources' } - def __init__(self, additional_printer_columns=None, name=None, schema=None, served=None, storage=None, subresources=None): # noqa: E501 + def __init__(self, additional_printer_columns=None, name=None, schema=None, served=None, storage=None, subresources=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceDefinitionVersion - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._additional_printer_columns = None self._name = None @@ -112,7 +117,7 @@ def name(self, name): :param name: The name of this V1CustomResourceDefinitionVersion. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -158,7 +163,7 @@ def served(self, served): :param served: The served of this V1CustomResourceDefinitionVersion. # noqa: E501 :type: bool """ - if served is None: + if self.local_vars_configuration.client_side_validation and served is None: # noqa: E501 raise ValueError("Invalid value for `served`, must not be `None`") # noqa: E501 self._served = served @@ -183,7 +188,7 @@ def storage(self, storage): :param storage: The storage of this V1CustomResourceDefinitionVersion. # noqa: E501 :type: bool """ - if storage is None: + if self.local_vars_configuration.client_side_validation and storage is None: # noqa: E501 raise ValueError("Invalid value for `storage`, must not be `None`") # noqa: E501 self._storage = storage @@ -246,8 +251,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceDefinitionVersion): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceDefinitionVersion): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_subresource_scale.py b/kubernetes/client/models/v1_custom_resource_subresource_scale.py index eff3031712..bcad271f2b 100644 --- a/kubernetes/client/models/v1_custom_resource_subresource_scale.py +++ b/kubernetes/client/models/v1_custom_resource_subresource_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceSubresourceScale(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1CustomResourceSubresourceScale(object): 'status_replicas_path': 'statusReplicasPath' } - def __init__(self, label_selector_path=None, spec_replicas_path=None, status_replicas_path=None): # noqa: E501 + def __init__(self, label_selector_path=None, spec_replicas_path=None, status_replicas_path=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceSubresourceScale - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._label_selector_path = None self._spec_replicas_path = None @@ -98,7 +103,7 @@ def spec_replicas_path(self, spec_replicas_path): :param spec_replicas_path: The spec_replicas_path of this V1CustomResourceSubresourceScale. # noqa: E501 :type: str """ - if spec_replicas_path is None: + if self.local_vars_configuration.client_side_validation and spec_replicas_path is None: # noqa: E501 raise ValueError("Invalid value for `spec_replicas_path`, must not be `None`") # noqa: E501 self._spec_replicas_path = spec_replicas_path @@ -123,7 +128,7 @@ def status_replicas_path(self, status_replicas_path): :param status_replicas_path: The status_replicas_path of this V1CustomResourceSubresourceScale. # noqa: E501 :type: str """ - if status_replicas_path is None: + if self.local_vars_configuration.client_side_validation and status_replicas_path is None: # noqa: E501 raise ValueError("Invalid value for `status_replicas_path`, must not be `None`") # noqa: E501 self._status_replicas_path = status_replicas_path @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceSubresourceScale): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceSubresourceScale): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_subresources.py b/kubernetes/client/models/v1_custom_resource_subresources.py index b7e774f928..2f4df2148e 100644 --- a/kubernetes/client/models/v1_custom_resource_subresources.py +++ b/kubernetes/client/models/v1_custom_resource_subresources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceSubresources(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1CustomResourceSubresources(object): 'status': 'status' } - def __init__(self, scale=None, status=None): # noqa: E501 + def __init__(self, scale=None, status=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceSubresources - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._scale = None self._status = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceSubresources): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceSubresources): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_custom_resource_validation.py b/kubernetes/client/models/v1_custom_resource_validation.py index 6935ffd48b..b53d3649db 100644 --- a/kubernetes/client/models/v1_custom_resource_validation.py +++ b/kubernetes/client/models/v1_custom_resource_validation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1CustomResourceValidation(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1CustomResourceValidation(object): 'open_apiv3_schema': 'openAPIV3Schema' } - def __init__(self, open_apiv3_schema=None): # noqa: E501 + def __init__(self, open_apiv3_schema=None, local_vars_configuration=None): # noqa: E501 """V1CustomResourceValidation - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._open_apiv3_schema = None self.discriminator = None @@ -105,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, V1CustomResourceValidation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1CustomResourceValidation): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_daemon_endpoint.py b/kubernetes/client/models/v1_daemon_endpoint.py index 6d0f28af15..b7a278b006 100644 --- a/kubernetes/client/models/v1_daemon_endpoint.py +++ b/kubernetes/client/models/v1_daemon_endpoint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DaemonEndpoint(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1DaemonEndpoint(object): 'port': 'Port' } - def __init__(self, port=None): # noqa: E501 + def __init__(self, port=None, local_vars_configuration=None): # noqa: E501 """V1DaemonEndpoint - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._port = None self.discriminator = None @@ -66,7 +71,7 @@ def port(self, port): :param port: The port of this V1DaemonEndpoint. # noqa: E501 :type: int """ - if port is None: + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, V1DaemonEndpoint): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DaemonEndpoint): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_daemon_set.py b/kubernetes/client/models/v1_daemon_set.py index 6a5f85a81c..8e7b1d4c74 100644 --- a/kubernetes/client/models/v1_daemon_set.py +++ b/kubernetes/client/models/v1_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DaemonSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1DaemonSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1DaemonSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1DaemonSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DaemonSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_daemon_set_condition.py b/kubernetes/client/models/v1_daemon_set_condition.py index 0933dd8ea9..b8e9fc5044 100644 --- a/kubernetes/client/models/v1_daemon_set_condition.py +++ b/kubernetes/client/models/v1_daemon_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DaemonSetCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1DaemonSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1DaemonSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1DaemonSetCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1DaemonSetCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1DaemonSetCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DaemonSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_daemon_set_list.py b/kubernetes/client/models/v1_daemon_set_list.py index 4974efa49b..c675e28065 100644 --- a/kubernetes/client/models/v1_daemon_set_list.py +++ b/kubernetes/client/models/v1_daemon_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DaemonSetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1DaemonSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1DaemonSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1DaemonSetList. # noqa: E501 :type: list[V1DaemonSet] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1DaemonSetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DaemonSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_daemon_set_spec.py b/kubernetes/client/models/v1_daemon_set_spec.py index fc96c271d5..f2f5aa8071 100644 --- a/kubernetes/client/models/v1_daemon_set_spec.py +++ b/kubernetes/client/models/v1_daemon_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DaemonSetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1DaemonSetSpec(object): 'update_strategy': 'updateStrategy' } - def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, update_strategy=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, update_strategy=None, local_vars_configuration=None): # noqa: E501 """V1DaemonSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._revision_history_limit = None @@ -129,7 +134,7 @@ def selector(self, selector): :param selector: The selector of this V1DaemonSetSpec. # noqa: E501 :type: V1LabelSelector """ - if selector is None: + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @@ -152,7 +157,7 @@ def template(self, template): :param template: The template of this V1DaemonSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -215,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, V1DaemonSetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DaemonSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_daemon_set_status.py b/kubernetes/client/models/v1_daemon_set_status.py index b1e256fade..0cfb7f5574 100644 --- a/kubernetes/client/models/v1_daemon_set_status.py +++ b/kubernetes/client/models/v1_daemon_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DaemonSetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1DaemonSetStatus(object): 'updated_number_scheduled': 'updatedNumberScheduled' } - def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): # noqa: E501 + def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None, local_vars_configuration=None): # noqa: E501 """V1DaemonSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._collision_count = None self._conditions = None @@ -154,7 +159,7 @@ def current_number_scheduled(self, current_number_scheduled): :param current_number_scheduled: The current_number_scheduled of this V1DaemonSetStatus. # noqa: E501 :type: int """ - if current_number_scheduled is None: + if self.local_vars_configuration.client_side_validation and current_number_scheduled is None: # noqa: E501 raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") # noqa: E501 self._current_number_scheduled = current_number_scheduled @@ -179,7 +184,7 @@ def desired_number_scheduled(self, desired_number_scheduled): :param desired_number_scheduled: The desired_number_scheduled of this V1DaemonSetStatus. # noqa: E501 :type: int """ - if desired_number_scheduled is None: + if self.local_vars_configuration.client_side_validation and desired_number_scheduled is None: # noqa: E501 raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") # noqa: E501 self._desired_number_scheduled = desired_number_scheduled @@ -227,7 +232,7 @@ def number_misscheduled(self, number_misscheduled): :param number_misscheduled: The number_misscheduled of this V1DaemonSetStatus. # noqa: E501 :type: int """ - if number_misscheduled is None: + if self.local_vars_configuration.client_side_validation and number_misscheduled is None: # noqa: E501 raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") # noqa: E501 self._number_misscheduled = number_misscheduled @@ -252,7 +257,7 @@ def number_ready(self, number_ready): :param number_ready: The number_ready of this V1DaemonSetStatus. # noqa: E501 :type: int """ - if number_ready is None: + if self.local_vars_configuration.client_side_validation and number_ready is None: # noqa: E501 raise ValueError("Invalid value for `number_ready`, must not be `None`") # noqa: E501 self._number_ready = number_ready @@ -363,8 +368,11 @@ def __eq__(self, other): if not isinstance(other, V1DaemonSetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DaemonSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_daemon_set_update_strategy.py b/kubernetes/client/models/v1_daemon_set_update_strategy.py index a0b8f13fc7..338869fb14 100644 --- a/kubernetes/client/models/v1_daemon_set_update_strategy.py +++ b/kubernetes/client/models/v1_daemon_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DaemonSetUpdateStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1DaemonSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """V1DaemonSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1DaemonSetUpdateStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DaemonSetUpdateStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_delete_options.py b/kubernetes/client/models/v1_delete_options.py index 323981957a..43dcd4bf86 100644 --- a/kubernetes/client/models/v1_delete_options.py +++ b/kubernetes/client/models/v1_delete_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DeleteOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1DeleteOptions(object): 'propagation_policy': 'propagationPolicy' } - def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None): # noqa: E501 + def __init__(self, api_version=None, dry_run=None, grace_period_seconds=None, kind=None, orphan_dependents=None, preconditions=None, propagation_policy=None, local_vars_configuration=None): # noqa: E501 """V1DeleteOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._dry_run = None @@ -273,8 +278,11 @@ def __eq__(self, other): if not isinstance(other, V1DeleteOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DeleteOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_deployment.py b/kubernetes/client/models/v1_deployment.py index 9701bf11c3..bbf33cb38e 100644 --- a/kubernetes/client/models/v1_deployment.py +++ b/kubernetes/client/models/v1_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Deployment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1Deployment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1Deployment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1Deployment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Deployment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_deployment_condition.py b/kubernetes/client/models/v1_deployment_condition.py index c965a47601..cc3d703cb6 100644 --- a/kubernetes/client/models/v1_deployment_condition.py +++ b/kubernetes/client/models/v1_deployment_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DeploymentCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1DeploymentCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1DeploymentCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._last_update_time = None @@ -182,7 +187,7 @@ def status(self, status): :param status: The status of this V1DeploymentCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -207,7 +212,7 @@ def type(self, type): :param type: The type of this V1DeploymentCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1DeploymentCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DeploymentCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_deployment_list.py b/kubernetes/client/models/v1_deployment_list.py index a0fdd148ea..e79135c1d3 100644 --- a/kubernetes/client/models/v1_deployment_list.py +++ b/kubernetes/client/models/v1_deployment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DeploymentList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1DeploymentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1DeploymentList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1DeploymentList. # noqa: E501 :type: list[V1Deployment] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1DeploymentList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DeploymentList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_deployment_spec.py b/kubernetes/client/models/v1_deployment_spec.py index e25bed0867..25d9845826 100644 --- a/kubernetes/client/models/v1_deployment_spec.py +++ b/kubernetes/client/models/v1_deployment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DeploymentSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1DeploymentSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None, local_vars_configuration=None): # noqa: E501 """V1DeploymentSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._paused = None @@ -213,7 +218,7 @@ def selector(self, selector): :param selector: The selector of this V1DeploymentSpec. # noqa: E501 :type: V1LabelSelector """ - if selector is None: + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @@ -257,7 +262,7 @@ def template(self, template): :param template: The template of this V1DeploymentSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -299,8 +304,11 @@ def __eq__(self, other): if not isinstance(other, V1DeploymentSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DeploymentSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_deployment_status.py b/kubernetes/client/models/v1_deployment_status.py index b80ca9a67c..ba9d91f074 100644 --- a/kubernetes/client/models/v1_deployment_status.py +++ b/kubernetes/client/models/v1_deployment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DeploymentStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1DeploymentStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): # noqa: E501 + def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None, local_vars_configuration=None): # noqa: E501 """V1DeploymentStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._available_replicas = None self._collision_count = None @@ -303,8 +308,11 @@ def __eq__(self, other): if not isinstance(other, V1DeploymentStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DeploymentStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_deployment_strategy.py b/kubernetes/client/models/v1_deployment_strategy.py index d3d1ee005e..8f451a5257 100644 --- a/kubernetes/client/models/v1_deployment_strategy.py +++ b/kubernetes/client/models/v1_deployment_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DeploymentStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1DeploymentStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """V1DeploymentStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1DeploymentStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DeploymentStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_downward_api_projection.py b/kubernetes/client/models/v1_downward_api_projection.py index 345a3b3af3..23aa650369 100644 --- a/kubernetes/client/models/v1_downward_api_projection.py +++ b/kubernetes/client/models/v1_downward_api_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DownwardAPIProjection(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1DownwardAPIProjection(object): 'items': 'items' } - def __init__(self, items=None): # noqa: E501 + def __init__(self, items=None, local_vars_configuration=None): # noqa: E501 """V1DownwardAPIProjection - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._items = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1DownwardAPIProjection): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DownwardAPIProjection): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_downward_api_volume_file.py b/kubernetes/client/models/v1_downward_api_volume_file.py index e6d9bc4431..87ae63bce6 100644 --- a/kubernetes/client/models/v1_downward_api_volume_file.py +++ b/kubernetes/client/models/v1_downward_api_volume_file.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DownwardAPIVolumeFile(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1DownwardAPIVolumeFile(object): 'resource_field_ref': 'resourceFieldRef' } - def __init__(self, field_ref=None, mode=None, path=None, resource_field_ref=None): # noqa: E501 + def __init__(self, field_ref=None, mode=None, path=None, resource_field_ref=None, local_vars_configuration=None): # noqa: E501 """V1DownwardAPIVolumeFile - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._field_ref = None self._mode = None @@ -125,7 +130,7 @@ def path(self, path): :param path: The path of this V1DownwardAPIVolumeFile. # noqa: E501 :type: str """ - if path is None: + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1DownwardAPIVolumeFile): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DownwardAPIVolumeFile): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_downward_api_volume_source.py b/kubernetes/client/models/v1_downward_api_volume_source.py index ffff2af011..20e8023f53 100644 --- a/kubernetes/client/models/v1_downward_api_volume_source.py +++ b/kubernetes/client/models/v1_downward_api_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1DownwardAPIVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1DownwardAPIVolumeSource(object): 'items': 'items' } - def __init__(self, default_mode=None, items=None): # noqa: E501 + def __init__(self, default_mode=None, items=None, local_vars_configuration=None): # noqa: E501 """V1DownwardAPIVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._default_mode = None self._items = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1DownwardAPIVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1DownwardAPIVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_empty_dir_volume_source.py b/kubernetes/client/models/v1_empty_dir_volume_source.py index 93904d3e54..9c3460b668 100644 --- a/kubernetes/client/models/v1_empty_dir_volume_source.py +++ b/kubernetes/client/models/v1_empty_dir_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EmptyDirVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1EmptyDirVolumeSource(object): 'size_limit': 'sizeLimit' } - def __init__(self, medium=None, size_limit=None): # noqa: E501 + def __init__(self, medium=None, size_limit=None, local_vars_configuration=None): # noqa: E501 """V1EmptyDirVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._medium = None self._size_limit = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1EmptyDirVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EmptyDirVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_endpoint_address.py b/kubernetes/client/models/v1_endpoint_address.py index c949ebce11..74ed82fa81 100644 --- a/kubernetes/client/models/v1_endpoint_address.py +++ b/kubernetes/client/models/v1_endpoint_address.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EndpointAddress(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1EndpointAddress(object): 'target_ref': 'targetRef' } - def __init__(self, hostname=None, ip=None, node_name=None, target_ref=None): # noqa: E501 + def __init__(self, hostname=None, ip=None, node_name=None, target_ref=None, local_vars_configuration=None): # noqa: E501 """V1EndpointAddress - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._hostname = None self._ip = None @@ -104,7 +109,7 @@ def ip(self, ip): :param ip: The ip of this V1EndpointAddress. # noqa: E501 :type: str """ - if ip is None: + if self.local_vars_configuration.client_side_validation and ip is None: # noqa: E501 raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 self._ip = ip @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1EndpointAddress): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EndpointAddress): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_endpoint_port.py b/kubernetes/client/models/v1_endpoint_port.py index 787b4f2e2b..78e48d0fe5 100644 --- a/kubernetes/client/models/v1_endpoint_port.py +++ b/kubernetes/client/models/v1_endpoint_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EndpointPort(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1EndpointPort(object): 'protocol': 'protocol' } - def __init__(self, name=None, port=None, protocol=None): # noqa: E501 + def __init__(self, name=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501 """V1EndpointPort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._port = None @@ -99,7 +104,7 @@ def port(self, port): :param port: The port of this V1EndpointPort. # noqa: E501 :type: int """ - if port is None: + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1EndpointPort): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EndpointPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_endpoint_subset.py b/kubernetes/client/models/v1_endpoint_subset.py index 76cf65bc3b..d59e835519 100644 --- a/kubernetes/client/models/v1_endpoint_subset.py +++ b/kubernetes/client/models/v1_endpoint_subset.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EndpointSubset(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1EndpointSubset(object): 'ports': 'ports' } - def __init__(self, addresses=None, not_ready_addresses=None, ports=None): # noqa: E501 + def __init__(self, addresses=None, not_ready_addresses=None, ports=None, local_vars_configuration=None): # noqa: E501 """V1EndpointSubset - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._addresses = None self._not_ready_addresses = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1EndpointSubset): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EndpointSubset): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_endpoints.py b/kubernetes/client/models/v1_endpoints.py index 7585ad5728..d3227dfed3 100644 --- a/kubernetes/client/models/v1_endpoints.py +++ b/kubernetes/client/models/v1_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Endpoints(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1Endpoints(object): 'subsets': 'subsets' } - def __init__(self, api_version=None, kind=None, metadata=None, subsets=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, subsets=None, local_vars_configuration=None): # noqa: E501 """V1Endpoints - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1Endpoints): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Endpoints): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_endpoints_list.py b/kubernetes/client/models/v1_endpoints_list.py index 07a4afed13..f729a80b69 100644 --- a/kubernetes/client/models/v1_endpoints_list.py +++ b/kubernetes/client/models/v1_endpoints_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EndpointsList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1EndpointsList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1EndpointsList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1EndpointsList. # noqa: E501 :type: list[V1Endpoints] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1EndpointsList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EndpointsList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_env_from_source.py b/kubernetes/client/models/v1_env_from_source.py index 73f44253ee..b8d63b3105 100644 --- a/kubernetes/client/models/v1_env_from_source.py +++ b/kubernetes/client/models/v1_env_from_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EnvFromSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1EnvFromSource(object): 'secret_ref': 'secretRef' } - def __init__(self, config_map_ref=None, prefix=None, secret_ref=None): # noqa: E501 + def __init__(self, config_map_ref=None, prefix=None, secret_ref=None, local_vars_configuration=None): # noqa: E501 """V1EnvFromSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._config_map_ref = None self._prefix = None @@ -159,8 +164,11 @@ def __eq__(self, other): if not isinstance(other, V1EnvFromSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EnvFromSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_env_var.py b/kubernetes/client/models/v1_env_var.py index 814f8e8515..e1b89abeac 100644 --- a/kubernetes/client/models/v1_env_var.py +++ b/kubernetes/client/models/v1_env_var.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EnvVar(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1EnvVar(object): 'value_from': 'valueFrom' } - def __init__(self, name=None, value=None, value_from=None): # noqa: E501 + def __init__(self, name=None, value=None, value_from=None, local_vars_configuration=None): # noqa: E501 """V1EnvVar - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._value = None @@ -76,7 +81,7 @@ def name(self, name): :param name: The name of this V1EnvVar. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -162,8 +167,11 @@ def __eq__(self, other): if not isinstance(other, V1EnvVar): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EnvVar): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_env_var_source.py b/kubernetes/client/models/v1_env_var_source.py index 48f0078872..18feafe6db 100644 --- a/kubernetes/client/models/v1_env_var_source.py +++ b/kubernetes/client/models/v1_env_var_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EnvVarSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1EnvVarSource(object): 'secret_key_ref': 'secretKeyRef' } - def __init__(self, config_map_key_ref=None, field_ref=None, resource_field_ref=None, secret_key_ref=None): # noqa: E501 + def __init__(self, config_map_key_ref=None, field_ref=None, resource_field_ref=None, secret_key_ref=None, local_vars_configuration=None): # noqa: E501 """V1EnvVarSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._config_map_key_ref = None self._field_ref = None @@ -183,8 +188,11 @@ def __eq__(self, other): if not isinstance(other, V1EnvVarSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EnvVarSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_ephemeral_container.py b/kubernetes/client/models/v1_ephemeral_container.py index 21fbb23d1d..f47c6deb4f 100644 --- a/kubernetes/client/models/v1_ephemeral_container.py +++ b/kubernetes/client/models/v1_ephemeral_container.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EphemeralContainer(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -82,8 +84,11 @@ class V1EphemeralContainer(object): 'working_dir': 'workingDir' } - def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, target_container_name=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None): # noqa: E501 + def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resources=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, target_container_name=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501 """V1EphemeralContainer - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._args = None self._command = None @@ -356,7 +361,7 @@ def name(self, name): :param name: The name of this V1EphemeralContainer. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -712,8 +717,11 @@ def __eq__(self, other): if not isinstance(other, V1EphemeralContainer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EphemeralContainer): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_event.py b/kubernetes/client/models/v1_event.py index 54175fdb15..c4a121ee54 100644 --- a/kubernetes/client/models/v1_event.py +++ b/kubernetes/client/models/v1_event.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Event(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -70,8 +72,11 @@ class V1Event(object): 'type': 'type' } - def __init__(self, action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None): # noqa: E501 + def __init__(self, action=None, api_version=None, count=None, event_time=None, first_timestamp=None, involved_object=None, kind=None, last_timestamp=None, message=None, metadata=None, reason=None, related=None, reporting_component=None, reporting_instance=None, series=None, source=None, type=None, local_vars_configuration=None): # noqa: E501 """V1Event - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._action = None self._api_version = None @@ -258,7 +263,7 @@ def involved_object(self, involved_object): :param involved_object: The involved_object of this V1Event. # noqa: E501 :type: V1ObjectReference """ - if involved_object is None: + if self.local_vars_configuration.client_side_validation and involved_object is None: # noqa: E501 raise ValueError("Invalid value for `involved_object`, must not be `None`") # noqa: E501 self._involved_object = involved_object @@ -350,7 +355,7 @@ def metadata(self, metadata): :param metadata: The metadata of this V1Event. # noqa: E501 :type: V1ObjectMeta """ - if metadata is None: + if self.local_vars_configuration.client_side_validation and metadata is None: # noqa: E501 raise ValueError("Invalid value for `metadata`, must not be `None`") # noqa: E501 self._metadata = metadata @@ -547,8 +552,11 @@ def __eq__(self, other): if not isinstance(other, V1Event): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Event): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_event_list.py b/kubernetes/client/models/v1_event_list.py index d5a86b9c58..a0a045e5e2 100644 --- a/kubernetes/client/models/v1_event_list.py +++ b/kubernetes/client/models/v1_event_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EventList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1EventList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1EventList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1EventList. # noqa: E501 :type: list[V1Event] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1EventList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EventList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_event_series.py b/kubernetes/client/models/v1_event_series.py index 10e72e7a05..c83ee2e8ff 100644 --- a/kubernetes/client/models/v1_event_series.py +++ b/kubernetes/client/models/v1_event_series.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EventSeries(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1EventSeries(object): 'state': 'state' } - def __init__(self, count=None, last_observed_time=None, state=None): # noqa: E501 + def __init__(self, count=None, last_observed_time=None, state=None, local_vars_configuration=None): # noqa: E501 """V1EventSeries - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._count = None self._last_observed_time = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1EventSeries): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EventSeries): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_event_source.py b/kubernetes/client/models/v1_event_source.py index 5e274dd26f..1d117a4231 100644 --- a/kubernetes/client/models/v1_event_source.py +++ b/kubernetes/client/models/v1_event_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1EventSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1EventSource(object): 'host': 'host' } - def __init__(self, component=None, host=None): # noqa: E501 + def __init__(self, component=None, host=None, local_vars_configuration=None): # noqa: E501 """V1EventSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._component = None self._host = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1EventSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1EventSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_exec_action.py b/kubernetes/client/models/v1_exec_action.py index 86c8e01855..665a2d86ef 100644 --- a/kubernetes/client/models/v1_exec_action.py +++ b/kubernetes/client/models/v1_exec_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ExecAction(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1ExecAction(object): 'command': 'command' } - def __init__(self, command=None): # noqa: E501 + def __init__(self, command=None, local_vars_configuration=None): # noqa: E501 """V1ExecAction - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._command = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1ExecAction): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ExecAction): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_external_documentation.py b/kubernetes/client/models/v1_external_documentation.py index fbfe2ea4d6..75bb770c35 100644 --- a/kubernetes/client/models/v1_external_documentation.py +++ b/kubernetes/client/models/v1_external_documentation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ExternalDocumentation(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ExternalDocumentation(object): 'url': 'url' } - def __init__(self, description=None, url=None): # noqa: E501 + def __init__(self, description=None, url=None, local_vars_configuration=None): # noqa: E501 """V1ExternalDocumentation - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._description = None self._url = None @@ -131,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, V1ExternalDocumentation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ExternalDocumentation): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_fc_volume_source.py b/kubernetes/client/models/v1_fc_volume_source.py index 32cb73a67b..5f551d0ebf 100644 --- a/kubernetes/client/models/v1_fc_volume_source.py +++ b/kubernetes/client/models/v1_fc_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1FCVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1FCVolumeSource(object): 'wwids': 'wwids' } - def __init__(self, fs_type=None, lun=None, read_only=None, target_ww_ns=None, wwids=None): # noqa: E501 + def __init__(self, fs_type=None, lun=None, read_only=None, target_ww_ns=None, wwids=None, local_vars_configuration=None): # noqa: E501 """V1FCVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._lun = None @@ -219,8 +224,11 @@ def __eq__(self, other): if not isinstance(other, V1FCVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1FCVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_flex_persistent_volume_source.py b/kubernetes/client/models/v1_flex_persistent_volume_source.py index 96af3c398c..3e9783eb27 100644 --- a/kubernetes/client/models/v1_flex_persistent_volume_source.py +++ b/kubernetes/client/models/v1_flex_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1FlexPersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1FlexPersistentVolumeSource(object): 'secret_ref': 'secretRef' } - def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secret_ref=None): # noqa: E501 + def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secret_ref=None, local_vars_configuration=None): # noqa: E501 """V1FlexPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._driver = None self._fs_type = None @@ -86,7 +91,7 @@ def driver(self, driver): :param driver: The driver of this V1FlexPersistentVolumeSource. # noqa: E501 :type: str """ - if driver is None: + if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @@ -218,8 +223,11 @@ def __eq__(self, other): if not isinstance(other, V1FlexPersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1FlexPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_flex_volume_source.py b/kubernetes/client/models/v1_flex_volume_source.py index 9be14de79e..837d3b3977 100644 --- a/kubernetes/client/models/v1_flex_volume_source.py +++ b/kubernetes/client/models/v1_flex_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1FlexVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1FlexVolumeSource(object): 'secret_ref': 'secretRef' } - def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secret_ref=None): # noqa: E501 + def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secret_ref=None, local_vars_configuration=None): # noqa: E501 """V1FlexVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._driver = None self._fs_type = None @@ -86,7 +91,7 @@ def driver(self, driver): :param driver: The driver of this V1FlexVolumeSource. # noqa: E501 :type: str """ - if driver is None: + if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501 raise ValueError("Invalid value for `driver`, must not be `None`") # noqa: E501 self._driver = driver @@ -218,8 +223,11 @@ def __eq__(self, other): if not isinstance(other, V1FlexVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1FlexVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_flocker_volume_source.py b/kubernetes/client/models/v1_flocker_volume_source.py index 5860795827..bfacc8e5b1 100644 --- a/kubernetes/client/models/v1_flocker_volume_source.py +++ b/kubernetes/client/models/v1_flocker_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1FlockerVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1FlockerVolumeSource(object): 'dataset_uuid': 'datasetUUID' } - def __init__(self, dataset_name=None, dataset_uuid=None): # noqa: E501 + def __init__(self, dataset_name=None, dataset_uuid=None, local_vars_configuration=None): # noqa: E501 """V1FlockerVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._dataset_name = None self._dataset_uuid = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1FlockerVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1FlockerVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py index 0f2d01add0..502d8298df 100644 --- a/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1GCEPersistentDiskVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1GCEPersistentDiskVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, fs_type=None, partition=None, pd_name=None, read_only=None): # noqa: E501 + def __init__(self, fs_type=None, partition=None, pd_name=None, read_only=None, local_vars_configuration=None): # noqa: E501 """V1GCEPersistentDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._partition = None @@ -127,7 +132,7 @@ def pd_name(self, pd_name): :param pd_name: The pd_name of this V1GCEPersistentDiskVolumeSource. # noqa: E501 :type: str """ - if pd_name is None: + if self.local_vars_configuration.client_side_validation and pd_name is None: # noqa: E501 raise ValueError("Invalid value for `pd_name`, must not be `None`") # noqa: E501 self._pd_name = pd_name @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V1GCEPersistentDiskVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1GCEPersistentDiskVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_git_repo_volume_source.py b/kubernetes/client/models/v1_git_repo_volume_source.py index 65570f8a29..5ec77010ce 100644 --- a/kubernetes/client/models/v1_git_repo_volume_source.py +++ b/kubernetes/client/models/v1_git_repo_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1GitRepoVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1GitRepoVolumeSource(object): 'revision': 'revision' } - def __init__(self, directory=None, repository=None, revision=None): # noqa: E501 + def __init__(self, directory=None, repository=None, revision=None, local_vars_configuration=None): # noqa: E501 """V1GitRepoVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._directory = None self._repository = None @@ -99,7 +104,7 @@ def repository(self, repository): :param repository: The repository of this V1GitRepoVolumeSource. # noqa: E501 :type: str """ - if repository is None: + if self.local_vars_configuration.client_side_validation and repository is None: # noqa: E501 raise ValueError("Invalid value for `repository`, must not be `None`") # noqa: E501 self._repository = repository @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1GitRepoVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1GitRepoVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py b/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py index aadfafe1ea..44e5576b4e 100644 --- a/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py +++ b/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1GlusterfsPersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1GlusterfsPersistentVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, endpoints=None, endpoints_namespace=None, path=None, read_only=None): # noqa: E501 + def __init__(self, endpoints=None, endpoints_namespace=None, path=None, read_only=None, local_vars_configuration=None): # noqa: E501 """V1GlusterfsPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._endpoints = None self._endpoints_namespace = None @@ -80,7 +85,7 @@ def endpoints(self, endpoints): :param endpoints: The endpoints of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :type: str """ - if endpoints is None: + if self.local_vars_configuration.client_side_validation and endpoints is None: # noqa: E501 raise ValueError("Invalid value for `endpoints`, must not be `None`") # noqa: E501 self._endpoints = endpoints @@ -128,7 +133,7 @@ def path(self, path): :param path: The path of this V1GlusterfsPersistentVolumeSource. # noqa: E501 :type: str """ - if path is None: + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1GlusterfsPersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1GlusterfsPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_glusterfs_volume_source.py b/kubernetes/client/models/v1_glusterfs_volume_source.py index 6314824419..64fa1a3e38 100644 --- a/kubernetes/client/models/v1_glusterfs_volume_source.py +++ b/kubernetes/client/models/v1_glusterfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1GlusterfsVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1GlusterfsVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, endpoints=None, path=None, read_only=None): # noqa: E501 + def __init__(self, endpoints=None, path=None, read_only=None, local_vars_configuration=None): # noqa: E501 """V1GlusterfsVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._endpoints = None self._path = None @@ -75,7 +80,7 @@ def endpoints(self, endpoints): :param endpoints: The endpoints of this V1GlusterfsVolumeSource. # noqa: E501 :type: str """ - if endpoints is None: + if self.local_vars_configuration.client_side_validation and endpoints is None: # noqa: E501 raise ValueError("Invalid value for `endpoints`, must not be `None`") # noqa: E501 self._endpoints = endpoints @@ -100,7 +105,7 @@ def path(self, path): :param path: The path of this V1GlusterfsVolumeSource. # noqa: E501 :type: str """ - if path is None: + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1GlusterfsVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1GlusterfsVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_group_version_for_discovery.py b/kubernetes/client/models/v1_group_version_for_discovery.py index 0ce9cdda64..2bdaeed534 100644 --- a/kubernetes/client/models/v1_group_version_for_discovery.py +++ b/kubernetes/client/models/v1_group_version_for_discovery.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1GroupVersionForDiscovery(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1GroupVersionForDiscovery(object): 'version': 'version' } - def __init__(self, group_version=None, version=None): # noqa: E501 + def __init__(self, group_version=None, version=None, local_vars_configuration=None): # noqa: E501 """V1GroupVersionForDiscovery - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._group_version = None self._version = None @@ -70,7 +75,7 @@ def group_version(self, group_version): :param group_version: The group_version of this V1GroupVersionForDiscovery. # noqa: E501 :type: str """ - if group_version is None: + if self.local_vars_configuration.client_side_validation and group_version is None: # noqa: E501 raise ValueError("Invalid value for `group_version`, must not be `None`") # noqa: E501 self._group_version = group_version @@ -95,7 +100,7 @@ def version(self, version): :param version: The version of this V1GroupVersionForDiscovery. # noqa: E501 :type: str """ - if version is None: + if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501 raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501 self._version = version @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, V1GroupVersionForDiscovery): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1GroupVersionForDiscovery): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_handler.py b/kubernetes/client/models/v1_handler.py index 9854dbeb8b..a2bf49abbc 100644 --- a/kubernetes/client/models/v1_handler.py +++ b/kubernetes/client/models/v1_handler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Handler(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1Handler(object): 'tcp_socket': 'tcpSocket' } - def __init__(self, _exec=None, http_get=None, tcp_socket=None): # noqa: E501 + def __init__(self, _exec=None, http_get=None, tcp_socket=None, local_vars_configuration=None): # noqa: E501 """V1Handler - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.__exec = None self._http_get = None @@ -157,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, V1Handler): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Handler): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py index db72d618ec..64ee7a41a6 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1HorizontalPodAutoscaler(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1HorizontalPodAutoscaler(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1HorizontalPodAutoscaler - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1HorizontalPodAutoscaler): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1HorizontalPodAutoscaler): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py index 958318f703..581d4cfc2a 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1HorizontalPodAutoscalerList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1HorizontalPodAutoscalerList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1HorizontalPodAutoscalerList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1HorizontalPodAutoscalerList. # noqa: E501 :type: list[V1HorizontalPodAutoscaler] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1HorizontalPodAutoscalerList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1HorizontalPodAutoscalerList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py index b7acf11fb5..9f573881eb 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1HorizontalPodAutoscalerSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1HorizontalPodAutoscalerSpec(object): 'target_cpu_utilization_percentage': 'targetCPUUtilizationPercentage' } - def __init__(self, max_replicas=None, min_replicas=None, scale_target_ref=None, target_cpu_utilization_percentage=None): # noqa: E501 + def __init__(self, max_replicas=None, min_replicas=None, scale_target_ref=None, target_cpu_utilization_percentage=None, local_vars_configuration=None): # noqa: E501 """V1HorizontalPodAutoscalerSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_replicas = None self._min_replicas = None @@ -80,7 +85,7 @@ def max_replicas(self, max_replicas): :param max_replicas: The max_replicas of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ - if max_replicas is None: + if self.local_vars_configuration.client_side_validation and max_replicas is None: # noqa: E501 raise ValueError("Invalid value for `max_replicas`, must not be `None`") # noqa: E501 self._max_replicas = max_replicas @@ -126,7 +131,7 @@ def scale_target_ref(self, scale_target_ref): :param scale_target_ref: The scale_target_ref of this V1HorizontalPodAutoscalerSpec. # noqa: E501 :type: V1CrossVersionObjectReference """ - if scale_target_ref is None: + if self.local_vars_configuration.client_side_validation and scale_target_ref is None: # noqa: E501 raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") # noqa: E501 self._scale_target_ref = scale_target_ref @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1HorizontalPodAutoscalerSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1HorizontalPodAutoscalerSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py index 2e2ee37736..eb37e62edd 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1HorizontalPodAutoscalerStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1HorizontalPodAutoscalerStatus(object): 'observed_generation': 'observedGeneration' } - def __init__(self, current_cpu_utilization_percentage=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): # noqa: E501 + def __init__(self, current_cpu_utilization_percentage=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None, local_vars_configuration=None): # noqa: E501 """V1HorizontalPodAutoscalerStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._current_cpu_utilization_percentage = None self._current_replicas = None @@ -108,7 +113,7 @@ def current_replicas(self, current_replicas): :param current_replicas: The current_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ - if current_replicas is None: + if self.local_vars_configuration.client_side_validation and current_replicas is None: # noqa: E501 raise ValueError("Invalid value for `current_replicas`, must not be `None`") # noqa: E501 self._current_replicas = current_replicas @@ -133,7 +138,7 @@ def desired_replicas(self, desired_replicas): :param desired_replicas: The desired_replicas of this V1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ - if desired_replicas is None: + if self.local_vars_configuration.client_side_validation and desired_replicas is None: # noqa: E501 raise ValueError("Invalid value for `desired_replicas`, must not be `None`") # noqa: E501 self._desired_replicas = desired_replicas @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1HorizontalPodAutoscalerStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1HorizontalPodAutoscalerStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_host_alias.py b/kubernetes/client/models/v1_host_alias.py index 2fdfd01ea8..8b027fc7fe 100644 --- a/kubernetes/client/models/v1_host_alias.py +++ b/kubernetes/client/models/v1_host_alias.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1HostAlias(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1HostAlias(object): 'ip': 'ip' } - def __init__(self, hostnames=None, ip=None): # noqa: E501 + def __init__(self, hostnames=None, ip=None, local_vars_configuration=None): # noqa: E501 """V1HostAlias - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._hostnames = None self._ip = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1HostAlias): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1HostAlias): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_host_path_volume_source.py b/kubernetes/client/models/v1_host_path_volume_source.py index 5fd926fa0e..9a0f183da4 100644 --- a/kubernetes/client/models/v1_host_path_volume_source.py +++ b/kubernetes/client/models/v1_host_path_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1HostPathVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1HostPathVolumeSource(object): 'type': 'type' } - def __init__(self, path=None, type=None): # noqa: E501 + def __init__(self, path=None, type=None, local_vars_configuration=None): # noqa: E501 """V1HostPathVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._path = None self._type = None @@ -71,7 +76,7 @@ def path(self, path): :param path: The path of this V1HostPathVolumeSource. # noqa: E501 :type: str """ - if path is None: + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1HostPathVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1HostPathVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_http_get_action.py b/kubernetes/client/models/v1_http_get_action.py index 4cd29a3d16..2b108ea28e 100644 --- a/kubernetes/client/models/v1_http_get_action.py +++ b/kubernetes/client/models/v1_http_get_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1HTTPGetAction(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1HTTPGetAction(object): 'scheme': 'scheme' } - def __init__(self, host=None, http_headers=None, path=None, port=None, scheme=None): # noqa: E501 + def __init__(self, host=None, http_headers=None, path=None, port=None, scheme=None, local_vars_configuration=None): # noqa: E501 """V1HTTPGetAction - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._host = None self._http_headers = None @@ -155,7 +160,7 @@ def port(self, port): :param port: The port of this V1HTTPGetAction. # noqa: E501 :type: object """ - if port is None: + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port @@ -220,8 +225,11 @@ def __eq__(self, other): if not isinstance(other, V1HTTPGetAction): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1HTTPGetAction): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_http_header.py b/kubernetes/client/models/v1_http_header.py index 2707c7e2df..fd3f6d7672 100644 --- a/kubernetes/client/models/v1_http_header.py +++ b/kubernetes/client/models/v1_http_header.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1HTTPHeader(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1HTTPHeader(object): 'value': 'value' } - def __init__(self, name=None, value=None): # noqa: E501 + def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 """V1HTTPHeader - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._value = None @@ -70,7 +75,7 @@ def name(self, name): :param name: The name of this V1HTTPHeader. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -95,7 +100,7 @@ def value(self, value): :param value: The value of this V1HTTPHeader. # noqa: E501 :type: str """ - if value is None: + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, V1HTTPHeader): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1HTTPHeader): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_ip_block.py b/kubernetes/client/models/v1_ip_block.py index e7d666d00b..a9ad09ed12 100644 --- a/kubernetes/client/models/v1_ip_block.py +++ b/kubernetes/client/models/v1_ip_block.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1IPBlock(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1IPBlock(object): '_except': 'except' } - def __init__(self, cidr=None, _except=None): # noqa: E501 + def __init__(self, cidr=None, _except=None, local_vars_configuration=None): # noqa: E501 """V1IPBlock - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._cidr = None self.__except = None @@ -71,7 +76,7 @@ def cidr(self, cidr): :param cidr: The cidr of this V1IPBlock. # noqa: E501 :type: str """ - if cidr is None: + if self.local_vars_configuration.client_side_validation and cidr is None: # noqa: E501 raise ValueError("Invalid value for `cidr`, must not be `None`") # noqa: E501 self._cidr = cidr @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1IPBlock): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1IPBlock): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_iscsi_persistent_volume_source.py b/kubernetes/client/models/v1_iscsi_persistent_volume_source.py index fea8953afe..f8eaf3d94d 100644 --- a/kubernetes/client/models/v1_iscsi_persistent_volume_source.py +++ b/kubernetes/client/models/v1_iscsi_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ISCSIPersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -58,8 +60,11 @@ class V1ISCSIPersistentVolumeSource(object): 'target_portal': 'targetPortal' } - def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None): # noqa: E501 + def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None, local_vars_configuration=None): # noqa: E501 """V1ISCSIPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._chap_auth_discovery = None self._chap_auth_session = None @@ -206,7 +211,7 @@ def iqn(self, iqn): :param iqn: The iqn of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: str """ - if iqn is None: + if self.local_vars_configuration.client_side_validation and iqn is None: # noqa: E501 raise ValueError("Invalid value for `iqn`, must not be `None`") # noqa: E501 self._iqn = iqn @@ -254,7 +259,7 @@ def lun(self, lun): :param lun: The lun of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: int """ - if lun is None: + if self.local_vars_configuration.client_side_validation and lun is None: # noqa: E501 raise ValueError("Invalid value for `lun`, must not be `None`") # noqa: E501 self._lun = lun @@ -346,7 +351,7 @@ def target_portal(self, target_portal): :param target_portal: The target_portal of this V1ISCSIPersistentVolumeSource. # noqa: E501 :type: str """ - if target_portal is None: + if self.local_vars_configuration.client_side_validation and target_portal is None: # noqa: E501 raise ValueError("Invalid value for `target_portal`, must not be `None`") # noqa: E501 self._target_portal = target_portal @@ -388,8 +393,11 @@ def __eq__(self, other): if not isinstance(other, V1ISCSIPersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ISCSIPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_iscsi_volume_source.py b/kubernetes/client/models/v1_iscsi_volume_source.py index 8dd1edd0d0..a5ab55abb9 100644 --- a/kubernetes/client/models/v1_iscsi_volume_source.py +++ b/kubernetes/client/models/v1_iscsi_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ISCSIVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -58,8 +60,11 @@ class V1ISCSIVolumeSource(object): 'target_portal': 'targetPortal' } - def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None): # noqa: E501 + def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None, local_vars_configuration=None): # noqa: E501 """V1ISCSIVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._chap_auth_discovery = None self._chap_auth_session = None @@ -206,7 +211,7 @@ def iqn(self, iqn): :param iqn: The iqn of this V1ISCSIVolumeSource. # noqa: E501 :type: str """ - if iqn is None: + if self.local_vars_configuration.client_side_validation and iqn is None: # noqa: E501 raise ValueError("Invalid value for `iqn`, must not be `None`") # noqa: E501 self._iqn = iqn @@ -254,7 +259,7 @@ def lun(self, lun): :param lun: The lun of this V1ISCSIVolumeSource. # noqa: E501 :type: int """ - if lun is None: + if self.local_vars_configuration.client_side_validation and lun is None: # noqa: E501 raise ValueError("Invalid value for `lun`, must not be `None`") # noqa: E501 self._lun = lun @@ -346,7 +351,7 @@ def target_portal(self, target_portal): :param target_portal: The target_portal of this V1ISCSIVolumeSource. # noqa: E501 :type: str """ - if target_portal is None: + if self.local_vars_configuration.client_side_validation and target_portal is None: # noqa: E501 raise ValueError("Invalid value for `target_portal`, must not be `None`") # noqa: E501 self._target_portal = target_portal @@ -388,8 +393,11 @@ def __eq__(self, other): if not isinstance(other, V1ISCSIVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ISCSIVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_job.py b/kubernetes/client/models/v1_job.py index 312c9a89ec..aa98c92e2b 100644 --- a/kubernetes/client/models/v1_job.py +++ b/kubernetes/client/models/v1_job.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Job(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1Job(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1Job - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1Job): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Job): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_job_condition.py b/kubernetes/client/models/v1_job_condition.py index da07d0409d..d2a8bf140e 100644 --- a/kubernetes/client/models/v1_job_condition.py +++ b/kubernetes/client/models/v1_job_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1JobCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1JobCondition(object): 'type': 'type' } - def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1JobCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_probe_time = None self._last_transition_time = None @@ -182,7 +187,7 @@ def status(self, status): :param status: The status of this V1JobCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -207,7 +212,7 @@ def type(self, type): :param type: The type of this V1JobCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1JobCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1JobCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_job_list.py b/kubernetes/client/models/v1_job_list.py index 208729186f..c8bf93a8f3 100644 --- a/kubernetes/client/models/v1_job_list.py +++ b/kubernetes/client/models/v1_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1JobList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1JobList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1JobList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1JobList. # noqa: E501 :type: list[V1Job] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1JobList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1JobList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_job_spec.py b/kubernetes/client/models/v1_job_spec.py index 23f6a68033..60a159c527 100644 --- a/kubernetes/client/models/v1_job_spec.py +++ b/kubernetes/client/models/v1_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1JobSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1JobSpec(object): 'ttl_seconds_after_finished': 'ttlSecondsAfterFinished' } - def __init__(self, active_deadline_seconds=None, backoff_limit=None, completions=None, manual_selector=None, parallelism=None, selector=None, template=None, ttl_seconds_after_finished=None): # noqa: E501 + def __init__(self, active_deadline_seconds=None, backoff_limit=None, completions=None, manual_selector=None, parallelism=None, selector=None, template=None, ttl_seconds_after_finished=None, local_vars_configuration=None): # noqa: E501 """V1JobSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._active_deadline_seconds = None self._backoff_limit = None @@ -235,7 +240,7 @@ def template(self, template): :param template: The template of this V1JobSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -300,8 +305,11 @@ def __eq__(self, other): if not isinstance(other, V1JobSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1JobSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_job_status.py b/kubernetes/client/models/v1_job_status.py index 61036bd148..db7cf3c989 100644 --- a/kubernetes/client/models/v1_job_status.py +++ b/kubernetes/client/models/v1_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1JobStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1JobStatus(object): 'succeeded': 'succeeded' } - def __init__(self, active=None, completion_time=None, conditions=None, failed=None, start_time=None, succeeded=None): # noqa: E501 + def __init__(self, active=None, completion_time=None, conditions=None, failed=None, start_time=None, succeeded=None, local_vars_configuration=None): # noqa: E501 """V1JobStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._active = None self._completion_time = None @@ -247,8 +252,11 @@ def __eq__(self, other): if not isinstance(other, V1JobStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1JobStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_json_schema_props.py b/kubernetes/client/models/v1_json_schema_props.py index 738396ef58..a7d452d2c2 100644 --- a/kubernetes/client/models/v1_json_schema_props.py +++ b/kubernetes/client/models/v1_json_schema_props.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1JSONSchemaProps(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -120,8 +122,11 @@ class V1JSONSchemaProps(object): 'x_kubernetes_preserve_unknown_fields': 'x-kubernetes-preserve-unknown-fields' } - def __init__(self, ref=None, schema=None, additional_items=None, additional_properties=None, all_of=None, any_of=None, default=None, definitions=None, dependencies=None, description=None, enum=None, example=None, exclusive_maximum=None, exclusive_minimum=None, external_docs=None, format=None, id=None, items=None, max_items=None, max_length=None, max_properties=None, maximum=None, min_items=None, min_length=None, min_properties=None, minimum=None, multiple_of=None, _not=None, nullable=None, one_of=None, pattern=None, pattern_properties=None, properties=None, required=None, title=None, type=None, unique_items=None, x_kubernetes_embedded_resource=None, x_kubernetes_int_or_string=None, x_kubernetes_list_map_keys=None, x_kubernetes_list_type=None, x_kubernetes_preserve_unknown_fields=None): # noqa: E501 + def __init__(self, ref=None, schema=None, additional_items=None, additional_properties=None, all_of=None, any_of=None, default=None, definitions=None, dependencies=None, description=None, enum=None, example=None, exclusive_maximum=None, exclusive_minimum=None, external_docs=None, format=None, id=None, items=None, max_items=None, max_length=None, max_properties=None, maximum=None, min_items=None, min_length=None, min_properties=None, minimum=None, multiple_of=None, _not=None, nullable=None, one_of=None, pattern=None, pattern_properties=None, properties=None, required=None, title=None, type=None, unique_items=None, x_kubernetes_embedded_resource=None, x_kubernetes_int_or_string=None, x_kubernetes_list_map_keys=None, x_kubernetes_list_type=None, x_kubernetes_preserve_unknown_fields=None, local_vars_configuration=None): # noqa: E501 """V1JSONSchemaProps - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ref = None self._schema = None @@ -1191,8 +1196,11 @@ def __eq__(self, other): if not isinstance(other, V1JSONSchemaProps): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1JSONSchemaProps): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_key_to_path.py b/kubernetes/client/models/v1_key_to_path.py index ef4862c28d..0a135d3937 100644 --- a/kubernetes/client/models/v1_key_to_path.py +++ b/kubernetes/client/models/v1_key_to_path.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1KeyToPath(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1KeyToPath(object): 'path': 'path' } - def __init__(self, key=None, mode=None, path=None): # noqa: E501 + def __init__(self, key=None, mode=None, path=None, local_vars_configuration=None): # noqa: E501 """V1KeyToPath - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._key = None self._mode = None @@ -75,7 +80,7 @@ def key(self, key): :param key: The key of this V1KeyToPath. # noqa: E501 :type: str """ - if key is None: + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @@ -123,7 +128,7 @@ def path(self, path): :param path: The path of this V1KeyToPath. # noqa: E501 :type: str """ - if path is None: + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1KeyToPath): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1KeyToPath): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_label_selector.py b/kubernetes/client/models/v1_label_selector.py index 898e2a1f1d..500896c15f 100644 --- a/kubernetes/client/models/v1_label_selector.py +++ b/kubernetes/client/models/v1_label_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LabelSelector(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1LabelSelector(object): 'match_labels': 'matchLabels' } - def __init__(self, match_expressions=None, match_labels=None): # noqa: E501 + def __init__(self, match_expressions=None, match_labels=None, local_vars_configuration=None): # noqa: E501 """V1LabelSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._match_expressions = None self._match_labels = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1LabelSelector): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LabelSelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_label_selector_requirement.py b/kubernetes/client/models/v1_label_selector_requirement.py index 041b062efc..30b4205783 100644 --- a/kubernetes/client/models/v1_label_selector_requirement.py +++ b/kubernetes/client/models/v1_label_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LabelSelectorRequirement(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1LabelSelectorRequirement(object): 'values': 'values' } - def __init__(self, key=None, operator=None, values=None): # noqa: E501 + def __init__(self, key=None, operator=None, values=None, local_vars_configuration=None): # noqa: E501 """V1LabelSelectorRequirement - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._key = None self._operator = None @@ -75,7 +80,7 @@ def key(self, key): :param key: The key of this V1LabelSelectorRequirement. # noqa: E501 :type: str """ - if key is None: + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @@ -100,7 +105,7 @@ def operator(self, operator): :param operator: The operator of this V1LabelSelectorRequirement. # noqa: E501 :type: str """ - if operator is None: + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 self._operator = operator @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1LabelSelectorRequirement): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LabelSelectorRequirement): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_lease.py b/kubernetes/client/models/v1_lease.py index da36acd3ac..13e0dfc68f 100644 --- a/kubernetes/client/models/v1_lease.py +++ b/kubernetes/client/models/v1_lease.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Lease(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1Lease(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1Lease - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1Lease): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Lease): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_lease_list.py b/kubernetes/client/models/v1_lease_list.py index 4b84b6f035..2e07ffb6ce 100644 --- a/kubernetes/client/models/v1_lease_list.py +++ b/kubernetes/client/models/v1_lease_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LeaseList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1LeaseList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1LeaseList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1LeaseList. # noqa: E501 :type: list[V1Lease] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1LeaseList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LeaseList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_lease_spec.py b/kubernetes/client/models/v1_lease_spec.py index 41908cdca0..d5a77f4942 100644 --- a/kubernetes/client/models/v1_lease_spec.py +++ b/kubernetes/client/models/v1_lease_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LeaseSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1LeaseSpec(object): 'renew_time': 'renewTime' } - def __init__(self, acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, renew_time=None): # noqa: E501 + def __init__(self, acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, renew_time=None, local_vars_configuration=None): # noqa: E501 """V1LeaseSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._acquire_time = None self._holder_identity = None @@ -219,8 +224,11 @@ def __eq__(self, other): if not isinstance(other, V1LeaseSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LeaseSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_lifecycle.py b/kubernetes/client/models/v1_lifecycle.py index e1bd8ddf99..5d4180962a 100644 --- a/kubernetes/client/models/v1_lifecycle.py +++ b/kubernetes/client/models/v1_lifecycle.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Lifecycle(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1Lifecycle(object): 'pre_stop': 'preStop' } - def __init__(self, post_start=None, pre_stop=None): # noqa: E501 + def __init__(self, post_start=None, pre_stop=None, local_vars_configuration=None): # noqa: E501 """V1Lifecycle - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._post_start = None self._pre_stop = None @@ -131,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, V1Lifecycle): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Lifecycle): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_limit_range.py b/kubernetes/client/models/v1_limit_range.py index e94b09793f..417e015bdd 100644 --- a/kubernetes/client/models/v1_limit_range.py +++ b/kubernetes/client/models/v1_limit_range.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LimitRange(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1LimitRange(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1LimitRange - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1LimitRange): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LimitRange): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_limit_range_item.py b/kubernetes/client/models/v1_limit_range_item.py index b3f6e8e25b..78081c7973 100644 --- a/kubernetes/client/models/v1_limit_range_item.py +++ b/kubernetes/client/models/v1_limit_range_item.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LimitRangeItem(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1LimitRangeItem(object): 'type': 'type' } - def __init__(self, default=None, default_request=None, max=None, max_limit_request_ratio=None, min=None, type=None): # noqa: E501 + def __init__(self, default=None, default_request=None, max=None, max_limit_request_ratio=None, min=None, type=None, local_vars_configuration=None): # noqa: E501 """V1LimitRangeItem - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._default = None self._default_request = None @@ -247,8 +252,11 @@ def __eq__(self, other): if not isinstance(other, V1LimitRangeItem): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LimitRangeItem): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_limit_range_list.py b/kubernetes/client/models/v1_limit_range_list.py index 098a19a425..892bacbfbd 100644 --- a/kubernetes/client/models/v1_limit_range_list.py +++ b/kubernetes/client/models/v1_limit_range_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LimitRangeList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1LimitRangeList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1LimitRangeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1LimitRangeList. # noqa: E501 :type: list[V1LimitRange] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1LimitRangeList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LimitRangeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_limit_range_spec.py b/kubernetes/client/models/v1_limit_range_spec.py index 66397b7b38..6172d3f15c 100644 --- a/kubernetes/client/models/v1_limit_range_spec.py +++ b/kubernetes/client/models/v1_limit_range_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LimitRangeSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1LimitRangeSpec(object): 'limits': 'limits' } - def __init__(self, limits=None): # noqa: E501 + def __init__(self, limits=None, local_vars_configuration=None): # noqa: E501 """V1LimitRangeSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._limits = None self.discriminator = None @@ -66,7 +71,7 @@ def limits(self, limits): :param limits: The limits of this V1LimitRangeSpec. # noqa: E501 :type: list[V1LimitRangeItem] """ - if limits is None: + if self.local_vars_configuration.client_side_validation and limits is None: # noqa: E501 raise ValueError("Invalid value for `limits`, must not be `None`") # noqa: E501 self._limits = limits @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, V1LimitRangeSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LimitRangeSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_list_meta.py b/kubernetes/client/models/v1_list_meta.py index f487d03a3b..8c88390206 100644 --- a/kubernetes/client/models/v1_list_meta.py +++ b/kubernetes/client/models/v1_list_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ListMeta(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ListMeta(object): 'self_link': 'selfLink' } - def __init__(self, _continue=None, remaining_item_count=None, resource_version=None, self_link=None): # noqa: E501 + def __init__(self, _continue=None, remaining_item_count=None, resource_version=None, self_link=None, local_vars_configuration=None): # noqa: E501 """V1ListMeta - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.__continue = None self._remaining_item_count = None @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1ListMeta): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ListMeta): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_load_balancer_ingress.py b/kubernetes/client/models/v1_load_balancer_ingress.py index c127be2e00..75d0c7deb3 100644 --- a/kubernetes/client/models/v1_load_balancer_ingress.py +++ b/kubernetes/client/models/v1_load_balancer_ingress.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LoadBalancerIngress(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1LoadBalancerIngress(object): 'ip': 'ip' } - def __init__(self, hostname=None, ip=None): # noqa: E501 + def __init__(self, hostname=None, ip=None, local_vars_configuration=None): # noqa: E501 """V1LoadBalancerIngress - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._hostname = None self._ip = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1LoadBalancerIngress): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LoadBalancerIngress): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_load_balancer_status.py b/kubernetes/client/models/v1_load_balancer_status.py index ef71574720..da26c5dd6f 100644 --- a/kubernetes/client/models/v1_load_balancer_status.py +++ b/kubernetes/client/models/v1_load_balancer_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LoadBalancerStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1LoadBalancerStatus(object): 'ingress': 'ingress' } - def __init__(self, ingress=None): # noqa: E501 + def __init__(self, ingress=None, local_vars_configuration=None): # noqa: E501 """V1LoadBalancerStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ingress = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1LoadBalancerStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LoadBalancerStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_local_object_reference.py b/kubernetes/client/models/v1_local_object_reference.py index ba91a96cd4..56bd00ed2b 100644 --- a/kubernetes/client/models/v1_local_object_reference.py +++ b/kubernetes/client/models/v1_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LocalObjectReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1LocalObjectReference(object): 'name': 'name' } - def __init__(self, name=None): # noqa: E501 + def __init__(self, name=None, local_vars_configuration=None): # noqa: E501 """V1LocalObjectReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1LocalObjectReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LocalObjectReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_local_subject_access_review.py b/kubernetes/client/models/v1_local_subject_access_review.py index 29b28aaf20..a85375a755 100644 --- a/kubernetes/client/models/v1_local_subject_access_review.py +++ b/kubernetes/client/models/v1_local_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LocalSubjectAccessReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1LocalSubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1LocalSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1LocalSubjectAccessReview. # noqa: E501 :type: V1SubjectAccessReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1LocalSubjectAccessReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LocalSubjectAccessReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_local_volume_source.py b/kubernetes/client/models/v1_local_volume_source.py index c6a18217ac..1bfdf4f5c5 100644 --- a/kubernetes/client/models/v1_local_volume_source.py +++ b/kubernetes/client/models/v1_local_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1LocalVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1LocalVolumeSource(object): 'path': 'path' } - def __init__(self, fs_type=None, path=None): # noqa: E501 + def __init__(self, fs_type=None, path=None, local_vars_configuration=None): # noqa: E501 """V1LocalVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._path = None @@ -94,7 +99,7 @@ def path(self, path): :param path: The path of this V1LocalVolumeSource. # noqa: E501 :type: str """ - if path is None: + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1LocalVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1LocalVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_managed_fields_entry.py b/kubernetes/client/models/v1_managed_fields_entry.py index 8be1f73e05..5a710338e3 100644 --- a/kubernetes/client/models/v1_managed_fields_entry.py +++ b/kubernetes/client/models/v1_managed_fields_entry.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ManagedFieldsEntry(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1ManagedFieldsEntry(object): 'time': 'time' } - def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, time=None): # noqa: E501 + def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, time=None, local_vars_configuration=None): # noqa: E501 """V1ManagedFieldsEntry - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._fields_type = None @@ -247,8 +252,11 @@ def __eq__(self, other): if not isinstance(other, V1ManagedFieldsEntry): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ManagedFieldsEntry): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_mutating_webhook.py b/kubernetes/client/models/v1_mutating_webhook.py index e766c4f431..b92a353ae0 100644 --- a/kubernetes/client/models/v1_mutating_webhook.py +++ b/kubernetes/client/models/v1_mutating_webhook.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1MutatingWebhook(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -58,8 +60,11 @@ class V1MutatingWebhook(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, reinvocation_policy=None, rules=None, side_effects=None, timeout_seconds=None): # noqa: E501 + def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, reinvocation_policy=None, rules=None, side_effects=None, timeout_seconds=None, local_vars_configuration=None): # noqa: E501 """V1MutatingWebhook - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._admission_review_versions = None self._client_config = None @@ -113,7 +118,7 @@ def admission_review_versions(self, admission_review_versions): :param admission_review_versions: The admission_review_versions of this V1MutatingWebhook. # noqa: E501 :type: list[str] """ - if admission_review_versions is None: + if self.local_vars_configuration.client_side_validation and admission_review_versions is None: # noqa: E501 raise ValueError("Invalid value for `admission_review_versions`, must not be `None`") # noqa: E501 self._admission_review_versions = admission_review_versions @@ -136,7 +141,7 @@ def client_config(self, client_config): :param client_config: The client_config of this V1MutatingWebhook. # noqa: E501 :type: AdmissionregistrationV1WebhookClientConfig """ - if client_config is None: + if self.local_vars_configuration.client_side_validation and client_config is None: # noqa: E501 raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501 self._client_config = client_config @@ -207,7 +212,7 @@ def name(self, name): :param name: The name of this V1MutatingWebhook. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -320,7 +325,7 @@ def side_effects(self, side_effects): :param side_effects: The side_effects of this V1MutatingWebhook. # noqa: E501 :type: str """ - if side_effects is None: + if self.local_vars_configuration.client_side_validation and side_effects is None: # noqa: E501 raise ValueError("Invalid value for `side_effects`, must not be `None`") # noqa: E501 self._side_effects = side_effects @@ -385,8 +390,11 @@ def __eq__(self, other): if not isinstance(other, V1MutatingWebhook): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1MutatingWebhook): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_mutating_webhook_configuration.py b/kubernetes/client/models/v1_mutating_webhook_configuration.py index 37d3ecbd9e..8f691e67c8 100644 --- a/kubernetes/client/models/v1_mutating_webhook_configuration.py +++ b/kubernetes/client/models/v1_mutating_webhook_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1MutatingWebhookConfiguration(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1MutatingWebhookConfiguration(object): 'webhooks': 'webhooks' } - def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None, local_vars_configuration=None): # noqa: E501 """V1MutatingWebhookConfiguration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1MutatingWebhookConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1MutatingWebhookConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_mutating_webhook_configuration_list.py b/kubernetes/client/models/v1_mutating_webhook_configuration_list.py index e1dc36f618..a6d46b1dbb 100644 --- a/kubernetes/client/models/v1_mutating_webhook_configuration_list.py +++ b/kubernetes/client/models/v1_mutating_webhook_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1MutatingWebhookConfigurationList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1MutatingWebhookConfigurationList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1MutatingWebhookConfigurationList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1MutatingWebhookConfigurationList. # noqa: E501 :type: list[V1MutatingWebhookConfiguration] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1MutatingWebhookConfigurationList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1MutatingWebhookConfigurationList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_namespace.py b/kubernetes/client/models/v1_namespace.py index af56bf5c47..0efd244d2b 100644 --- a/kubernetes/client/models/v1_namespace.py +++ b/kubernetes/client/models/v1_namespace.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Namespace(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1Namespace(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1Namespace - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1Namespace): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Namespace): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_namespace_condition.py b/kubernetes/client/models/v1_namespace_condition.py index 63f20c4d64..c7de84912f 100644 --- a/kubernetes/client/models/v1_namespace_condition.py +++ b/kubernetes/client/models/v1_namespace_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NamespaceCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1NamespaceCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1NamespaceCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -150,7 +155,7 @@ def status(self, status): :param status: The status of this V1NamespaceCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -175,7 +180,7 @@ def type(self, type): :param type: The type of this V1NamespaceCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -217,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, V1NamespaceCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NamespaceCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_namespace_list.py b/kubernetes/client/models/v1_namespace_list.py index 60a1768538..3218f9b4b0 100644 --- a/kubernetes/client/models/v1_namespace_list.py +++ b/kubernetes/client/models/v1_namespace_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NamespaceList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1NamespaceList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1NamespaceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1NamespaceList. # noqa: E501 :type: list[V1Namespace] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1NamespaceList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NamespaceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_namespace_spec.py b/kubernetes/client/models/v1_namespace_spec.py index 6095549cac..fd223b372b 100644 --- a/kubernetes/client/models/v1_namespace_spec.py +++ b/kubernetes/client/models/v1_namespace_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NamespaceSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1NamespaceSpec(object): 'finalizers': 'finalizers' } - def __init__(self, finalizers=None): # noqa: E501 + def __init__(self, finalizers=None, local_vars_configuration=None): # noqa: E501 """V1NamespaceSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._finalizers = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1NamespaceSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NamespaceSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_namespace_status.py b/kubernetes/client/models/v1_namespace_status.py index c9d969f308..445146f174 100644 --- a/kubernetes/client/models/v1_namespace_status.py +++ b/kubernetes/client/models/v1_namespace_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NamespaceStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1NamespaceStatus(object): 'phase': 'phase' } - def __init__(self, conditions=None, phase=None): # noqa: E501 + def __init__(self, conditions=None, phase=None, local_vars_configuration=None): # noqa: E501 """V1NamespaceStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._conditions = None self._phase = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1NamespaceStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NamespaceStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_network_policy.py b/kubernetes/client/models/v1_network_policy.py index e6a84955f4..d6e3c5d9b7 100644 --- a/kubernetes/client/models/v1_network_policy.py +++ b/kubernetes/client/models/v1_network_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NetworkPolicy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1NetworkPolicy(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1NetworkPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1NetworkPolicy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NetworkPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_network_policy_egress_rule.py b/kubernetes/client/models/v1_network_policy_egress_rule.py index 884d39bc10..10726d50d4 100644 --- a/kubernetes/client/models/v1_network_policy_egress_rule.py +++ b/kubernetes/client/models/v1_network_policy_egress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NetworkPolicyEgressRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1NetworkPolicyEgressRule(object): 'to': 'to' } - def __init__(self, ports=None, to=None): # noqa: E501 + def __init__(self, ports=None, to=None, local_vars_configuration=None): # noqa: E501 """V1NetworkPolicyEgressRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ports = None self._to = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1NetworkPolicyEgressRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NetworkPolicyEgressRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_network_policy_ingress_rule.py b/kubernetes/client/models/v1_network_policy_ingress_rule.py index e5a424c59f..b806d99e50 100644 --- a/kubernetes/client/models/v1_network_policy_ingress_rule.py +++ b/kubernetes/client/models/v1_network_policy_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NetworkPolicyIngressRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1NetworkPolicyIngressRule(object): 'ports': 'ports' } - def __init__(self, _from=None, ports=None): # noqa: E501 + def __init__(self, _from=None, ports=None, local_vars_configuration=None): # noqa: E501 """V1NetworkPolicyIngressRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.__from = None self._ports = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1NetworkPolicyIngressRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NetworkPolicyIngressRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_network_policy_list.py b/kubernetes/client/models/v1_network_policy_list.py index 7790f7979f..6b7d3cac7b 100644 --- a/kubernetes/client/models/v1_network_policy_list.py +++ b/kubernetes/client/models/v1_network_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NetworkPolicyList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1NetworkPolicyList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1NetworkPolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1NetworkPolicyList. # noqa: E501 :type: list[V1NetworkPolicy] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1NetworkPolicyList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NetworkPolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_network_policy_peer.py b/kubernetes/client/models/v1_network_policy_peer.py index 3745c95608..428feb0ffe 100644 --- a/kubernetes/client/models/v1_network_policy_peer.py +++ b/kubernetes/client/models/v1_network_policy_peer.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NetworkPolicyPeer(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1NetworkPolicyPeer(object): 'pod_selector': 'podSelector' } - def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None): # noqa: E501 + def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None, local_vars_configuration=None): # noqa: E501 """V1NetworkPolicyPeer - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ip_block = None self._namespace_selector = None @@ -157,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, V1NetworkPolicyPeer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NetworkPolicyPeer): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_network_policy_port.py b/kubernetes/client/models/v1_network_policy_port.py index b89822e552..ccec280cd4 100644 --- a/kubernetes/client/models/v1_network_policy_port.py +++ b/kubernetes/client/models/v1_network_policy_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NetworkPolicyPort(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1NetworkPolicyPort(object): 'protocol': 'protocol' } - def __init__(self, port=None, protocol=None): # noqa: E501 + def __init__(self, port=None, protocol=None, local_vars_configuration=None): # noqa: E501 """V1NetworkPolicyPort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._port = None self._protocol = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1NetworkPolicyPort): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NetworkPolicyPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_network_policy_spec.py b/kubernetes/client/models/v1_network_policy_spec.py index 683daf09cc..4cf37f3ecc 100644 --- a/kubernetes/client/models/v1_network_policy_spec.py +++ b/kubernetes/client/models/v1_network_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NetworkPolicySpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1NetworkPolicySpec(object): 'policy_types': 'policyTypes' } - def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None): # noqa: E501 + def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None, local_vars_configuration=None): # noqa: E501 """V1NetworkPolicySpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._egress = None self._ingress = None @@ -125,7 +130,7 @@ def pod_selector(self, pod_selector): :param pod_selector: The pod_selector of this V1NetworkPolicySpec. # noqa: E501 :type: V1LabelSelector """ - if pod_selector is None: + if self.local_vars_configuration.client_side_validation and pod_selector is None: # noqa: E501 raise ValueError("Invalid value for `pod_selector`, must not be `None`") # noqa: E501 self._pod_selector = pod_selector @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1NetworkPolicySpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NetworkPolicySpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_nfs_volume_source.py b/kubernetes/client/models/v1_nfs_volume_source.py index 6d022fafcc..03e6d5e2d7 100644 --- a/kubernetes/client/models/v1_nfs_volume_source.py +++ b/kubernetes/client/models/v1_nfs_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NFSVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1NFSVolumeSource(object): 'server': 'server' } - def __init__(self, path=None, read_only=None, server=None): # noqa: E501 + def __init__(self, path=None, read_only=None, server=None, local_vars_configuration=None): # noqa: E501 """V1NFSVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._path = None self._read_only = None @@ -75,7 +80,7 @@ def path(self, path): :param path: The path of this V1NFSVolumeSource. # noqa: E501 :type: str """ - if path is None: + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @@ -123,7 +128,7 @@ def server(self, server): :param server: The server of this V1NFSVolumeSource. # noqa: E501 :type: str """ - if server is None: + if self.local_vars_configuration.client_side_validation and server is None: # noqa: E501 raise ValueError("Invalid value for `server`, must not be `None`") # noqa: E501 self._server = server @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1NFSVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NFSVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node.py b/kubernetes/client/models/v1_node.py index 7216eef447..ffe3248b4c 100644 --- a/kubernetes/client/models/v1_node.py +++ b/kubernetes/client/models/v1_node.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Node(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1Node(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1Node - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1Node): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Node): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_address.py b/kubernetes/client/models/v1_node_address.py index f36cf50881..6334a44bf6 100644 --- a/kubernetes/client/models/v1_node_address.py +++ b/kubernetes/client/models/v1_node_address.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeAddress(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1NodeAddress(object): 'type': 'type' } - def __init__(self, address=None, type=None): # noqa: E501 + def __init__(self, address=None, type=None, local_vars_configuration=None): # noqa: E501 """V1NodeAddress - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._address = None self._type = None @@ -70,7 +75,7 @@ def address(self, address): :param address: The address of this V1NodeAddress. # noqa: E501 :type: str """ - if address is None: + if self.local_vars_configuration.client_side_validation and address is None: # noqa: E501 raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 self._address = address @@ -95,7 +100,7 @@ def type(self, type): :param type: The type of this V1NodeAddress. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeAddress): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeAddress): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_affinity.py b/kubernetes/client/models/v1_node_affinity.py index adf0fc483c..7ac1c29ea6 100644 --- a/kubernetes/client/models/v1_node_affinity.py +++ b/kubernetes/client/models/v1_node_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeAffinity(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1NodeAffinity(object): 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' } - def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): # noqa: E501 + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None, local_vars_configuration=None): # noqa: E501 """V1NodeAffinity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._preferred_during_scheduling_ignored_during_execution = None self._required_during_scheduling_ignored_during_execution = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeAffinity): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeAffinity): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_condition.py b/kubernetes/client/models/v1_node_condition.py index 91e7806ce5..aa9e5dddcd 100644 --- a/kubernetes/client/models/v1_node_condition.py +++ b/kubernetes/client/models/v1_node_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1NodeCondition(object): 'type': 'type' } - def __init__(self, last_heartbeat_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_heartbeat_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1NodeCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_heartbeat_time = None self._last_transition_time = None @@ -182,7 +187,7 @@ def status(self, status): :param status: The status of this V1NodeCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -207,7 +212,7 @@ def type(self, type): :param type: The type of this V1NodeCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_config_source.py b/kubernetes/client/models/v1_node_config_source.py index 3609643e59..a2e0f100da 100644 --- a/kubernetes/client/models/v1_node_config_source.py +++ b/kubernetes/client/models/v1_node_config_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeConfigSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1NodeConfigSource(object): 'config_map': 'configMap' } - def __init__(self, config_map=None): # noqa: E501 + def __init__(self, config_map=None, local_vars_configuration=None): # noqa: E501 """V1NodeConfigSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._config_map = None self.discriminator = None @@ -105,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeConfigSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeConfigSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_config_status.py b/kubernetes/client/models/v1_node_config_status.py index d2d643fb12..4783aa39d0 100644 --- a/kubernetes/client/models/v1_node_config_status.py +++ b/kubernetes/client/models/v1_node_config_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeConfigStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1NodeConfigStatus(object): 'last_known_good': 'lastKnownGood' } - def __init__(self, active=None, assigned=None, error=None, last_known_good=None): # noqa: E501 + def __init__(self, active=None, assigned=None, error=None, last_known_good=None, local_vars_configuration=None): # noqa: E501 """V1NodeConfigStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._active = None self._assigned = None @@ -185,8 +190,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeConfigStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeConfigStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_daemon_endpoints.py b/kubernetes/client/models/v1_node_daemon_endpoints.py index f633d6ae49..29a5e6c86e 100644 --- a/kubernetes/client/models/v1_node_daemon_endpoints.py +++ b/kubernetes/client/models/v1_node_daemon_endpoints.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeDaemonEndpoints(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1NodeDaemonEndpoints(object): 'kubelet_endpoint': 'kubeletEndpoint' } - def __init__(self, kubelet_endpoint=None): # noqa: E501 + def __init__(self, kubelet_endpoint=None, local_vars_configuration=None): # noqa: E501 """V1NodeDaemonEndpoints - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._kubelet_endpoint = None self.discriminator = None @@ -105,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeDaemonEndpoints): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeDaemonEndpoints): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_list.py b/kubernetes/client/models/v1_node_list.py index 87bbf1e2fe..0bb016bfd5 100644 --- a/kubernetes/client/models/v1_node_list.py +++ b/kubernetes/client/models/v1_node_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1NodeList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1NodeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1NodeList. # noqa: E501 :type: list[V1Node] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_selector.py b/kubernetes/client/models/v1_node_selector.py index 8db1601947..a075050ebc 100644 --- a/kubernetes/client/models/v1_node_selector.py +++ b/kubernetes/client/models/v1_node_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeSelector(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1NodeSelector(object): 'node_selector_terms': 'nodeSelectorTerms' } - def __init__(self, node_selector_terms=None): # noqa: E501 + def __init__(self, node_selector_terms=None, local_vars_configuration=None): # noqa: E501 """V1NodeSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._node_selector_terms = None self.discriminator = None @@ -66,7 +71,7 @@ def node_selector_terms(self, node_selector_terms): :param node_selector_terms: The node_selector_terms of this V1NodeSelector. # noqa: E501 :type: list[V1NodeSelectorTerm] """ - if node_selector_terms is None: + if self.local_vars_configuration.client_side_validation and node_selector_terms is None: # noqa: E501 raise ValueError("Invalid value for `node_selector_terms`, must not be `None`") # noqa: E501 self._node_selector_terms = node_selector_terms @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeSelector): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeSelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_selector_requirement.py b/kubernetes/client/models/v1_node_selector_requirement.py index 34a3b3ed47..8eaa3cd092 100644 --- a/kubernetes/client/models/v1_node_selector_requirement.py +++ b/kubernetes/client/models/v1_node_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeSelectorRequirement(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1NodeSelectorRequirement(object): 'values': 'values' } - def __init__(self, key=None, operator=None, values=None): # noqa: E501 + def __init__(self, key=None, operator=None, values=None, local_vars_configuration=None): # noqa: E501 """V1NodeSelectorRequirement - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._key = None self._operator = None @@ -75,7 +80,7 @@ def key(self, key): :param key: The key of this V1NodeSelectorRequirement. # noqa: E501 :type: str """ - if key is None: + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @@ -100,7 +105,7 @@ def operator(self, operator): :param operator: The operator of this V1NodeSelectorRequirement. # noqa: E501 :type: str """ - if operator is None: + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 self._operator = operator @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeSelectorRequirement): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeSelectorRequirement): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_selector_term.py b/kubernetes/client/models/v1_node_selector_term.py index de20d9cafc..6e5673d1c4 100644 --- a/kubernetes/client/models/v1_node_selector_term.py +++ b/kubernetes/client/models/v1_node_selector_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeSelectorTerm(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1NodeSelectorTerm(object): 'match_fields': 'matchFields' } - def __init__(self, match_expressions=None, match_fields=None): # noqa: E501 + def __init__(self, match_expressions=None, match_fields=None, local_vars_configuration=None): # noqa: E501 """V1NodeSelectorTerm - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._match_expressions = None self._match_fields = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeSelectorTerm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeSelectorTerm): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_spec.py b/kubernetes/client/models/v1_node_spec.py index 8025b2792e..fe3c3f819e 100644 --- a/kubernetes/client/models/v1_node_spec.py +++ b/kubernetes/client/models/v1_node_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1NodeSpec(object): 'unschedulable': 'unschedulable' } - def __init__(self, config_source=None, external_id=None, pod_cidr=None, pod_cid_rs=None, provider_id=None, taints=None, unschedulable=None): # noqa: E501 + def __init__(self, config_source=None, external_id=None, pod_cidr=None, pod_cid_rs=None, provider_id=None, taints=None, unschedulable=None, local_vars_configuration=None): # noqa: E501 """V1NodeSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._config_source = None self._external_id = None @@ -273,8 +278,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_status.py b/kubernetes/client/models/v1_node_status.py index 01df9879b7..cb03d43200 100644 --- a/kubernetes/client/models/v1_node_status.py +++ b/kubernetes/client/models/v1_node_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -58,8 +60,11 @@ class V1NodeStatus(object): 'volumes_in_use': 'volumesInUse' } - def __init__(self, addresses=None, allocatable=None, capacity=None, conditions=None, config=None, daemon_endpoints=None, images=None, node_info=None, phase=None, volumes_attached=None, volumes_in_use=None): # noqa: E501 + def __init__(self, addresses=None, allocatable=None, capacity=None, conditions=None, config=None, daemon_endpoints=None, images=None, node_info=None, phase=None, volumes_attached=None, volumes_in_use=None, local_vars_configuration=None): # noqa: E501 """V1NodeStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._addresses = None self._allocatable = None @@ -381,8 +386,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_node_system_info.py b/kubernetes/client/models/v1_node_system_info.py index 3687f5bb1a..f96783b842 100644 --- a/kubernetes/client/models/v1_node_system_info.py +++ b/kubernetes/client/models/v1_node_system_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NodeSystemInfo(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1NodeSystemInfo(object): 'system_uuid': 'systemUUID' } - def __init__(self, architecture=None, boot_id=None, container_runtime_version=None, kernel_version=None, kube_proxy_version=None, kubelet_version=None, machine_id=None, operating_system=None, os_image=None, system_uuid=None): # noqa: E501 + def __init__(self, architecture=None, boot_id=None, container_runtime_version=None, kernel_version=None, kube_proxy_version=None, kubelet_version=None, machine_id=None, operating_system=None, os_image=None, system_uuid=None, local_vars_configuration=None): # noqa: E501 """V1NodeSystemInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._architecture = None self._boot_id = None @@ -102,7 +107,7 @@ def architecture(self, architecture): :param architecture: The architecture of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if architecture is None: + if self.local_vars_configuration.client_side_validation and architecture is None: # noqa: E501 raise ValueError("Invalid value for `architecture`, must not be `None`") # noqa: E501 self._architecture = architecture @@ -127,7 +132,7 @@ def boot_id(self, boot_id): :param boot_id: The boot_id of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if boot_id is None: + if self.local_vars_configuration.client_side_validation and boot_id is None: # noqa: E501 raise ValueError("Invalid value for `boot_id`, must not be `None`") # noqa: E501 self._boot_id = boot_id @@ -152,7 +157,7 @@ def container_runtime_version(self, container_runtime_version): :param container_runtime_version: The container_runtime_version of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if container_runtime_version is None: + if self.local_vars_configuration.client_side_validation and container_runtime_version is None: # noqa: E501 raise ValueError("Invalid value for `container_runtime_version`, must not be `None`") # noqa: E501 self._container_runtime_version = container_runtime_version @@ -177,7 +182,7 @@ def kernel_version(self, kernel_version): :param kernel_version: The kernel_version of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if kernel_version is None: + if self.local_vars_configuration.client_side_validation and kernel_version is None: # noqa: E501 raise ValueError("Invalid value for `kernel_version`, must not be `None`") # noqa: E501 self._kernel_version = kernel_version @@ -202,7 +207,7 @@ def kube_proxy_version(self, kube_proxy_version): :param kube_proxy_version: The kube_proxy_version of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if kube_proxy_version is None: + if self.local_vars_configuration.client_side_validation and kube_proxy_version is None: # noqa: E501 raise ValueError("Invalid value for `kube_proxy_version`, must not be `None`") # noqa: E501 self._kube_proxy_version = kube_proxy_version @@ -227,7 +232,7 @@ def kubelet_version(self, kubelet_version): :param kubelet_version: The kubelet_version of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if kubelet_version is None: + if self.local_vars_configuration.client_side_validation and kubelet_version is None: # noqa: E501 raise ValueError("Invalid value for `kubelet_version`, must not be `None`") # noqa: E501 self._kubelet_version = kubelet_version @@ -252,7 +257,7 @@ def machine_id(self, machine_id): :param machine_id: The machine_id of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if machine_id is None: + if self.local_vars_configuration.client_side_validation and machine_id is None: # noqa: E501 raise ValueError("Invalid value for `machine_id`, must not be `None`") # noqa: E501 self._machine_id = machine_id @@ -277,7 +282,7 @@ def operating_system(self, operating_system): :param operating_system: The operating_system of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if operating_system is None: + if self.local_vars_configuration.client_side_validation and operating_system is None: # noqa: E501 raise ValueError("Invalid value for `operating_system`, must not be `None`") # noqa: E501 self._operating_system = operating_system @@ -302,7 +307,7 @@ def os_image(self, os_image): :param os_image: The os_image of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if os_image is None: + if self.local_vars_configuration.client_side_validation and os_image is None: # noqa: E501 raise ValueError("Invalid value for `os_image`, must not be `None`") # noqa: E501 self._os_image = os_image @@ -327,7 +332,7 @@ def system_uuid(self, system_uuid): :param system_uuid: The system_uuid of this V1NodeSystemInfo. # noqa: E501 :type: str """ - if system_uuid is None: + if self.local_vars_configuration.client_side_validation and system_uuid is None: # noqa: E501 raise ValueError("Invalid value for `system_uuid`, must not be `None`") # noqa: E501 self._system_uuid = system_uuid @@ -369,8 +374,11 @@ def __eq__(self, other): if not isinstance(other, V1NodeSystemInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NodeSystemInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_non_resource_attributes.py b/kubernetes/client/models/v1_non_resource_attributes.py index 25a6ac5062..3803e09443 100644 --- a/kubernetes/client/models/v1_non_resource_attributes.py +++ b/kubernetes/client/models/v1_non_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NonResourceAttributes(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1NonResourceAttributes(object): 'verb': 'verb' } - def __init__(self, path=None, verb=None): # noqa: E501 + def __init__(self, path=None, verb=None, local_vars_configuration=None): # noqa: E501 """V1NonResourceAttributes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._path = None self._verb = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1NonResourceAttributes): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NonResourceAttributes): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_non_resource_rule.py b/kubernetes/client/models/v1_non_resource_rule.py index a2968b108c..a93f579890 100644 --- a/kubernetes/client/models/v1_non_resource_rule.py +++ b/kubernetes/client/models/v1_non_resource_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1NonResourceRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1NonResourceRule(object): 'verbs': 'verbs' } - def __init__(self, non_resource_ur_ls=None, verbs=None): # noqa: E501 + def __init__(self, non_resource_ur_ls=None, verbs=None, local_vars_configuration=None): # noqa: E501 """V1NonResourceRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._non_resource_ur_ls = None self._verbs = None @@ -94,7 +99,7 @@ def verbs(self, verbs): :param verbs: The verbs of this V1NonResourceRule. # noqa: E501 :type: list[str] """ - if verbs is None: + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1NonResourceRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1NonResourceRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_object_field_selector.py b/kubernetes/client/models/v1_object_field_selector.py index db048540fa..ae719b31d4 100644 --- a/kubernetes/client/models/v1_object_field_selector.py +++ b/kubernetes/client/models/v1_object_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ObjectFieldSelector(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ObjectFieldSelector(object): 'field_path': 'fieldPath' } - def __init__(self, api_version=None, field_path=None): # noqa: E501 + def __init__(self, api_version=None, field_path=None, local_vars_configuration=None): # noqa: E501 """V1ObjectFieldSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._field_path = None @@ -94,7 +99,7 @@ def field_path(self, field_path): :param field_path: The field_path of this V1ObjectFieldSelector. # noqa: E501 :type: str """ - if field_path is None: + if self.local_vars_configuration.client_side_validation and field_path is None: # noqa: E501 raise ValueError("Invalid value for `field_path`, must not be `None`") # noqa: E501 self._field_path = field_path @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1ObjectFieldSelector): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ObjectFieldSelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_object_meta.py b/kubernetes/client/models/v1_object_meta.py index 0b76a03e36..68ab1d4662 100644 --- a/kubernetes/client/models/v1_object_meta.py +++ b/kubernetes/client/models/v1_object_meta.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ObjectMeta(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -68,8 +70,11 @@ class V1ObjectMeta(object): 'uid': 'uid' } - def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None, local_vars_configuration=None): # noqa: E501 """V1ObjectMeta - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._annotations = None self._cluster_name = None @@ -527,8 +532,11 @@ def __eq__(self, other): if not isinstance(other, V1ObjectMeta): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ObjectMeta): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_object_reference.py b/kubernetes/client/models/v1_object_reference.py index 6a674dd968..839492035d 100644 --- a/kubernetes/client/models/v1_object_reference.py +++ b/kubernetes/client/models/v1_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ObjectReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1ObjectReference(object): 'uid': 'uid' } - def __init__(self, api_version=None, field_path=None, kind=None, name=None, namespace=None, resource_version=None, uid=None): # noqa: E501 + def __init__(self, api_version=None, field_path=None, kind=None, name=None, namespace=None, resource_version=None, uid=None, local_vars_configuration=None): # noqa: E501 """V1ObjectReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._field_path = None @@ -275,8 +280,11 @@ def __eq__(self, other): if not isinstance(other, V1ObjectReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ObjectReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_owner_reference.py b/kubernetes/client/models/v1_owner_reference.py index cb25e33e51..ecc4ef8edd 100644 --- a/kubernetes/client/models/v1_owner_reference.py +++ b/kubernetes/client/models/v1_owner_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1OwnerReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1OwnerReference(object): 'uid': 'uid' } - def __init__(self, api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None): # noqa: E501 + def __init__(self, api_version=None, block_owner_deletion=None, controller=None, kind=None, name=None, uid=None, local_vars_configuration=None): # noqa: E501 """V1OwnerReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._block_owner_deletion = None @@ -88,7 +93,7 @@ def api_version(self, api_version): :param api_version: The api_version of this V1OwnerReference. # noqa: E501 :type: str """ - if api_version is None: + if self.local_vars_configuration.client_side_validation and api_version is None: # noqa: E501 raise ValueError("Invalid value for `api_version`, must not be `None`") # noqa: E501 self._api_version = api_version @@ -159,7 +164,7 @@ def kind(self, kind): :param kind: The kind of this V1OwnerReference. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -184,7 +189,7 @@ def name(self, name): :param name: The name of this V1OwnerReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -209,7 +214,7 @@ def uid(self, uid): :param uid: The uid of this V1OwnerReference. # noqa: E501 :type: str """ - if uid is None: + if self.local_vars_configuration.client_side_validation and uid is None: # noqa: E501 raise ValueError("Invalid value for `uid`, must not be `None`") # noqa: E501 self._uid = uid @@ -251,8 +256,11 @@ def __eq__(self, other): if not isinstance(other, V1OwnerReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1OwnerReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume.py b/kubernetes/client/models/v1_persistent_volume.py index 2962e5dc52..716d61c874 100644 --- a/kubernetes/client/models/v1_persistent_volume.py +++ b/kubernetes/client/models/v1_persistent_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolume(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1PersistentVolume(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolume): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolume): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume_claim.py b/kubernetes/client/models/v1_persistent_volume_claim.py index cc9fb8a581..72882d83db 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim.py +++ b/kubernetes/client/models/v1_persistent_volume_claim.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolumeClaim(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1PersistentVolumeClaim(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolumeClaim - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolumeClaim): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolumeClaim): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume_claim_condition.py b/kubernetes/client/models/v1_persistent_volume_claim_condition.py index b47bd26dee..7f67be5f7b 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_condition.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolumeClaimCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1PersistentVolumeClaimCondition(object): 'type': 'type' } - def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolumeClaimCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_probe_time = None self._last_transition_time = None @@ -180,7 +185,7 @@ def status(self, status): :param status: The status of this V1PersistentVolumeClaimCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -203,7 +208,7 @@ def type(self, type): :param type: The type of this V1PersistentVolumeClaimCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -245,8 +250,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolumeClaimCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolumeClaimCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume_claim_list.py b/kubernetes/client/models/v1_persistent_volume_claim_list.py index 41a3e7a009..56e6773cad 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_list.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolumeClaimList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1PersistentVolumeClaimList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolumeClaimList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1PersistentVolumeClaimList. # noqa: E501 :type: list[V1PersistentVolumeClaim] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolumeClaimList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolumeClaimList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume_claim_spec.py b/kubernetes/client/models/v1_persistent_volume_claim_spec.py index 47310a3667..85fb080444 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolumeClaimSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1PersistentVolumeClaimSpec(object): 'volume_name': 'volumeName' } - def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): # noqa: E501 + def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolumeClaimSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._access_modes = None self._data_source = None @@ -269,8 +274,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolumeClaimSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolumeClaimSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume_claim_status.py b/kubernetes/client/models/v1_persistent_volume_claim_status.py index cbaece8311..b1c23ddce9 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_status.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolumeClaimStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1PersistentVolumeClaimStatus(object): 'phase': 'phase' } - def __init__(self, access_modes=None, capacity=None, conditions=None, phase=None): # noqa: E501 + def __init__(self, access_modes=None, capacity=None, conditions=None, phase=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolumeClaimStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._access_modes = None self._capacity = None @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolumeClaimStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolumeClaimStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py index fb3f14f2b1..2f4cc2b9f9 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolumeClaimVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1PersistentVolumeClaimVolumeSource(object): 'read_only': 'readOnly' } - def __init__(self, claim_name=None, read_only=None): # noqa: E501 + def __init__(self, claim_name=None, read_only=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolumeClaimVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._claim_name = None self._read_only = None @@ -71,7 +76,7 @@ def claim_name(self, claim_name): :param claim_name: The claim_name of this V1PersistentVolumeClaimVolumeSource. # noqa: E501 :type: str """ - if claim_name is None: + if self.local_vars_configuration.client_side_validation and claim_name is None: # noqa: E501 raise ValueError("Invalid value for `claim_name`, must not be `None`") # noqa: E501 self._claim_name = claim_name @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolumeClaimVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolumeClaimVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume_list.py b/kubernetes/client/models/v1_persistent_volume_list.py index 69ee1199e9..447abeb01c 100644 --- a/kubernetes/client/models/v1_persistent_volume_list.py +++ b/kubernetes/client/models/v1_persistent_volume_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolumeList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1PersistentVolumeList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolumeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1PersistentVolumeList. # noqa: E501 :type: list[V1PersistentVolume] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolumeList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolumeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume_spec.py b/kubernetes/client/models/v1_persistent_volume_spec.py index 25e2febc72..eec0aaa527 100644 --- a/kubernetes/client/models/v1_persistent_volume_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolumeSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -96,8 +98,11 @@ class V1PersistentVolumeSpec(object): 'vsphere_volume': 'vsphereVolume' } - def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, csi=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, local=None, mount_options=None, nfs=None, node_affinity=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, portworx_volume=None, quobyte=None, rbd=None, scale_io=None, storage_class_name=None, storageos=None, volume_mode=None, vsphere_volume=None): # noqa: E501 + def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=None, azure_file=None, capacity=None, cephfs=None, cinder=None, claim_ref=None, csi=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, glusterfs=None, host_path=None, iscsi=None, local=None, mount_options=None, nfs=None, node_affinity=None, persistent_volume_reclaim_policy=None, photon_persistent_disk=None, portworx_volume=None, quobyte=None, rbd=None, scale_io=None, storage_class_name=None, storageos=None, volume_mode=None, vsphere_volume=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolumeSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._access_modes = None self._aws_elastic_block_store = None @@ -871,8 +876,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolumeSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolumeSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_persistent_volume_status.py b/kubernetes/client/models/v1_persistent_volume_status.py index b34bf845a3..17f970a0de 100644 --- a/kubernetes/client/models/v1_persistent_volume_status.py +++ b/kubernetes/client/models/v1_persistent_volume_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PersistentVolumeStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1PersistentVolumeStatus(object): 'reason': 'reason' } - def __init__(self, message=None, phase=None, reason=None): # noqa: E501 + def __init__(self, message=None, phase=None, reason=None, local_vars_configuration=None): # noqa: E501 """V1PersistentVolumeStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._message = None self._phase = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1PersistentVolumeStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PersistentVolumeStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py index 2f0710e2d2..8acfb8dec5 100644 --- a/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py +++ b/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PhotonPersistentDiskVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1PhotonPersistentDiskVolumeSource(object): 'pd_id': 'pdID' } - def __init__(self, fs_type=None, pd_id=None): # noqa: E501 + def __init__(self, fs_type=None, pd_id=None, local_vars_configuration=None): # noqa: E501 """V1PhotonPersistentDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._pd_id = None @@ -94,7 +99,7 @@ def pd_id(self, pd_id): :param pd_id: The pd_id of this V1PhotonPersistentDiskVolumeSource. # noqa: E501 :type: str """ - if pd_id is None: + if self.local_vars_configuration.client_side_validation and pd_id is None: # noqa: E501 raise ValueError("Invalid value for `pd_id`, must not be `None`") # noqa: E501 self._pd_id = pd_id @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1PhotonPersistentDiskVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PhotonPersistentDiskVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod.py b/kubernetes/client/models/v1_pod.py index f127709fcf..5a7d1a0140 100644 --- a/kubernetes/client/models/v1_pod.py +++ b/kubernetes/client/models/v1_pod.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Pod(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1Pod(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1Pod - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1Pod): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Pod): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_affinity.py b/kubernetes/client/models/v1_pod_affinity.py index 66c782f6a3..689cd5707e 100644 --- a/kubernetes/client/models/v1_pod_affinity.py +++ b/kubernetes/client/models/v1_pod_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodAffinity(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1PodAffinity(object): 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' } - def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): # noqa: E501 + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None, local_vars_configuration=None): # noqa: E501 """V1PodAffinity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._preferred_during_scheduling_ignored_during_execution = None self._required_during_scheduling_ignored_during_execution = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1PodAffinity): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodAffinity): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_affinity_term.py b/kubernetes/client/models/v1_pod_affinity_term.py index 353f1b6f00..1a7f30bf42 100644 --- a/kubernetes/client/models/v1_pod_affinity_term.py +++ b/kubernetes/client/models/v1_pod_affinity_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodAffinityTerm(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1PodAffinityTerm(object): 'topology_key': 'topologyKey' } - def __init__(self, label_selector=None, namespaces=None, topology_key=None): # noqa: E501 + def __init__(self, label_selector=None, namespaces=None, topology_key=None, local_vars_configuration=None): # noqa: E501 """V1PodAffinityTerm - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._label_selector = None self._namespaces = None @@ -120,7 +125,7 @@ def topology_key(self, topology_key): :param topology_key: The topology_key of this V1PodAffinityTerm. # noqa: E501 :type: str """ - if topology_key is None: + if self.local_vars_configuration.client_side_validation and topology_key is None: # noqa: E501 raise ValueError("Invalid value for `topology_key`, must not be `None`") # noqa: E501 self._topology_key = topology_key @@ -162,8 +167,11 @@ def __eq__(self, other): if not isinstance(other, V1PodAffinityTerm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodAffinityTerm): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_anti_affinity.py b/kubernetes/client/models/v1_pod_anti_affinity.py index 76b3e161b9..5c3efed6ed 100644 --- a/kubernetes/client/models/v1_pod_anti_affinity.py +++ b/kubernetes/client/models/v1_pod_anti_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodAntiAffinity(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1PodAntiAffinity(object): 'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution' } - def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None): # noqa: E501 + def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None, local_vars_configuration=None): # noqa: E501 """V1PodAntiAffinity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._preferred_during_scheduling_ignored_during_execution = None self._required_during_scheduling_ignored_during_execution = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1PodAntiAffinity): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodAntiAffinity): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_condition.py b/kubernetes/client/models/v1_pod_condition.py index 9491884b29..8d2bfe3403 100644 --- a/kubernetes/client/models/v1_pod_condition.py +++ b/kubernetes/client/models/v1_pod_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1PodCondition(object): 'type': 'type' } - def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_probe_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1PodCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_probe_time = None self._last_transition_time = None @@ -182,7 +187,7 @@ def status(self, status): :param status: The status of this V1PodCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -207,7 +212,7 @@ def type(self, type): :param type: The type of this V1PodCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1PodCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_dns_config.py b/kubernetes/client/models/v1_pod_dns_config.py index 43ef1b5d63..12c586b80d 100644 --- a/kubernetes/client/models/v1_pod_dns_config.py +++ b/kubernetes/client/models/v1_pod_dns_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodDNSConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1PodDNSConfig(object): 'searches': 'searches' } - def __init__(self, nameservers=None, options=None, searches=None): # noqa: E501 + def __init__(self, nameservers=None, options=None, searches=None, local_vars_configuration=None): # noqa: E501 """V1PodDNSConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._nameservers = None self._options = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1PodDNSConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodDNSConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_dns_config_option.py b/kubernetes/client/models/v1_pod_dns_config_option.py index 6d042a49ff..1820588c2c 100644 --- a/kubernetes/client/models/v1_pod_dns_config_option.py +++ b/kubernetes/client/models/v1_pod_dns_config_option.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodDNSConfigOption(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1PodDNSConfigOption(object): 'value': 'value' } - def __init__(self, name=None, value=None): # noqa: E501 + def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 """V1PodDNSConfigOption - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._value = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1PodDNSConfigOption): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodDNSConfigOption): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_ip.py b/kubernetes/client/models/v1_pod_ip.py index 6f1b653906..b293702878 100644 --- a/kubernetes/client/models/v1_pod_ip.py +++ b/kubernetes/client/models/v1_pod_ip.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodIP(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1PodIP(object): 'ip': 'ip' } - def __init__(self, ip=None): # noqa: E501 + def __init__(self, ip=None, local_vars_configuration=None): # noqa: E501 """V1PodIP - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ip = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1PodIP): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodIP): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_list.py b/kubernetes/client/models/v1_pod_list.py index a126ba4aff..a5e12fde9a 100644 --- a/kubernetes/client/models/v1_pod_list.py +++ b/kubernetes/client/models/v1_pod_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1PodList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1PodList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1PodList. # noqa: E501 :type: list[V1Pod] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1PodList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_readiness_gate.py b/kubernetes/client/models/v1_pod_readiness_gate.py index 7afb775c6a..58892d0baf 100644 --- a/kubernetes/client/models/v1_pod_readiness_gate.py +++ b/kubernetes/client/models/v1_pod_readiness_gate.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodReadinessGate(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1PodReadinessGate(object): 'condition_type': 'conditionType' } - def __init__(self, condition_type=None): # noqa: E501 + def __init__(self, condition_type=None, local_vars_configuration=None): # noqa: E501 """V1PodReadinessGate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._condition_type = None self.discriminator = None @@ -66,7 +71,7 @@ def condition_type(self, condition_type): :param condition_type: The condition_type of this V1PodReadinessGate. # noqa: E501 :type: str """ - if condition_type is None: + if self.local_vars_configuration.client_side_validation and condition_type is None: # noqa: E501 raise ValueError("Invalid value for `condition_type`, must not be `None`") # noqa: E501 self._condition_type = condition_type @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, V1PodReadinessGate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodReadinessGate): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_security_context.py b/kubernetes/client/models/v1_pod_security_context.py index 7d863dc52e..cb167ef84a 100644 --- a/kubernetes/client/models/v1_pod_security_context.py +++ b/kubernetes/client/models/v1_pod_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodSecurityContext(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1PodSecurityContext(object): 'windows_options': 'windowsOptions' } - def __init__(self, fs_group=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, supplemental_groups=None, sysctls=None, windows_options=None): # noqa: E501 + def __init__(self, fs_group=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, supplemental_groups=None, sysctls=None, windows_options=None, local_vars_configuration=None): # noqa: E501 """V1PodSecurityContext - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_group = None self._run_as_group = None @@ -299,8 +304,11 @@ def __eq__(self, other): if not isinstance(other, V1PodSecurityContext): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodSecurityContext): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_spec.py b/kubernetes/client/models/v1_pod_spec.py index ebc5ab73e5..71b2023c22 100644 --- a/kubernetes/client/models/v1_pod_spec.py +++ b/kubernetes/client/models/v1_pod_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -104,8 +106,11 @@ class V1PodSpec(object): 'volumes': 'volumes' } - def __init__(self, active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_config=None, dns_policy=None, enable_service_links=None, ephemeral_containers=None, host_aliases=None, host_ipc=None, host_network=None, host_pid=None, hostname=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, overhead=None, preemption_policy=None, priority=None, priority_class_name=None, readiness_gates=None, restart_policy=None, runtime_class_name=None, scheduler_name=None, security_context=None, service_account=None, service_account_name=None, share_process_namespace=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None): # noqa: E501 + def __init__(self, active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_config=None, dns_policy=None, enable_service_links=None, ephemeral_containers=None, host_aliases=None, host_ipc=None, host_network=None, host_pid=None, hostname=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, overhead=None, preemption_policy=None, priority=None, priority_class_name=None, readiness_gates=None, restart_policy=None, runtime_class_name=None, scheduler_name=None, security_context=None, service_account=None, service_account_name=None, share_process_namespace=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None, local_vars_configuration=None): # noqa: E501 """V1PodSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._active_deadline_seconds = None self._affinity = None @@ -298,7 +303,7 @@ def containers(self, containers): :param containers: The containers of this V1PodSpec. # noqa: E501 :type: list[V1Container] """ - if containers is None: + if self.local_vars_configuration.client_side_validation and containers is None: # noqa: E501 raise ValueError("Invalid value for `containers`, must not be `None`") # noqa: E501 self._containers = containers @@ -1026,8 +1031,11 @@ def __eq__(self, other): if not isinstance(other, V1PodSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_status.py b/kubernetes/client/models/v1_pod_status.py index e79150b440..ae389899cb 100644 --- a/kubernetes/client/models/v1_pod_status.py +++ b/kubernetes/client/models/v1_pod_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -62,8 +64,11 @@ class V1PodStatus(object): 'start_time': 'startTime' } - def __init__(self, conditions=None, container_statuses=None, ephemeral_container_statuses=None, host_ip=None, init_container_statuses=None, message=None, nominated_node_name=None, phase=None, pod_ip=None, pod_i_ps=None, qos_class=None, reason=None, start_time=None): # noqa: E501 + def __init__(self, conditions=None, container_statuses=None, ephemeral_container_statuses=None, host_ip=None, init_container_statuses=None, message=None, nominated_node_name=None, phase=None, pod_ip=None, pod_i_ps=None, qos_class=None, reason=None, start_time=None, local_vars_configuration=None): # noqa: E501 """V1PodStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._conditions = None self._container_statuses = None @@ -443,8 +448,11 @@ def __eq__(self, other): if not isinstance(other, V1PodStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_template.py b/kubernetes/client/models/v1_pod_template.py index f3bacc78d3..2120dfd81e 100644 --- a/kubernetes/client/models/v1_pod_template.py +++ b/kubernetes/client/models/v1_pod_template.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodTemplate(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1PodTemplate(object): 'template': 'template' } - def __init__(self, api_version=None, kind=None, metadata=None, template=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, template=None, local_vars_configuration=None): # noqa: E501 """V1PodTemplate - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1PodTemplate): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodTemplate): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_template_list.py b/kubernetes/client/models/v1_pod_template_list.py index 925930bdb3..956a5fd6bc 100644 --- a/kubernetes/client/models/v1_pod_template_list.py +++ b/kubernetes/client/models/v1_pod_template_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodTemplateList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1PodTemplateList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1PodTemplateList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1PodTemplateList. # noqa: E501 :type: list[V1PodTemplate] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1PodTemplateList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodTemplateList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_pod_template_spec.py b/kubernetes/client/models/v1_pod_template_spec.py index cf7e41fb24..d8e7a0c4c5 100644 --- a/kubernetes/client/models/v1_pod_template_spec.py +++ b/kubernetes/client/models/v1_pod_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PodTemplateSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1PodTemplateSpec(object): 'spec': 'spec' } - def __init__(self, metadata=None, spec=None): # noqa: E501 + def __init__(self, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1PodTemplateSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._metadata = None self._spec = None @@ -131,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, V1PodTemplateSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PodTemplateSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_policy_rule.py b/kubernetes/client/models/v1_policy_rule.py index c3fec4b0e9..9d8aa69b68 100644 --- a/kubernetes/client/models/v1_policy_rule.py +++ b/kubernetes/client/models/v1_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PolicyRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1PolicyRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None, local_vars_configuration=None): # noqa: E501 """V1PolicyRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_groups = None self._non_resource_ur_ls = None @@ -178,7 +183,7 @@ def verbs(self, verbs): :param verbs: The verbs of this V1PolicyRule. # noqa: E501 :type: list[str] """ - if verbs is None: + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs @@ -220,8 +225,11 @@ def __eq__(self, other): if not isinstance(other, V1PolicyRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PolicyRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_portworx_volume_source.py b/kubernetes/client/models/v1_portworx_volume_source.py index bfc04e0f67..334e687729 100644 --- a/kubernetes/client/models/v1_portworx_volume_source.py +++ b/kubernetes/client/models/v1_portworx_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PortworxVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1PortworxVolumeSource(object): 'volume_id': 'volumeID' } - def __init__(self, fs_type=None, read_only=None, volume_id=None): # noqa: E501 + def __init__(self, fs_type=None, read_only=None, volume_id=None, local_vars_configuration=None): # noqa: E501 """V1PortworxVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._read_only = None @@ -122,7 +127,7 @@ def volume_id(self, volume_id): :param volume_id: The volume_id of this V1PortworxVolumeSource. # noqa: E501 :type: str """ - if volume_id is None: + if self.local_vars_configuration.client_side_validation and volume_id is None: # noqa: E501 raise ValueError("Invalid value for `volume_id`, must not be `None`") # noqa: E501 self._volume_id = volume_id @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1PortworxVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PortworxVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_preconditions.py b/kubernetes/client/models/v1_preconditions.py index 664026d711..d534c37b5f 100644 --- a/kubernetes/client/models/v1_preconditions.py +++ b/kubernetes/client/models/v1_preconditions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Preconditions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1Preconditions(object): 'uid': 'uid' } - def __init__(self, resource_version=None, uid=None): # noqa: E501 + def __init__(self, resource_version=None, uid=None, local_vars_configuration=None): # noqa: E501 """V1Preconditions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._resource_version = None self._uid = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1Preconditions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Preconditions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_preferred_scheduling_term.py b/kubernetes/client/models/v1_preferred_scheduling_term.py index 345aab7493..c721cdd90e 100644 --- a/kubernetes/client/models/v1_preferred_scheduling_term.py +++ b/kubernetes/client/models/v1_preferred_scheduling_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PreferredSchedulingTerm(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1PreferredSchedulingTerm(object): 'weight': 'weight' } - def __init__(self, preference=None, weight=None): # noqa: E501 + def __init__(self, preference=None, weight=None, local_vars_configuration=None): # noqa: E501 """V1PreferredSchedulingTerm - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._preference = None self._weight = None @@ -68,7 +73,7 @@ def preference(self, preference): :param preference: The preference of this V1PreferredSchedulingTerm. # noqa: E501 :type: V1NodeSelectorTerm """ - if preference is None: + if self.local_vars_configuration.client_side_validation and preference is None: # noqa: E501 raise ValueError("Invalid value for `preference`, must not be `None`") # noqa: E501 self._preference = preference @@ -93,7 +98,7 @@ def weight(self, weight): :param weight: The weight of this V1PreferredSchedulingTerm. # noqa: E501 :type: int """ - if weight is None: + if self.local_vars_configuration.client_side_validation and weight is None: # noqa: E501 raise ValueError("Invalid value for `weight`, must not be `None`") # noqa: E501 self._weight = weight @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1PreferredSchedulingTerm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PreferredSchedulingTerm): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_priority_class.py b/kubernetes/client/models/v1_priority_class.py index 50a6473aec..4a94fd1b0c 100644 --- a/kubernetes/client/models/v1_priority_class.py +++ b/kubernetes/client/models/v1_priority_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PriorityClass(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1PriorityClass(object): 'value': 'value' } - def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None): # noqa: E501 + def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, local_vars_configuration=None): # noqa: E501 """V1PriorityClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._description = None @@ -232,7 +237,7 @@ def value(self, value): :param value: The value of this V1PriorityClass. # noqa: E501 :type: int """ - if value is None: + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value @@ -274,8 +279,11 @@ def __eq__(self, other): if not isinstance(other, V1PriorityClass): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PriorityClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_priority_class_list.py b/kubernetes/client/models/v1_priority_class_list.py index 3603cb7d1b..b870ef2ebd 100644 --- a/kubernetes/client/models/v1_priority_class_list.py +++ b/kubernetes/client/models/v1_priority_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1PriorityClassList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1PriorityClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1PriorityClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1PriorityClassList. # noqa: E501 :type: list[V1PriorityClass] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1PriorityClassList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1PriorityClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_probe.py b/kubernetes/client/models/v1_probe.py index f912600c58..9f2a9ebe8c 100644 --- a/kubernetes/client/models/v1_probe.py +++ b/kubernetes/client/models/v1_probe.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Probe(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1Probe(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None): # noqa: E501 + def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None, local_vars_configuration=None): # noqa: E501 """V1Probe - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.__exec = None self._failure_threshold = None @@ -297,8 +302,11 @@ def __eq__(self, other): if not isinstance(other, V1Probe): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Probe): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_projected_volume_source.py b/kubernetes/client/models/v1_projected_volume_source.py index 38ae24d370..ed2c059b42 100644 --- a/kubernetes/client/models/v1_projected_volume_source.py +++ b/kubernetes/client/models/v1_projected_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ProjectedVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ProjectedVolumeSource(object): 'sources': 'sources' } - def __init__(self, default_mode=None, sources=None): # noqa: E501 + def __init__(self, default_mode=None, sources=None, local_vars_configuration=None): # noqa: E501 """V1ProjectedVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._default_mode = None self._sources = None @@ -94,7 +99,7 @@ def sources(self, sources): :param sources: The sources of this V1ProjectedVolumeSource. # noqa: E501 :type: list[V1VolumeProjection] """ - if sources is None: + if self.local_vars_configuration.client_side_validation and sources is None: # noqa: E501 raise ValueError("Invalid value for `sources`, must not be `None`") # noqa: E501 self._sources = sources @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1ProjectedVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ProjectedVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_quobyte_volume_source.py b/kubernetes/client/models/v1_quobyte_volume_source.py index aeb7eb131d..5f76909dd9 100644 --- a/kubernetes/client/models/v1_quobyte_volume_source.py +++ b/kubernetes/client/models/v1_quobyte_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1QuobyteVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1QuobyteVolumeSource(object): 'volume': 'volume' } - def __init__(self, group=None, read_only=None, registry=None, tenant=None, user=None, volume=None): # noqa: E501 + def __init__(self, group=None, read_only=None, registry=None, tenant=None, user=None, volume=None, local_vars_configuration=None): # noqa: E501 """V1QuobyteVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._group = None self._read_only = None @@ -136,7 +141,7 @@ def registry(self, registry): :param registry: The registry of this V1QuobyteVolumeSource. # noqa: E501 :type: str """ - if registry is None: + if self.local_vars_configuration.client_side_validation and registry is None: # noqa: E501 raise ValueError("Invalid value for `registry`, must not be `None`") # noqa: E501 self._registry = registry @@ -207,7 +212,7 @@ def volume(self, volume): :param volume: The volume of this V1QuobyteVolumeSource. # noqa: E501 :type: str """ - if volume is None: + if self.local_vars_configuration.client_side_validation and volume is None: # noqa: E501 raise ValueError("Invalid value for `volume`, must not be `None`") # noqa: E501 self._volume = volume @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1QuobyteVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1QuobyteVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_rbd_persistent_volume_source.py b/kubernetes/client/models/v1_rbd_persistent_volume_source.py index da9895ce64..1906858534 100644 --- a/kubernetes/client/models/v1_rbd_persistent_volume_source.py +++ b/kubernetes/client/models/v1_rbd_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RBDPersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1RBDPersistentVolumeSource(object): 'user': 'user' } - def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None): # noqa: E501 + def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None, local_vars_configuration=None): # noqa: E501 """V1RBDPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._image = None @@ -123,7 +128,7 @@ def image(self, image): :param image: The image of this V1RBDPersistentVolumeSource. # noqa: E501 :type: str """ - if image is None: + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 self._image = image @@ -171,7 +176,7 @@ def monitors(self, monitors): :param monitors: The monitors of this V1RBDPersistentVolumeSource. # noqa: E501 :type: list[str] """ - if monitors is None: + if self.local_vars_configuration.client_side_validation and monitors is None: # noqa: E501 raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 self._monitors = monitors @@ -303,8 +308,11 @@ def __eq__(self, other): if not isinstance(other, V1RBDPersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RBDPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_rbd_volume_source.py b/kubernetes/client/models/v1_rbd_volume_source.py index 7ad67060d1..1d13a69be0 100644 --- a/kubernetes/client/models/v1_rbd_volume_source.py +++ b/kubernetes/client/models/v1_rbd_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RBDVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1RBDVolumeSource(object): 'user': 'user' } - def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None): # noqa: E501 + def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=None, read_only=None, secret_ref=None, user=None, local_vars_configuration=None): # noqa: E501 """V1RBDVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._image = None @@ -123,7 +128,7 @@ def image(self, image): :param image: The image of this V1RBDVolumeSource. # noqa: E501 :type: str """ - if image is None: + if self.local_vars_configuration.client_side_validation and image is None: # noqa: E501 raise ValueError("Invalid value for `image`, must not be `None`") # noqa: E501 self._image = image @@ -171,7 +176,7 @@ def monitors(self, monitors): :param monitors: The monitors of this V1RBDVolumeSource. # noqa: E501 :type: list[str] """ - if monitors is None: + if self.local_vars_configuration.client_side_validation and monitors is None: # noqa: E501 raise ValueError("Invalid value for `monitors`, must not be `None`") # noqa: E501 self._monitors = monitors @@ -303,8 +308,11 @@ def __eq__(self, other): if not isinstance(other, V1RBDVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RBDVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replica_set.py b/kubernetes/client/models/v1_replica_set.py index be8f2030b2..ee0856557d 100644 --- a/kubernetes/client/models/v1_replica_set.py +++ b/kubernetes/client/models/v1_replica_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicaSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ReplicaSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1ReplicaSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicaSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicaSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replica_set_condition.py b/kubernetes/client/models/v1_replica_set_condition.py index f4e622ce43..6caef75d24 100644 --- a/kubernetes/client/models/v1_replica_set_condition.py +++ b/kubernetes/client/models/v1_replica_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicaSetCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ReplicaSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1ReplicaSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1ReplicaSetCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1ReplicaSetCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicaSetCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicaSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replica_set_list.py b/kubernetes/client/models/v1_replica_set_list.py index 5249494171..c3979ce681 100644 --- a/kubernetes/client/models/v1_replica_set_list.py +++ b/kubernetes/client/models/v1_replica_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicaSetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ReplicaSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ReplicaSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ReplicaSetList. # noqa: E501 :type: list[V1ReplicaSet] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicaSetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicaSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replica_set_spec.py b/kubernetes/client/models/v1_replica_set_spec.py index 1527bba051..e73b9f949e 100644 --- a/kubernetes/client/models/v1_replica_set_spec.py +++ b/kubernetes/client/models/v1_replica_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicaSetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ReplicaSetSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None, local_vars_configuration=None): # noqa: E501 """V1ReplicaSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._replicas = None @@ -125,7 +130,7 @@ def selector(self, selector): :param selector: The selector of this V1ReplicaSetSpec. # noqa: E501 :type: V1LabelSelector """ - if selector is None: + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicaSetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicaSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replica_set_status.py b/kubernetes/client/models/v1_replica_set_status.py index 9b8b761feb..15494e6bcb 100644 --- a/kubernetes/client/models/v1_replica_set_status.py +++ b/kubernetes/client/models/v1_replica_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicaSetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1ReplicaSetStatus(object): 'replicas': 'replicas' } - def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): # noqa: E501 + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None, local_vars_configuration=None): # noqa: E501 """V1ReplicaSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._available_replicas = None self._conditions = None @@ -206,7 +211,7 @@ def replicas(self, replicas): :param replicas: The replicas of this V1ReplicaSetStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -248,8 +253,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicaSetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicaSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replication_controller.py b/kubernetes/client/models/v1_replication_controller.py index 3887b72e8e..102098a3d0 100644 --- a/kubernetes/client/models/v1_replication_controller.py +++ b/kubernetes/client/models/v1_replication_controller.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicationController(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ReplicationController(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1ReplicationController - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicationController): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicationController): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replication_controller_condition.py b/kubernetes/client/models/v1_replication_controller_condition.py index 7dfefedbf7..17ccc86f38 100644 --- a/kubernetes/client/models/v1_replication_controller_condition.py +++ b/kubernetes/client/models/v1_replication_controller_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicationControllerCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ReplicationControllerCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1ReplicationControllerCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1ReplicationControllerCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1ReplicationControllerCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicationControllerCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicationControllerCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replication_controller_list.py b/kubernetes/client/models/v1_replication_controller_list.py index 6b1b0446cd..2e22c274f4 100644 --- a/kubernetes/client/models/v1_replication_controller_list.py +++ b/kubernetes/client/models/v1_replication_controller_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicationControllerList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ReplicationControllerList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ReplicationControllerList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ReplicationControllerList. # noqa: E501 :type: list[V1ReplicationController] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicationControllerList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicationControllerList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replication_controller_spec.py b/kubernetes/client/models/v1_replication_controller_spec.py index 3464167279..c87fe27bde 100644 --- a/kubernetes/client/models/v1_replication_controller_spec.py +++ b/kubernetes/client/models/v1_replication_controller_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicationControllerSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ReplicationControllerSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None, local_vars_configuration=None): # noqa: E501 """V1ReplicationControllerSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._replicas = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicationControllerSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicationControllerSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_replication_controller_status.py b/kubernetes/client/models/v1_replication_controller_status.py index a56d68622e..0b12457ef8 100644 --- a/kubernetes/client/models/v1_replication_controller_status.py +++ b/kubernetes/client/models/v1_replication_controller_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ReplicationControllerStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1ReplicationControllerStatus(object): 'replicas': 'replicas' } - def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): # noqa: E501 + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None, local_vars_configuration=None): # noqa: E501 """V1ReplicationControllerStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._available_replicas = None self._conditions = None @@ -206,7 +211,7 @@ def replicas(self, replicas): :param replicas: The replicas of this V1ReplicationControllerStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -248,8 +253,11 @@ def __eq__(self, other): if not isinstance(other, V1ReplicationControllerStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ReplicationControllerStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_resource_attributes.py b/kubernetes/client/models/v1_resource_attributes.py index d667123e8a..e8d825368f 100644 --- a/kubernetes/client/models/v1_resource_attributes.py +++ b/kubernetes/client/models/v1_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ResourceAttributes(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1ResourceAttributes(object): 'version': 'version' } - def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None): # noqa: E501 + def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None, local_vars_configuration=None): # noqa: E501 """V1ResourceAttributes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._group = None self._name = None @@ -275,8 +280,11 @@ def __eq__(self, other): if not isinstance(other, V1ResourceAttributes): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ResourceAttributes): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_resource_field_selector.py b/kubernetes/client/models/v1_resource_field_selector.py index da218b3ec6..c8b2d77d27 100644 --- a/kubernetes/client/models/v1_resource_field_selector.py +++ b/kubernetes/client/models/v1_resource_field_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ResourceFieldSelector(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1ResourceFieldSelector(object): 'resource': 'resource' } - def __init__(self, container_name=None, divisor=None, resource=None): # noqa: E501 + def __init__(self, container_name=None, divisor=None, resource=None, local_vars_configuration=None): # noqa: E501 """V1ResourceFieldSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._container_name = None self._divisor = None @@ -122,7 +127,7 @@ def resource(self, resource): :param resource: The resource of this V1ResourceFieldSelector. # noqa: E501 :type: str """ - if resource is None: + if self.local_vars_configuration.client_side_validation and resource is None: # noqa: E501 raise ValueError("Invalid value for `resource`, must not be `None`") # noqa: E501 self._resource = resource @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1ResourceFieldSelector): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ResourceFieldSelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_resource_quota.py b/kubernetes/client/models/v1_resource_quota.py index a1978e72b3..70af1cd724 100644 --- a/kubernetes/client/models/v1_resource_quota.py +++ b/kubernetes/client/models/v1_resource_quota.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ResourceQuota(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ResourceQuota(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1ResourceQuota - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1ResourceQuota): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ResourceQuota): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_resource_quota_list.py b/kubernetes/client/models/v1_resource_quota_list.py index 1fb460712e..61a9567dfb 100644 --- a/kubernetes/client/models/v1_resource_quota_list.py +++ b/kubernetes/client/models/v1_resource_quota_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ResourceQuotaList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ResourceQuotaList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ResourceQuotaList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ResourceQuotaList. # noqa: E501 :type: list[V1ResourceQuota] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ResourceQuotaList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ResourceQuotaList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_resource_quota_spec.py b/kubernetes/client/models/v1_resource_quota_spec.py index b11845eebb..291975db55 100644 --- a/kubernetes/client/models/v1_resource_quota_spec.py +++ b/kubernetes/client/models/v1_resource_quota_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ResourceQuotaSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1ResourceQuotaSpec(object): 'scopes': 'scopes' } - def __init__(self, hard=None, scope_selector=None, scopes=None): # noqa: E501 + def __init__(self, hard=None, scope_selector=None, scopes=None, local_vars_configuration=None): # noqa: E501 """V1ResourceQuotaSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._hard = None self._scope_selector = None @@ -161,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, V1ResourceQuotaSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ResourceQuotaSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_resource_quota_status.py b/kubernetes/client/models/v1_resource_quota_status.py index 6a9774a8c3..3f74e2a81e 100644 --- a/kubernetes/client/models/v1_resource_quota_status.py +++ b/kubernetes/client/models/v1_resource_quota_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ResourceQuotaStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ResourceQuotaStatus(object): 'used': 'used' } - def __init__(self, hard=None, used=None): # noqa: E501 + def __init__(self, hard=None, used=None, local_vars_configuration=None): # noqa: E501 """V1ResourceQuotaStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._hard = None self._used = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1ResourceQuotaStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ResourceQuotaStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_resource_requirements.py b/kubernetes/client/models/v1_resource_requirements.py index 0245561f14..c9ad3299cb 100644 --- a/kubernetes/client/models/v1_resource_requirements.py +++ b/kubernetes/client/models/v1_resource_requirements.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ResourceRequirements(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ResourceRequirements(object): 'requests': 'requests' } - def __init__(self, limits=None, requests=None): # noqa: E501 + def __init__(self, limits=None, requests=None, local_vars_configuration=None): # noqa: E501 """V1ResourceRequirements - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._limits = None self._requests = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1ResourceRequirements): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ResourceRequirements): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_resource_rule.py b/kubernetes/client/models/v1_resource_rule.py index 81c036ce4d..777d1b8594 100644 --- a/kubernetes/client/models/v1_resource_rule.py +++ b/kubernetes/client/models/v1_resource_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ResourceRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ResourceRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=None, local_vars_configuration=None): # noqa: E501 """V1ResourceRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_groups = None self._resource_names = None @@ -150,7 +155,7 @@ def verbs(self, verbs): :param verbs: The verbs of this V1ResourceRule. # noqa: E501 :type: list[str] """ - if verbs is None: + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V1ResourceRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ResourceRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_role.py b/kubernetes/client/models/v1_role.py index b2528b96f7..f7bd280504 100644 --- a/kubernetes/client/models/v1_role.py +++ b/kubernetes/client/models/v1_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Role(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1Role(object): 'rules': 'rules' } - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, rules=None, local_vars_configuration=None): # noqa: E501 """V1Role - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1Role): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Role): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_role_binding.py b/kubernetes/client/models/v1_role_binding.py index 840b39eab5..687aa2d611 100644 --- a/kubernetes/client/models/v1_role_binding.py +++ b/kubernetes/client/models/v1_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RoleBinding(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1RoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, local_vars_configuration=None): # noqa: E501 """V1RoleBinding - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def role_ref(self, role_ref): :param role_ref: The role_ref of this V1RoleBinding. # noqa: E501 :type: V1RoleRef """ - if role_ref is None: + if self.local_vars_configuration.client_side_validation and role_ref is None: # noqa: E501 raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @@ -216,8 +221,11 @@ def __eq__(self, other): if not isinstance(other, V1RoleBinding): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RoleBinding): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_role_binding_list.py b/kubernetes/client/models/v1_role_binding_list.py index 122c54365d..7771a98dd5 100644 --- a/kubernetes/client/models/v1_role_binding_list.py +++ b/kubernetes/client/models/v1_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RoleBindingList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1RoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1RoleBindingList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1RoleBindingList. # noqa: E501 :type: list[V1RoleBinding] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1RoleBindingList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RoleBindingList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_role_list.py b/kubernetes/client/models/v1_role_list.py index a8e391889a..ae3ab9e01f 100644 --- a/kubernetes/client/models/v1_role_list.py +++ b/kubernetes/client/models/v1_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RoleList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1RoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1RoleList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1RoleList. # noqa: E501 :type: list[V1Role] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1RoleList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RoleList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_role_ref.py b/kubernetes/client/models/v1_role_ref.py index 7ddb4d68fa..54adadc072 100644 --- a/kubernetes/client/models/v1_role_ref.py +++ b/kubernetes/client/models/v1_role_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RoleRef(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1RoleRef(object): 'name': 'name' } - def __init__(self, api_group=None, kind=None, name=None): # noqa: E501 + def __init__(self, api_group=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 """V1RoleRef - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_group = None self._kind = None @@ -74,7 +79,7 @@ def api_group(self, api_group): :param api_group: The api_group of this V1RoleRef. # noqa: E501 :type: str """ - if api_group is None: + if self.local_vars_configuration.client_side_validation and api_group is None: # noqa: E501 raise ValueError("Invalid value for `api_group`, must not be `None`") # noqa: E501 self._api_group = api_group @@ -99,7 +104,7 @@ def kind(self, kind): :param kind: The kind of this V1RoleRef. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -124,7 +129,7 @@ def name(self, name): :param name: The name of this V1RoleRef. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -166,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, V1RoleRef): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RoleRef): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_rolling_update_daemon_set.py b/kubernetes/client/models/v1_rolling_update_daemon_set.py index 26216afa36..1c38e5c18e 100644 --- a/kubernetes/client/models/v1_rolling_update_daemon_set.py +++ b/kubernetes/client/models/v1_rolling_update_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RollingUpdateDaemonSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1RollingUpdateDaemonSet(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_unavailable=None): # noqa: E501 + def __init__(self, max_unavailable=None, local_vars_configuration=None): # noqa: E501 """V1RollingUpdateDaemonSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_unavailable = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1RollingUpdateDaemonSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RollingUpdateDaemonSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_rolling_update_deployment.py b/kubernetes/client/models/v1_rolling_update_deployment.py index 4d2b5848d5..b45dd2851f 100644 --- a/kubernetes/client/models/v1_rolling_update_deployment.py +++ b/kubernetes/client/models/v1_rolling_update_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RollingUpdateDeployment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1RollingUpdateDeployment(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_surge=None, max_unavailable=None): # noqa: E501 + def __init__(self, max_surge=None, max_unavailable=None, local_vars_configuration=None): # noqa: E501 """V1RollingUpdateDeployment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_surge = None self._max_unavailable = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1RollingUpdateDeployment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RollingUpdateDeployment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py b/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py index 1d759da64e..a22737c1a6 100644 --- a/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py +++ b/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RollingUpdateStatefulSetStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1RollingUpdateStatefulSetStrategy(object): 'partition': 'partition' } - def __init__(self, partition=None): # noqa: E501 + def __init__(self, partition=None, local_vars_configuration=None): # noqa: E501 """V1RollingUpdateStatefulSetStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._partition = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1RollingUpdateStatefulSetStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RollingUpdateStatefulSetStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_rule_with_operations.py b/kubernetes/client/models/v1_rule_with_operations.py index fcf2ecf3cf..781ee8bb17 100644 --- a/kubernetes/client/models/v1_rule_with_operations.py +++ b/kubernetes/client/models/v1_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1RuleWithOperations(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1RuleWithOperations(object): 'scope': 'scope' } - def __init__(self, api_groups=None, api_versions=None, operations=None, resources=None, scope=None): # noqa: E501 + def __init__(self, api_groups=None, api_versions=None, operations=None, resources=None, scope=None, local_vars_configuration=None): # noqa: E501 """V1RuleWithOperations - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_groups = None self._api_versions = None @@ -219,8 +224,11 @@ def __eq__(self, other): if not isinstance(other, V1RuleWithOperations): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1RuleWithOperations): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_scale.py b/kubernetes/client/models/v1_scale.py index b1d120ff69..9cf26e4638 100644 --- a/kubernetes/client/models/v1_scale.py +++ b/kubernetes/client/models/v1_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Scale(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1Scale(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1Scale - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1Scale): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Scale): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_scale_io_persistent_volume_source.py b/kubernetes/client/models/v1_scale_io_persistent_volume_source.py index af876ba429..3f60d2cdda 100644 --- a/kubernetes/client/models/v1_scale_io_persistent_volume_source.py +++ b/kubernetes/client/models/v1_scale_io_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ScaleIOPersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1ScaleIOPersistentVolumeSource(object): 'volume_name': 'volumeName' } - def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None): # noqa: E501 + def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None, local_vars_configuration=None): # noqa: E501 """V1ScaleIOPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._gateway = None @@ -132,7 +137,7 @@ def gateway(self, gateway): :param gateway: The gateway of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: str """ - if gateway is None: + if self.local_vars_configuration.client_side_validation and gateway is None: # noqa: E501 raise ValueError("Invalid value for `gateway`, must not be `None`") # noqa: E501 self._gateway = gateway @@ -201,7 +206,7 @@ def secret_ref(self, secret_ref): :param secret_ref: The secret_ref of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: V1SecretReference """ - if secret_ref is None: + if self.local_vars_configuration.client_side_validation and secret_ref is None: # noqa: E501 raise ValueError("Invalid value for `secret_ref`, must not be `None`") # noqa: E501 self._secret_ref = secret_ref @@ -295,7 +300,7 @@ def system(self, system): :param system: The system of this V1ScaleIOPersistentVolumeSource. # noqa: E501 :type: str """ - if system is None: + if self.local_vars_configuration.client_side_validation and system is None: # noqa: E501 raise ValueError("Invalid value for `system`, must not be `None`") # noqa: E501 self._system = system @@ -360,8 +365,11 @@ def __eq__(self, other): if not isinstance(other, V1ScaleIOPersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ScaleIOPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_scale_io_volume_source.py b/kubernetes/client/models/v1_scale_io_volume_source.py index 596f8ccbe8..ec804664b0 100644 --- a/kubernetes/client/models/v1_scale_io_volume_source.py +++ b/kubernetes/client/models/v1_scale_io_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ScaleIOVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1ScaleIOVolumeSource(object): 'volume_name': 'volumeName' } - def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None): # noqa: E501 + def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only=None, secret_ref=None, ssl_enabled=None, storage_mode=None, storage_pool=None, system=None, volume_name=None, local_vars_configuration=None): # noqa: E501 """V1ScaleIOVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._gateway = None @@ -132,7 +137,7 @@ def gateway(self, gateway): :param gateway: The gateway of this V1ScaleIOVolumeSource. # noqa: E501 :type: str """ - if gateway is None: + if self.local_vars_configuration.client_side_validation and gateway is None: # noqa: E501 raise ValueError("Invalid value for `gateway`, must not be `None`") # noqa: E501 self._gateway = gateway @@ -201,7 +206,7 @@ def secret_ref(self, secret_ref): :param secret_ref: The secret_ref of this V1ScaleIOVolumeSource. # noqa: E501 :type: V1LocalObjectReference """ - if secret_ref is None: + if self.local_vars_configuration.client_side_validation and secret_ref is None: # noqa: E501 raise ValueError("Invalid value for `secret_ref`, must not be `None`") # noqa: E501 self._secret_ref = secret_ref @@ -295,7 +300,7 @@ def system(self, system): :param system: The system of this V1ScaleIOVolumeSource. # noqa: E501 :type: str """ - if system is None: + if self.local_vars_configuration.client_side_validation and system is None: # noqa: E501 raise ValueError("Invalid value for `system`, must not be `None`") # noqa: E501 self._system = system @@ -360,8 +365,11 @@ def __eq__(self, other): if not isinstance(other, V1ScaleIOVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ScaleIOVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_scale_spec.py b/kubernetes/client/models/v1_scale_spec.py index 2d156fd0a5..9936100dad 100644 --- a/kubernetes/client/models/v1_scale_spec.py +++ b/kubernetes/client/models/v1_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ScaleSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1ScaleSpec(object): 'replicas': 'replicas' } - def __init__(self, replicas=None): # noqa: E501 + def __init__(self, replicas=None, local_vars_configuration=None): # noqa: E501 """V1ScaleSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._replicas = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1ScaleSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ScaleSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_scale_status.py b/kubernetes/client/models/v1_scale_status.py index 2ff2d2b11d..62f5e44e76 100644 --- a/kubernetes/client/models/v1_scale_status.py +++ b/kubernetes/client/models/v1_scale_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ScaleStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ScaleStatus(object): 'selector': 'selector' } - def __init__(self, replicas=None, selector=None): # noqa: E501 + def __init__(self, replicas=None, selector=None, local_vars_configuration=None): # noqa: E501 """V1ScaleStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._replicas = None self._selector = None @@ -71,7 +76,7 @@ def replicas(self, replicas): :param replicas: The replicas of this V1ScaleStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1ScaleStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ScaleStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_scope_selector.py b/kubernetes/client/models/v1_scope_selector.py index b79ec99d8c..6c2c92d0d8 100644 --- a/kubernetes/client/models/v1_scope_selector.py +++ b/kubernetes/client/models/v1_scope_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ScopeSelector(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1ScopeSelector(object): 'match_expressions': 'matchExpressions' } - def __init__(self, match_expressions=None): # noqa: E501 + def __init__(self, match_expressions=None, local_vars_configuration=None): # noqa: E501 """V1ScopeSelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._match_expressions = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1ScopeSelector): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ScopeSelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_scoped_resource_selector_requirement.py b/kubernetes/client/models/v1_scoped_resource_selector_requirement.py index 10edc850b4..6be22d5198 100644 --- a/kubernetes/client/models/v1_scoped_resource_selector_requirement.py +++ b/kubernetes/client/models/v1_scoped_resource_selector_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ScopedResourceSelectorRequirement(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1ScopedResourceSelectorRequirement(object): 'values': 'values' } - def __init__(self, operator=None, scope_name=None, values=None): # noqa: E501 + def __init__(self, operator=None, scope_name=None, values=None, local_vars_configuration=None): # noqa: E501 """V1ScopedResourceSelectorRequirement - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._operator = None self._scope_name = None @@ -75,7 +80,7 @@ def operator(self, operator): :param operator: The operator of this V1ScopedResourceSelectorRequirement. # noqa: E501 :type: str """ - if operator is None: + if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501 raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501 self._operator = operator @@ -100,7 +105,7 @@ def scope_name(self, scope_name): :param scope_name: The scope_name of this V1ScopedResourceSelectorRequirement. # noqa: E501 :type: str """ - if scope_name is None: + if self.local_vars_configuration.client_side_validation and scope_name is None: # noqa: E501 raise ValueError("Invalid value for `scope_name`, must not be `None`") # noqa: E501 self._scope_name = scope_name @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1ScopedResourceSelectorRequirement): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ScopedResourceSelectorRequirement): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_se_linux_options.py b/kubernetes/client/models/v1_se_linux_options.py index 6facbc8d63..39f30d6aa3 100644 --- a/kubernetes/client/models/v1_se_linux_options.py +++ b/kubernetes/client/models/v1_se_linux_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SELinuxOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1SELinuxOptions(object): 'user': 'user' } - def __init__(self, level=None, role=None, type=None, user=None): # noqa: E501 + def __init__(self, level=None, role=None, type=None, user=None, local_vars_configuration=None): # noqa: E501 """V1SELinuxOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._level = None self._role = None @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1SELinuxOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SELinuxOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_secret.py b/kubernetes/client/models/v1_secret.py index 70118dd3a5..f49b50066b 100644 --- a/kubernetes/client/models/v1_secret.py +++ b/kubernetes/client/models/v1_secret.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Secret(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1Secret(object): 'type': 'type' } - def __init__(self, api_version=None, data=None, kind=None, metadata=None, string_data=None, type=None): # noqa: E501 + def __init__(self, api_version=None, data=None, kind=None, metadata=None, string_data=None, type=None, local_vars_configuration=None): # noqa: E501 """V1Secret - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._data = None @@ -245,8 +250,11 @@ def __eq__(self, other): if not isinstance(other, V1Secret): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Secret): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_secret_env_source.py b/kubernetes/client/models/v1_secret_env_source.py index 429826f381..0d7c641f40 100644 --- a/kubernetes/client/models/v1_secret_env_source.py +++ b/kubernetes/client/models/v1_secret_env_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SecretEnvSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1SecretEnvSource(object): 'optional': 'optional' } - def __init__(self, name=None, optional=None): # noqa: E501 + def __init__(self, name=None, optional=None, local_vars_configuration=None): # noqa: E501 """V1SecretEnvSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._optional = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1SecretEnvSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SecretEnvSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_secret_key_selector.py b/kubernetes/client/models/v1_secret_key_selector.py index 39ca071345..93ef27e358 100644 --- a/kubernetes/client/models/v1_secret_key_selector.py +++ b/kubernetes/client/models/v1_secret_key_selector.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SecretKeySelector(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1SecretKeySelector(object): 'optional': 'optional' } - def __init__(self, key=None, name=None, optional=None): # noqa: E501 + def __init__(self, key=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501 """V1SecretKeySelector - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._key = None self._name = None @@ -76,7 +81,7 @@ def key(self, key): :param key: The key of this V1SecretKeySelector. # noqa: E501 :type: str """ - if key is None: + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1SecretKeySelector): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SecretKeySelector): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_secret_list.py b/kubernetes/client/models/v1_secret_list.py index 4f460b8b44..02353df521 100644 --- a/kubernetes/client/models/v1_secret_list.py +++ b/kubernetes/client/models/v1_secret_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SecretList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1SecretList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1SecretList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1SecretList. # noqa: E501 :type: list[V1Secret] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1SecretList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SecretList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_secret_projection.py b/kubernetes/client/models/v1_secret_projection.py index b8ff590209..450785beb1 100644 --- a/kubernetes/client/models/v1_secret_projection.py +++ b/kubernetes/client/models/v1_secret_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SecretProjection(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1SecretProjection(object): 'optional': 'optional' } - def __init__(self, items=None, name=None, optional=None): # noqa: E501 + def __init__(self, items=None, name=None, optional=None, local_vars_configuration=None): # noqa: E501 """V1SecretProjection - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._items = None self._name = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1SecretProjection): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SecretProjection): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_secret_reference.py b/kubernetes/client/models/v1_secret_reference.py index b319a99d9c..dc2c19de14 100644 --- a/kubernetes/client/models/v1_secret_reference.py +++ b/kubernetes/client/models/v1_secret_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SecretReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1SecretReference(object): 'namespace': 'namespace' } - def __init__(self, name=None, namespace=None): # noqa: E501 + def __init__(self, name=None, namespace=None, local_vars_configuration=None): # noqa: E501 """V1SecretReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._namespace = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1SecretReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SecretReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_secret_volume_source.py b/kubernetes/client/models/v1_secret_volume_source.py index fd6bc4d93f..f3631ab087 100644 --- a/kubernetes/client/models/v1_secret_volume_source.py +++ b/kubernetes/client/models/v1_secret_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SecretVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1SecretVolumeSource(object): 'secret_name': 'secretName' } - def __init__(self, default_mode=None, items=None, optional=None, secret_name=None): # noqa: E501 + def __init__(self, default_mode=None, items=None, optional=None, secret_name=None, local_vars_configuration=None): # noqa: E501 """V1SecretVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._default_mode = None self._items = None @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1SecretVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SecretVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_security_context.py b/kubernetes/client/models/v1_security_context.py index f3c4623026..f551590b1d 100644 --- a/kubernetes/client/models/v1_security_context.py +++ b/kubernetes/client/models/v1_security_context.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SecurityContext(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1SecurityContext(object): 'windows_options': 'windowsOptions' } - def __init__(self, allow_privilege_escalation=None, capabilities=None, privileged=None, proc_mount=None, read_only_root_filesystem=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, windows_options=None): # noqa: E501 + def __init__(self, allow_privilege_escalation=None, capabilities=None, privileged=None, proc_mount=None, read_only_root_filesystem=None, run_as_group=None, run_as_non_root=None, run_as_user=None, se_linux_options=None, windows_options=None, local_vars_configuration=None): # noqa: E501 """V1SecurityContext - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allow_privilege_escalation = None self._capabilities = None @@ -353,8 +358,11 @@ def __eq__(self, other): if not isinstance(other, V1SecurityContext): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SecurityContext): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_self_subject_access_review.py b/kubernetes/client/models/v1_self_subject_access_review.py index 1f93589ec6..2ba52f23f7 100644 --- a/kubernetes/client/models/v1_self_subject_access_review.py +++ b/kubernetes/client/models/v1_self_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SelfSubjectAccessReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1SelfSubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1SelfSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1SelfSubjectAccessReview. # noqa: E501 :type: V1SelfSubjectAccessReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1SelfSubjectAccessReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SelfSubjectAccessReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_self_subject_access_review_spec.py b/kubernetes/client/models/v1_self_subject_access_review_spec.py index 85bba0d048..d24caa876a 100644 --- a/kubernetes/client/models/v1_self_subject_access_review_spec.py +++ b/kubernetes/client/models/v1_self_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SelfSubjectAccessReviewSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1SelfSubjectAccessReviewSpec(object): 'resource_attributes': 'resourceAttributes' } - def __init__(self, non_resource_attributes=None, resource_attributes=None): # noqa: E501 + def __init__(self, non_resource_attributes=None, resource_attributes=None, local_vars_configuration=None): # noqa: E501 """V1SelfSubjectAccessReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._non_resource_attributes = None self._resource_attributes = None @@ -131,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, V1SelfSubjectAccessReviewSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SelfSubjectAccessReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_self_subject_rules_review.py b/kubernetes/client/models/v1_self_subject_rules_review.py index b087c33ea0..bd12a3855d 100644 --- a/kubernetes/client/models/v1_self_subject_rules_review.py +++ b/kubernetes/client/models/v1_self_subject_rules_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SelfSubjectRulesReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1SelfSubjectRulesReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1SelfSubjectRulesReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1SelfSubjectRulesReview. # noqa: E501 :type: V1SelfSubjectRulesReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1SelfSubjectRulesReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SelfSubjectRulesReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_self_subject_rules_review_spec.py b/kubernetes/client/models/v1_self_subject_rules_review_spec.py index 64e87be885..276f96695d 100644 --- a/kubernetes/client/models/v1_self_subject_rules_review_spec.py +++ b/kubernetes/client/models/v1_self_subject_rules_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SelfSubjectRulesReviewSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1SelfSubjectRulesReviewSpec(object): 'namespace': 'namespace' } - def __init__(self, namespace=None): # noqa: E501 + def __init__(self, namespace=None, local_vars_configuration=None): # noqa: E501 """V1SelfSubjectRulesReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._namespace = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1SelfSubjectRulesReviewSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SelfSubjectRulesReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_server_address_by_client_cidr.py b/kubernetes/client/models/v1_server_address_by_client_cidr.py index 07bbf0f572..a069c52002 100644 --- a/kubernetes/client/models/v1_server_address_by_client_cidr.py +++ b/kubernetes/client/models/v1_server_address_by_client_cidr.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ServerAddressByClientCIDR(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1ServerAddressByClientCIDR(object): 'server_address': 'serverAddress' } - def __init__(self, client_cidr=None, server_address=None): # noqa: E501 + def __init__(self, client_cidr=None, server_address=None, local_vars_configuration=None): # noqa: E501 """V1ServerAddressByClientCIDR - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._client_cidr = None self._server_address = None @@ -70,7 +75,7 @@ def client_cidr(self, client_cidr): :param client_cidr: The client_cidr of this V1ServerAddressByClientCIDR. # noqa: E501 :type: str """ - if client_cidr is None: + if self.local_vars_configuration.client_side_validation and client_cidr is None: # noqa: E501 raise ValueError("Invalid value for `client_cidr`, must not be `None`") # noqa: E501 self._client_cidr = client_cidr @@ -95,7 +100,7 @@ def server_address(self, server_address): :param server_address: The server_address of this V1ServerAddressByClientCIDR. # noqa: E501 :type: str """ - if server_address is None: + if self.local_vars_configuration.client_side_validation and server_address is None: # noqa: E501 raise ValueError("Invalid value for `server_address`, must not be `None`") # noqa: E501 self._server_address = server_address @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, V1ServerAddressByClientCIDR): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ServerAddressByClientCIDR): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_service.py b/kubernetes/client/models/v1_service.py index ce570adf62..2a1a6d76b0 100644 --- a/kubernetes/client/models/v1_service.py +++ b/kubernetes/client/models/v1_service.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Service(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1Service(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1Service - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1Service): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Service): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_service_account.py b/kubernetes/client/models/v1_service_account.py index 18be69100a..90d8b884f7 100644 --- a/kubernetes/client/models/v1_service_account.py +++ b/kubernetes/client/models/v1_service_account.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ServiceAccount(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1ServiceAccount(object): 'secrets': 'secrets' } - def __init__(self, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None): # noqa: E501 + def __init__(self, api_version=None, automount_service_account_token=None, image_pull_secrets=None, kind=None, metadata=None, secrets=None, local_vars_configuration=None): # noqa: E501 """V1ServiceAccount - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._automount_service_account_token = None @@ -245,8 +250,11 @@ def __eq__(self, other): if not isinstance(other, V1ServiceAccount): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ServiceAccount): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_service_account_list.py b/kubernetes/client/models/v1_service_account_list.py index 46aa59a649..da6ebbc2bc 100644 --- a/kubernetes/client/models/v1_service_account_list.py +++ b/kubernetes/client/models/v1_service_account_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ServiceAccountList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ServiceAccountList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ServiceAccountList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ServiceAccountList. # noqa: E501 :type: list[V1ServiceAccount] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ServiceAccountList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ServiceAccountList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_service_account_token_projection.py b/kubernetes/client/models/v1_service_account_token_projection.py index 9e73b07603..9a209fff7f 100644 --- a/kubernetes/client/models/v1_service_account_token_projection.py +++ b/kubernetes/client/models/v1_service_account_token_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ServiceAccountTokenProjection(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1ServiceAccountTokenProjection(object): 'path': 'path' } - def __init__(self, audience=None, expiration_seconds=None, path=None): # noqa: E501 + def __init__(self, audience=None, expiration_seconds=None, path=None, local_vars_configuration=None): # noqa: E501 """V1ServiceAccountTokenProjection - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._audience = None self._expiration_seconds = None @@ -122,7 +127,7 @@ def path(self, path): :param path: The path of this V1ServiceAccountTokenProjection. # noqa: E501 :type: str """ - if path is None: + if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501 raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501 self._path = path @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1ServiceAccountTokenProjection): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ServiceAccountTokenProjection): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_service_list.py b/kubernetes/client/models/v1_service_list.py index a69d5baa58..f73b830b90 100644 --- a/kubernetes/client/models/v1_service_list.py +++ b/kubernetes/client/models/v1_service_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ServiceList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ServiceList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ServiceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ServiceList. # noqa: E501 :type: list[V1Service] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ServiceList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ServiceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_service_port.py b/kubernetes/client/models/v1_service_port.py index 45e6c0f048..6f1e03f3d8 100644 --- a/kubernetes/client/models/v1_service_port.py +++ b/kubernetes/client/models/v1_service_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ServicePort(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1ServicePort(object): 'target_port': 'targetPort' } - def __init__(self, name=None, node_port=None, port=None, protocol=None, target_port=None): # noqa: E501 + def __init__(self, name=None, node_port=None, port=None, protocol=None, target_port=None, local_vars_configuration=None): # noqa: E501 """V1ServicePort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._node_port = None @@ -132,7 +137,7 @@ def port(self, port): :param port: The port of this V1ServicePort. # noqa: E501 :type: int """ - if port is None: + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port @@ -220,8 +225,11 @@ def __eq__(self, other): if not isinstance(other, V1ServicePort): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ServicePort): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_service_spec.py b/kubernetes/client/models/v1_service_spec.py index bc4700d34b..1ed1d65082 100644 --- a/kubernetes/client/models/v1_service_spec.py +++ b/kubernetes/client/models/v1_service_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ServiceSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -64,8 +66,11 @@ class V1ServiceSpec(object): 'type': 'type' } - def __init__(self, cluster_ip=None, external_i_ps=None, external_name=None, external_traffic_policy=None, health_check_node_port=None, ip_family=None, load_balancer_ip=None, load_balancer_source_ranges=None, ports=None, publish_not_ready_addresses=None, selector=None, session_affinity=None, session_affinity_config=None, type=None): # noqa: E501 + def __init__(self, cluster_ip=None, external_i_ps=None, external_name=None, external_traffic_policy=None, health_check_node_port=None, ip_family=None, load_balancer_ip=None, load_balancer_source_ranges=None, ports=None, publish_not_ready_addresses=None, selector=None, session_affinity=None, session_affinity_config=None, type=None, local_vars_configuration=None): # noqa: E501 """V1ServiceSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._cluster_ip = None self._external_i_ps = None @@ -469,8 +474,11 @@ def __eq__(self, other): if not isinstance(other, V1ServiceSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ServiceSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_service_status.py b/kubernetes/client/models/v1_service_status.py index 12cd1e40f2..98d60534df 100644 --- a/kubernetes/client/models/v1_service_status.py +++ b/kubernetes/client/models/v1_service_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ServiceStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1ServiceStatus(object): 'load_balancer': 'loadBalancer' } - def __init__(self, load_balancer=None): # noqa: E501 + def __init__(self, load_balancer=None, local_vars_configuration=None): # noqa: E501 """V1ServiceStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._load_balancer = None self.discriminator = None @@ -105,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, V1ServiceStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ServiceStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_session_affinity_config.py b/kubernetes/client/models/v1_session_affinity_config.py index c0202a27a4..335deadbb1 100644 --- a/kubernetes/client/models/v1_session_affinity_config.py +++ b/kubernetes/client/models/v1_session_affinity_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SessionAffinityConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1SessionAffinityConfig(object): 'client_ip': 'clientIP' } - def __init__(self, client_ip=None): # noqa: E501 + def __init__(self, client_ip=None, local_vars_configuration=None): # noqa: E501 """V1SessionAffinityConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._client_ip = None self.discriminator = None @@ -105,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, V1SessionAffinityConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SessionAffinityConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_stateful_set.py b/kubernetes/client/models/v1_stateful_set.py index 6e612803ce..1fb3946072 100644 --- a/kubernetes/client/models/v1_stateful_set.py +++ b/kubernetes/client/models/v1_stateful_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StatefulSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1StatefulSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1StatefulSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1StatefulSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StatefulSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_stateful_set_condition.py b/kubernetes/client/models/v1_stateful_set_condition.py index 28470a6e2a..2d0a94b001 100644 --- a/kubernetes/client/models/v1_stateful_set_condition.py +++ b/kubernetes/client/models/v1_stateful_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StatefulSetCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1StatefulSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1StatefulSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1StatefulSetCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1StatefulSetCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1StatefulSetCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StatefulSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_stateful_set_list.py b/kubernetes/client/models/v1_stateful_set_list.py index df383dc381..7970a3e3f6 100644 --- a/kubernetes/client/models/v1_stateful_set_list.py +++ b/kubernetes/client/models/v1_stateful_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StatefulSetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1StatefulSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1StatefulSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -102,7 +107,7 @@ def items(self, items): :param items: The items of this V1StatefulSetList. # noqa: E501 :type: list[V1StatefulSet] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1StatefulSetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StatefulSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_stateful_set_spec.py b/kubernetes/client/models/v1_stateful_set_spec.py index 957f0aa0d8..c1d6ca4e87 100644 --- a/kubernetes/client/models/v1_stateful_set_spec.py +++ b/kubernetes/client/models/v1_stateful_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StatefulSetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1StatefulSetSpec(object): 'volume_claim_templates': 'volumeClaimTemplates' } - def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None): # noqa: E501 + def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None, local_vars_configuration=None): # noqa: E501 """V1StatefulSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pod_management_policy = None self._replicas = None @@ -166,7 +171,7 @@ def selector(self, selector): :param selector: The selector of this V1StatefulSetSpec. # noqa: E501 :type: V1LabelSelector """ - if selector is None: + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @@ -191,7 +196,7 @@ def service_name(self, service_name): :param service_name: The service_name of this V1StatefulSetSpec. # noqa: E501 :type: str """ - if service_name is None: + if self.local_vars_configuration.client_side_validation and service_name is None: # noqa: E501 raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @@ -214,7 +219,7 @@ def template(self, template): :param template: The template of this V1StatefulSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -300,8 +305,11 @@ def __eq__(self, other): if not isinstance(other, V1StatefulSetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StatefulSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_stateful_set_status.py b/kubernetes/client/models/v1_stateful_set_status.py index 0e914233fa..f92baf29d9 100644 --- a/kubernetes/client/models/v1_stateful_set_status.py +++ b/kubernetes/client/models/v1_stateful_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StatefulSetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -54,8 +56,11 @@ class V1StatefulSetStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None): # noqa: E501 + def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None, local_vars_configuration=None): # noqa: E501 """V1StatefulSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._collision_count = None self._conditions = None @@ -244,7 +249,7 @@ def replicas(self, replicas): :param replicas: The replicas of this V1StatefulSetStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -332,8 +337,11 @@ def __eq__(self, other): if not isinstance(other, V1StatefulSetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StatefulSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_stateful_set_update_strategy.py b/kubernetes/client/models/v1_stateful_set_update_strategy.py index 8a46b25793..e8f90fd905 100644 --- a/kubernetes/client/models/v1_stateful_set_update_strategy.py +++ b/kubernetes/client/models/v1_stateful_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StatefulSetUpdateStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1StatefulSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """V1StatefulSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1StatefulSetUpdateStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StatefulSetUpdateStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_status.py b/kubernetes/client/models/v1_status.py index e370dbef3f..bce9624ec9 100644 --- a/kubernetes/client/models/v1_status.py +++ b/kubernetes/client/models/v1_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Status(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1Status(object): 'status': 'status' } - def __init__(self, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, status=None): # noqa: E501 + def __init__(self, api_version=None, code=None, details=None, kind=None, message=None, metadata=None, reason=None, status=None, local_vars_configuration=None): # noqa: E501 """V1Status - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._code = None @@ -299,8 +304,11 @@ def __eq__(self, other): if not isinstance(other, V1Status): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Status): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_status_cause.py b/kubernetes/client/models/v1_status_cause.py index 7cc94541ca..91b708438b 100644 --- a/kubernetes/client/models/v1_status_cause.py +++ b/kubernetes/client/models/v1_status_cause.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StatusCause(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1StatusCause(object): 'reason': 'reason' } - def __init__(self, field=None, message=None, reason=None): # noqa: E501 + def __init__(self, field=None, message=None, reason=None, local_vars_configuration=None): # noqa: E501 """V1StatusCause - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._field = None self._message = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1StatusCause): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StatusCause): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_status_details.py b/kubernetes/client/models/v1_status_details.py index 04e4ad5fb8..680ac4ae50 100644 --- a/kubernetes/client/models/v1_status_details.py +++ b/kubernetes/client/models/v1_status_details.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StatusDetails(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1StatusDetails(object): 'uid': 'uid' } - def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_seconds=None, uid=None): # noqa: E501 + def __init__(self, causes=None, group=None, kind=None, name=None, retry_after_seconds=None, uid=None, local_vars_configuration=None): # noqa: E501 """V1StatusDetails - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._causes = None self._group = None @@ -247,8 +252,11 @@ def __eq__(self, other): if not isinstance(other, V1StatusDetails): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StatusDetails): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_storage_class.py b/kubernetes/client/models/v1_storage_class.py index 9899d02454..d3a7083e4c 100644 --- a/kubernetes/client/models/v1_storage_class.py +++ b/kubernetes/client/models/v1_storage_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StorageClass(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1StorageClass(object): 'volume_binding_mode': 'volumeBindingMode' } - def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None): # noqa: E501 + def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, local_vars_configuration=None): # noqa: E501 """V1StorageClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allow_volume_expansion = None self._allowed_topologies = None @@ -270,7 +275,7 @@ def provisioner(self, provisioner): :param provisioner: The provisioner of this V1StorageClass. # noqa: E501 :type: str """ - if provisioner is None: + if self.local_vars_configuration.client_side_validation and provisioner is None: # noqa: E501 raise ValueError("Invalid value for `provisioner`, must not be `None`") # noqa: E501 self._provisioner = provisioner @@ -358,8 +363,11 @@ def __eq__(self, other): if not isinstance(other, V1StorageClass): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StorageClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_storage_class_list.py b/kubernetes/client/models/v1_storage_class_list.py index 89042ec6bc..9c604b7f07 100644 --- a/kubernetes/client/models/v1_storage_class_list.py +++ b/kubernetes/client/models/v1_storage_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StorageClassList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1StorageClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1StorageClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1StorageClassList. # noqa: E501 :type: list[V1StorageClass] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1StorageClassList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StorageClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_storage_os_persistent_volume_source.py b/kubernetes/client/models/v1_storage_os_persistent_volume_source.py index c326a16fa7..cc393f0ddf 100644 --- a/kubernetes/client/models/v1_storage_os_persistent_volume_source.py +++ b/kubernetes/client/models/v1_storage_os_persistent_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StorageOSPersistentVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1StorageOSPersistentVolumeSource(object): 'volume_namespace': 'volumeNamespace' } - def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None): # noqa: E501 + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None, local_vars_configuration=None): # noqa: E501 """V1StorageOSPersistentVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._read_only = None @@ -217,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, V1StorageOSPersistentVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StorageOSPersistentVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_storage_os_volume_source.py b/kubernetes/client/models/v1_storage_os_volume_source.py index c271accad7..370fda9c55 100644 --- a/kubernetes/client/models/v1_storage_os_volume_source.py +++ b/kubernetes/client/models/v1_storage_os_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1StorageOSVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1StorageOSVolumeSource(object): 'volume_namespace': 'volumeNamespace' } - def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None): # noqa: E501 + def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=None, volume_namespace=None, local_vars_configuration=None): # noqa: E501 """V1StorageOSVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._read_only = None @@ -217,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, V1StorageOSVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1StorageOSVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_subject.py b/kubernetes/client/models/v1_subject.py index 033065d4bb..12c0cb31e2 100644 --- a/kubernetes/client/models/v1_subject.py +++ b/kubernetes/client/models/v1_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Subject(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1Subject(object): 'namespace': 'namespace' } - def __init__(self, api_group=None, kind=None, name=None, namespace=None): # noqa: E501 + def __init__(self, api_group=None, kind=None, name=None, namespace=None, local_vars_configuration=None): # noqa: E501 """V1Subject - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_group = None self._kind = None @@ -103,7 +108,7 @@ def kind(self, kind): :param kind: The kind of this V1Subject. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -128,7 +133,7 @@ def name(self, name): :param name: The name of this V1Subject. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1Subject): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Subject): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_subject_access_review.py b/kubernetes/client/models/v1_subject_access_review.py index 17767fee58..f398813aa8 100644 --- a/kubernetes/client/models/v1_subject_access_review.py +++ b/kubernetes/client/models/v1_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SubjectAccessReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1SubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1SubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1SubjectAccessReview. # noqa: E501 :type: V1SubjectAccessReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1SubjectAccessReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SubjectAccessReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_subject_access_review_spec.py b/kubernetes/client/models/v1_subject_access_review_spec.py index 88dc8f22c7..d9e02d1344 100644 --- a/kubernetes/client/models/v1_subject_access_review_spec.py +++ b/kubernetes/client/models/v1_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SubjectAccessReviewSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1SubjectAccessReviewSpec(object): 'user': 'user' } - def __init__(self, extra=None, groups=None, non_resource_attributes=None, resource_attributes=None, uid=None, user=None): # noqa: E501 + def __init__(self, extra=None, groups=None, non_resource_attributes=None, resource_attributes=None, uid=None, user=None, local_vars_configuration=None): # noqa: E501 """V1SubjectAccessReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._extra = None self._groups = None @@ -243,8 +248,11 @@ def __eq__(self, other): if not isinstance(other, V1SubjectAccessReviewSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SubjectAccessReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_subject_access_review_status.py b/kubernetes/client/models/v1_subject_access_review_status.py index 1187fd1b7e..cde8aa07a9 100644 --- a/kubernetes/client/models/v1_subject_access_review_status.py +++ b/kubernetes/client/models/v1_subject_access_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SubjectAccessReviewStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1SubjectAccessReviewStatus(object): 'reason': 'reason' } - def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None): # noqa: E501 + def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None, local_vars_configuration=None): # noqa: E501 """V1SubjectAccessReviewStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allowed = None self._denied = None @@ -81,7 +86,7 @@ def allowed(self, allowed): :param allowed: The allowed of this V1SubjectAccessReviewStatus. # noqa: E501 :type: bool """ - if allowed is None: + if self.local_vars_configuration.client_side_validation and allowed is None: # noqa: E501 raise ValueError("Invalid value for `allowed`, must not be `None`") # noqa: E501 self._allowed = allowed @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V1SubjectAccessReviewStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SubjectAccessReviewStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_subject_rules_review_status.py b/kubernetes/client/models/v1_subject_rules_review_status.py index 73a056e7c7..bf74f766d9 100644 --- a/kubernetes/client/models/v1_subject_rules_review_status.py +++ b/kubernetes/client/models/v1_subject_rules_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1SubjectRulesReviewStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1SubjectRulesReviewStatus(object): 'resource_rules': 'resourceRules' } - def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=None, resource_rules=None): # noqa: E501 + def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=None, resource_rules=None, local_vars_configuration=None): # noqa: E501 """V1SubjectRulesReviewStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._evaluation_error = None self._incomplete = None @@ -102,7 +107,7 @@ def incomplete(self, incomplete): :param incomplete: The incomplete of this V1SubjectRulesReviewStatus. # noqa: E501 :type: bool """ - if incomplete is None: + if self.local_vars_configuration.client_side_validation and incomplete is None: # noqa: E501 raise ValueError("Invalid value for `incomplete`, must not be `None`") # noqa: E501 self._incomplete = incomplete @@ -127,7 +132,7 @@ def non_resource_rules(self, non_resource_rules): :param non_resource_rules: The non_resource_rules of this V1SubjectRulesReviewStatus. # noqa: E501 :type: list[V1NonResourceRule] """ - if non_resource_rules is None: + if self.local_vars_configuration.client_side_validation and non_resource_rules is None: # noqa: E501 raise ValueError("Invalid value for `non_resource_rules`, must not be `None`") # noqa: E501 self._non_resource_rules = non_resource_rules @@ -152,7 +157,7 @@ def resource_rules(self, resource_rules): :param resource_rules: The resource_rules of this V1SubjectRulesReviewStatus. # noqa: E501 :type: list[V1ResourceRule] """ - if resource_rules is None: + if self.local_vars_configuration.client_side_validation and resource_rules is None: # noqa: E501 raise ValueError("Invalid value for `resource_rules`, must not be `None`") # noqa: E501 self._resource_rules = resource_rules @@ -194,8 +199,11 @@ def __eq__(self, other): if not isinstance(other, V1SubjectRulesReviewStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1SubjectRulesReviewStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_sysctl.py b/kubernetes/client/models/v1_sysctl.py index e2a5c5397c..e9137dd8c7 100644 --- a/kubernetes/client/models/v1_sysctl.py +++ b/kubernetes/client/models/v1_sysctl.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Sysctl(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1Sysctl(object): 'value': 'value' } - def __init__(self, name=None, value=None): # noqa: E501 + def __init__(self, name=None, value=None, local_vars_configuration=None): # noqa: E501 """V1Sysctl - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._value = None @@ -70,7 +75,7 @@ def name(self, name): :param name: The name of this V1Sysctl. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -95,7 +100,7 @@ def value(self, value): :param value: The value of this V1Sysctl. # noqa: E501 :type: str """ - if value is None: + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, V1Sysctl): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Sysctl): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_taint.py b/kubernetes/client/models/v1_taint.py index 2e840c00c3..f1ce6eddd5 100644 --- a/kubernetes/client/models/v1_taint.py +++ b/kubernetes/client/models/v1_taint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Taint(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1Taint(object): 'value': 'value' } - def __init__(self, effect=None, key=None, time_added=None, value=None): # noqa: E501 + def __init__(self, effect=None, key=None, time_added=None, value=None, local_vars_configuration=None): # noqa: E501 """V1Taint - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._effect = None self._key = None @@ -80,7 +85,7 @@ def effect(self, effect): :param effect: The effect of this V1Taint. # noqa: E501 :type: str """ - if effect is None: + if self.local_vars_configuration.client_side_validation and effect is None: # noqa: E501 raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501 self._effect = effect @@ -105,7 +110,7 @@ def key(self, key): :param key: The key of this V1Taint. # noqa: E501 :type: str """ - if key is None: + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1Taint): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Taint): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_tcp_socket_action.py b/kubernetes/client/models/v1_tcp_socket_action.py index fe7376b31b..d2ca5c90d8 100644 --- a/kubernetes/client/models/v1_tcp_socket_action.py +++ b/kubernetes/client/models/v1_tcp_socket_action.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TCPSocketAction(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1TCPSocketAction(object): 'port': 'port' } - def __init__(self, host=None, port=None): # noqa: E501 + def __init__(self, host=None, port=None, local_vars_configuration=None): # noqa: E501 """V1TCPSocketAction - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._host = None self._port = None @@ -94,7 +99,7 @@ def port(self, port): :param port: The port of this V1TCPSocketAction. # noqa: E501 :type: object """ - if port is None: + if self.local_vars_configuration.client_side_validation and port is None: # noqa: E501 raise ValueError("Invalid value for `port`, must not be `None`") # noqa: E501 self._port = port @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1TCPSocketAction): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TCPSocketAction): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_token_request.py b/kubernetes/client/models/v1_token_request.py index a86924e423..8dc970bc24 100644 --- a/kubernetes/client/models/v1_token_request.py +++ b/kubernetes/client/models/v1_token_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TokenRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1TokenRequest(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1TokenRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1TokenRequest. # noqa: E501 :type: V1TokenRequestSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1TokenRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TokenRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_token_request_spec.py b/kubernetes/client/models/v1_token_request_spec.py index c059333e45..f57710c155 100644 --- a/kubernetes/client/models/v1_token_request_spec.py +++ b/kubernetes/client/models/v1_token_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TokenRequestSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1TokenRequestSpec(object): 'expiration_seconds': 'expirationSeconds' } - def __init__(self, audiences=None, bound_object_ref=None, expiration_seconds=None): # noqa: E501 + def __init__(self, audiences=None, bound_object_ref=None, expiration_seconds=None, local_vars_configuration=None): # noqa: E501 """V1TokenRequestSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._audiences = None self._bound_object_ref = None @@ -76,7 +81,7 @@ def audiences(self, audiences): :param audiences: The audiences of this V1TokenRequestSpec. # noqa: E501 :type: list[str] """ - if audiences is None: + if self.local_vars_configuration.client_side_validation and audiences is None: # noqa: E501 raise ValueError("Invalid value for `audiences`, must not be `None`") # noqa: E501 self._audiences = audiences @@ -162,8 +167,11 @@ def __eq__(self, other): if not isinstance(other, V1TokenRequestSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TokenRequestSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_token_request_status.py b/kubernetes/client/models/v1_token_request_status.py index a7c86cfa5b..1c317ea0b7 100644 --- a/kubernetes/client/models/v1_token_request_status.py +++ b/kubernetes/client/models/v1_token_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TokenRequestStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1TokenRequestStatus(object): 'token': 'token' } - def __init__(self, expiration_timestamp=None, token=None): # noqa: E501 + def __init__(self, expiration_timestamp=None, token=None, local_vars_configuration=None): # noqa: E501 """V1TokenRequestStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._expiration_timestamp = None self._token = None @@ -70,7 +75,7 @@ def expiration_timestamp(self, expiration_timestamp): :param expiration_timestamp: The expiration_timestamp of this V1TokenRequestStatus. # noqa: E501 :type: datetime """ - if expiration_timestamp is None: + if self.local_vars_configuration.client_side_validation and expiration_timestamp is None: # noqa: E501 raise ValueError("Invalid value for `expiration_timestamp`, must not be `None`") # noqa: E501 self._expiration_timestamp = expiration_timestamp @@ -95,7 +100,7 @@ def token(self, token): :param token: The token of this V1TokenRequestStatus. # noqa: E501 :type: str """ - if token is None: + if self.local_vars_configuration.client_side_validation and token is None: # noqa: E501 raise ValueError("Invalid value for `token`, must not be `None`") # noqa: E501 self._token = token @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, V1TokenRequestStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TokenRequestStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_token_review.py b/kubernetes/client/models/v1_token_review.py index 042b2d78a9..7042b004f1 100644 --- a/kubernetes/client/models/v1_token_review.py +++ b/kubernetes/client/models/v1_token_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TokenReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1TokenReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1TokenReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1TokenReview. # noqa: E501 :type: V1TokenReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1TokenReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TokenReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_token_review_spec.py b/kubernetes/client/models/v1_token_review_spec.py index bc5296be57..63783aa18e 100644 --- a/kubernetes/client/models/v1_token_review_spec.py +++ b/kubernetes/client/models/v1_token_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TokenReviewSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1TokenReviewSpec(object): 'token': 'token' } - def __init__(self, audiences=None, token=None): # noqa: E501 + def __init__(self, audiences=None, token=None, local_vars_configuration=None): # noqa: E501 """V1TokenReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._audiences = None self._token = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1TokenReviewSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TokenReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_token_review_status.py b/kubernetes/client/models/v1_token_review_status.py index d3ec89c038..f442f6a227 100644 --- a/kubernetes/client/models/v1_token_review_status.py +++ b/kubernetes/client/models/v1_token_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TokenReviewStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1TokenReviewStatus(object): 'user': 'user' } - def __init__(self, audiences=None, authenticated=None, error=None, user=None): # noqa: E501 + def __init__(self, audiences=None, authenticated=None, error=None, user=None, local_vars_configuration=None): # noqa: E501 """V1TokenReviewStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._audiences = None self._authenticated = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1TokenReviewStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TokenReviewStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_toleration.py b/kubernetes/client/models/v1_toleration.py index c209a32033..f25aa57e41 100644 --- a/kubernetes/client/models/v1_toleration.py +++ b/kubernetes/client/models/v1_toleration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Toleration(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1Toleration(object): 'value': 'value' } - def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None): # noqa: E501 + def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None, local_vars_configuration=None): # noqa: E501 """V1Toleration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._effect = None self._key = None @@ -219,8 +224,11 @@ def __eq__(self, other): if not isinstance(other, V1Toleration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Toleration): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_topology_selector_label_requirement.py b/kubernetes/client/models/v1_topology_selector_label_requirement.py index bc6ebe7191..65381c4425 100644 --- a/kubernetes/client/models/v1_topology_selector_label_requirement.py +++ b/kubernetes/client/models/v1_topology_selector_label_requirement.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TopologySelectorLabelRequirement(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1TopologySelectorLabelRequirement(object): 'values': 'values' } - def __init__(self, key=None, values=None): # noqa: E501 + def __init__(self, key=None, values=None, local_vars_configuration=None): # noqa: E501 """V1TopologySelectorLabelRequirement - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._key = None self._values = None @@ -70,7 +75,7 @@ def key(self, key): :param key: The key of this V1TopologySelectorLabelRequirement. # noqa: E501 :type: str """ - if key is None: + if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501 raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 self._key = key @@ -95,7 +100,7 @@ def values(self, values): :param values: The values of this V1TopologySelectorLabelRequirement. # noqa: E501 :type: list[str] """ - if values is None: + if self.local_vars_configuration.client_side_validation and values is None: # noqa: E501 raise ValueError("Invalid value for `values`, must not be `None`") # noqa: E501 self._values = values @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, V1TopologySelectorLabelRequirement): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TopologySelectorLabelRequirement): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_topology_selector_term.py b/kubernetes/client/models/v1_topology_selector_term.py index 0dbabb1f2f..377d6a54da 100644 --- a/kubernetes/client/models/v1_topology_selector_term.py +++ b/kubernetes/client/models/v1_topology_selector_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TopologySelectorTerm(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1TopologySelectorTerm(object): 'match_label_expressions': 'matchLabelExpressions' } - def __init__(self, match_label_expressions=None): # noqa: E501 + def __init__(self, match_label_expressions=None, local_vars_configuration=None): # noqa: E501 """V1TopologySelectorTerm - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._match_label_expressions = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1TopologySelectorTerm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TopologySelectorTerm): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_topology_spread_constraint.py b/kubernetes/client/models/v1_topology_spread_constraint.py index 283c916b52..e8dfafdcd6 100644 --- a/kubernetes/client/models/v1_topology_spread_constraint.py +++ b/kubernetes/client/models/v1_topology_spread_constraint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TopologySpreadConstraint(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1TopologySpreadConstraint(object): 'when_unsatisfiable': 'whenUnsatisfiable' } - def __init__(self, label_selector=None, max_skew=None, topology_key=None, when_unsatisfiable=None): # noqa: E501 + def __init__(self, label_selector=None, max_skew=None, topology_key=None, when_unsatisfiable=None, local_vars_configuration=None): # noqa: E501 """V1TopologySpreadConstraint - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._label_selector = None self._max_skew = None @@ -100,7 +105,7 @@ def max_skew(self, max_skew): :param max_skew: The max_skew of this V1TopologySpreadConstraint. # noqa: E501 :type: int """ - if max_skew is None: + if self.local_vars_configuration.client_side_validation and max_skew is None: # noqa: E501 raise ValueError("Invalid value for `max_skew`, must not be `None`") # noqa: E501 self._max_skew = max_skew @@ -125,7 +130,7 @@ def topology_key(self, topology_key): :param topology_key: The topology_key of this V1TopologySpreadConstraint. # noqa: E501 :type: str """ - if topology_key is None: + if self.local_vars_configuration.client_side_validation and topology_key is None: # noqa: E501 raise ValueError("Invalid value for `topology_key`, must not be `None`") # noqa: E501 self._topology_key = topology_key @@ -150,7 +155,7 @@ def when_unsatisfiable(self, when_unsatisfiable): :param when_unsatisfiable: The when_unsatisfiable of this V1TopologySpreadConstraint. # noqa: E501 :type: str """ - if when_unsatisfiable is None: + if self.local_vars_configuration.client_side_validation and when_unsatisfiable is None: # noqa: E501 raise ValueError("Invalid value for `when_unsatisfiable`, must not be `None`") # noqa: E501 self._when_unsatisfiable = when_unsatisfiable @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V1TopologySpreadConstraint): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TopologySpreadConstraint): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_typed_local_object_reference.py b/kubernetes/client/models/v1_typed_local_object_reference.py index 9d985cf7c6..a5543d452c 100644 --- a/kubernetes/client/models/v1_typed_local_object_reference.py +++ b/kubernetes/client/models/v1_typed_local_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1TypedLocalObjectReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1TypedLocalObjectReference(object): 'name': 'name' } - def __init__(self, api_group=None, kind=None, name=None): # noqa: E501 + def __init__(self, api_group=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 """V1TypedLocalObjectReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_group = None self._kind = None @@ -98,7 +103,7 @@ def kind(self, kind): :param kind: The kind of this V1TypedLocalObjectReference. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -123,7 +128,7 @@ def name(self, name): :param name: The name of this V1TypedLocalObjectReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1TypedLocalObjectReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1TypedLocalObjectReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_user_info.py b/kubernetes/client/models/v1_user_info.py index 04c2fc00fa..dc27bd228b 100644 --- a/kubernetes/client/models/v1_user_info.py +++ b/kubernetes/client/models/v1_user_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1UserInfo(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1UserInfo(object): 'username': 'username' } - def __init__(self, extra=None, groups=None, uid=None, username=None): # noqa: E501 + def __init__(self, extra=None, groups=None, uid=None, username=None, local_vars_configuration=None): # noqa: E501 """V1UserInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._extra = None self._groups = None @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1UserInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1UserInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_validating_webhook.py b/kubernetes/client/models/v1_validating_webhook.py index 228169e5e3..c864c9292f 100644 --- a/kubernetes/client/models/v1_validating_webhook.py +++ b/kubernetes/client/models/v1_validating_webhook.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ValidatingWebhook(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1ValidatingWebhook(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, rules=None, side_effects=None, timeout_seconds=None): # noqa: E501 + def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, rules=None, side_effects=None, timeout_seconds=None, local_vars_configuration=None): # noqa: E501 """V1ValidatingWebhook - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._admission_review_versions = None self._client_config = None @@ -108,7 +113,7 @@ def admission_review_versions(self, admission_review_versions): :param admission_review_versions: The admission_review_versions of this V1ValidatingWebhook. # noqa: E501 :type: list[str] """ - if admission_review_versions is None: + if self.local_vars_configuration.client_side_validation and admission_review_versions is None: # noqa: E501 raise ValueError("Invalid value for `admission_review_versions`, must not be `None`") # noqa: E501 self._admission_review_versions = admission_review_versions @@ -131,7 +136,7 @@ def client_config(self, client_config): :param client_config: The client_config of this V1ValidatingWebhook. # noqa: E501 :type: AdmissionregistrationV1WebhookClientConfig """ - if client_config is None: + if self.local_vars_configuration.client_side_validation and client_config is None: # noqa: E501 raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501 self._client_config = client_config @@ -202,7 +207,7 @@ def name(self, name): :param name: The name of this V1ValidatingWebhook. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -292,7 +297,7 @@ def side_effects(self, side_effects): :param side_effects: The side_effects of this V1ValidatingWebhook. # noqa: E501 :type: str """ - if side_effects is None: + if self.local_vars_configuration.client_side_validation and side_effects is None: # noqa: E501 raise ValueError("Invalid value for `side_effects`, must not be `None`") # noqa: E501 self._side_effects = side_effects @@ -357,8 +362,11 @@ def __eq__(self, other): if not isinstance(other, V1ValidatingWebhook): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ValidatingWebhook): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_validating_webhook_configuration.py b/kubernetes/client/models/v1_validating_webhook_configuration.py index fb754ff909..db1eea2301 100644 --- a/kubernetes/client/models/v1_validating_webhook_configuration.py +++ b/kubernetes/client/models/v1_validating_webhook_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ValidatingWebhookConfiguration(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ValidatingWebhookConfiguration(object): 'webhooks': 'webhooks' } - def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None, local_vars_configuration=None): # noqa: E501 """V1ValidatingWebhookConfiguration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1ValidatingWebhookConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ValidatingWebhookConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_validating_webhook_configuration_list.py b/kubernetes/client/models/v1_validating_webhook_configuration_list.py index 2c9e6e6244..554acdbc47 100644 --- a/kubernetes/client/models/v1_validating_webhook_configuration_list.py +++ b/kubernetes/client/models/v1_validating_webhook_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1ValidatingWebhookConfigurationList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1ValidatingWebhookConfigurationList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1ValidatingWebhookConfigurationList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1ValidatingWebhookConfigurationList. # noqa: E501 :type: list[V1ValidatingWebhookConfiguration] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1ValidatingWebhookConfigurationList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1ValidatingWebhookConfigurationList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume.py b/kubernetes/client/models/v1_volume.py index 4dc56b36af..9db0432d83 100644 --- a/kubernetes/client/models/v1_volume.py +++ b/kubernetes/client/models/v1_volume.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1Volume(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -94,8 +96,11 @@ class V1Volume(object): 'vsphere_volume': 'vsphereVolume' } - def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=None, cephfs=None, cinder=None, config_map=None, csi=None, downward_api=None, empty_dir=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, git_repo=None, glusterfs=None, host_path=None, iscsi=None, name=None, nfs=None, persistent_volume_claim=None, photon_persistent_disk=None, portworx_volume=None, projected=None, quobyte=None, rbd=None, scale_io=None, secret=None, storageos=None, vsphere_volume=None): # noqa: E501 + def __init__(self, aws_elastic_block_store=None, azure_disk=None, azure_file=None, cephfs=None, cinder=None, config_map=None, csi=None, downward_api=None, empty_dir=None, fc=None, flex_volume=None, flocker=None, gce_persistent_disk=None, git_repo=None, glusterfs=None, host_path=None, iscsi=None, name=None, nfs=None, persistent_volume_claim=None, photon_persistent_disk=None, portworx_volume=None, projected=None, quobyte=None, rbd=None, scale_io=None, secret=None, storageos=None, vsphere_volume=None, local_vars_configuration=None): # noqa: E501 """V1Volume - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._aws_elastic_block_store = None self._azure_disk = None @@ -563,7 +568,7 @@ def name(self, name): :param name: The name of this V1Volume. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -836,8 +841,11 @@ def __eq__(self, other): if not isinstance(other, V1Volume): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1Volume): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_attachment.py b/kubernetes/client/models/v1_volume_attachment.py index 1430966f2d..3af50127bc 100644 --- a/kubernetes/client/models/v1_volume_attachment.py +++ b/kubernetes/client/models/v1_volume_attachment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeAttachment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1VolumeAttachment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1VolumeAttachment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1VolumeAttachment. # noqa: E501 :type: V1VolumeAttachmentSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeAttachment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeAttachment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_attachment_list.py b/kubernetes/client/models/v1_volume_attachment_list.py index 3172137938..5fa9d9c389 100644 --- a/kubernetes/client/models/v1_volume_attachment_list.py +++ b/kubernetes/client/models/v1_volume_attachment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeAttachmentList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1VolumeAttachmentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1VolumeAttachmentList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1VolumeAttachmentList. # noqa: E501 :type: list[V1VolumeAttachment] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeAttachmentList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeAttachmentList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_attachment_source.py b/kubernetes/client/models/v1_volume_attachment_source.py index cb05b56d41..d3357eb906 100644 --- a/kubernetes/client/models/v1_volume_attachment_source.py +++ b/kubernetes/client/models/v1_volume_attachment_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeAttachmentSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1VolumeAttachmentSource(object): 'persistent_volume_name': 'persistentVolumeName' } - def __init__(self, inline_volume_spec=None, persistent_volume_name=None): # noqa: E501 + def __init__(self, inline_volume_spec=None, persistent_volume_name=None, local_vars_configuration=None): # noqa: E501 """V1VolumeAttachmentSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._inline_volume_spec = None self._persistent_volume_name = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeAttachmentSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeAttachmentSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_attachment_spec.py b/kubernetes/client/models/v1_volume_attachment_spec.py index 2080cbeb61..0d1ec7dea7 100644 --- a/kubernetes/client/models/v1_volume_attachment_spec.py +++ b/kubernetes/client/models/v1_volume_attachment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeAttachmentSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1VolumeAttachmentSpec(object): 'source': 'source' } - def __init__(self, attacher=None, node_name=None, source=None): # noqa: E501 + def __init__(self, attacher=None, node_name=None, source=None, local_vars_configuration=None): # noqa: E501 """V1VolumeAttachmentSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._attacher = None self._node_name = None @@ -74,7 +79,7 @@ def attacher(self, attacher): :param attacher: The attacher of this V1VolumeAttachmentSpec. # noqa: E501 :type: str """ - if attacher is None: + if self.local_vars_configuration.client_side_validation and attacher is None: # noqa: E501 raise ValueError("Invalid value for `attacher`, must not be `None`") # noqa: E501 self._attacher = attacher @@ -99,7 +104,7 @@ def node_name(self, node_name): :param node_name: The node_name of this V1VolumeAttachmentSpec. # noqa: E501 :type: str """ - if node_name is None: + if self.local_vars_configuration.client_side_validation and node_name is None: # noqa: E501 raise ValueError("Invalid value for `node_name`, must not be `None`") # noqa: E501 self._node_name = node_name @@ -122,7 +127,7 @@ def source(self, source): :param source: The source of this V1VolumeAttachmentSpec. # noqa: E501 :type: V1VolumeAttachmentSource """ - if source is None: + if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 self._source = source @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeAttachmentSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeAttachmentSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_attachment_status.py b/kubernetes/client/models/v1_volume_attachment_status.py index 59a7d5a8bf..ad56788aeb 100644 --- a/kubernetes/client/models/v1_volume_attachment_status.py +++ b/kubernetes/client/models/v1_volume_attachment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeAttachmentStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1VolumeAttachmentStatus(object): 'detach_error': 'detachError' } - def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None): # noqa: E501 + def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None, local_vars_configuration=None): # noqa: E501 """V1VolumeAttachmentStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._attach_error = None self._attached = None @@ -102,7 +107,7 @@ def attached(self, attached): :param attached: The attached of this V1VolumeAttachmentStatus. # noqa: E501 :type: bool """ - if attached is None: + if self.local_vars_configuration.client_side_validation and attached is None: # noqa: E501 raise ValueError("Invalid value for `attached`, must not be `None`") # noqa: E501 self._attached = attached @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeAttachmentStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeAttachmentStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_device.py b/kubernetes/client/models/v1_volume_device.py index 76ba8c1eb1..e742ae5375 100644 --- a/kubernetes/client/models/v1_volume_device.py +++ b/kubernetes/client/models/v1_volume_device.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeDevice(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1VolumeDevice(object): 'name': 'name' } - def __init__(self, device_path=None, name=None): # noqa: E501 + def __init__(self, device_path=None, name=None, local_vars_configuration=None): # noqa: E501 """V1VolumeDevice - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._device_path = None self._name = None @@ -70,7 +75,7 @@ def device_path(self, device_path): :param device_path: The device_path of this V1VolumeDevice. # noqa: E501 :type: str """ - if device_path is None: + if self.local_vars_configuration.client_side_validation and device_path is None: # noqa: E501 raise ValueError("Invalid value for `device_path`, must not be `None`") # noqa: E501 self._device_path = device_path @@ -95,7 +100,7 @@ def name(self, name): :param name: The name of this V1VolumeDevice. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -137,8 +142,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeDevice): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeDevice): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_error.py b/kubernetes/client/models/v1_volume_error.py index c2b67c9159..f42013d7e1 100644 --- a/kubernetes/client/models/v1_volume_error.py +++ b/kubernetes/client/models/v1_volume_error.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeError(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1VolumeError(object): 'time': 'time' } - def __init__(self, message=None, time=None): # noqa: E501 + def __init__(self, message=None, time=None, local_vars_configuration=None): # noqa: E501 """V1VolumeError - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._message = None self._time = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeError): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeError): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_mount.py b/kubernetes/client/models/v1_volume_mount.py index 1b59858a02..2e51b7a6fc 100644 --- a/kubernetes/client/models/v1_volume_mount.py +++ b/kubernetes/client/models/v1_volume_mount.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeMount(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1VolumeMount(object): 'sub_path_expr': 'subPathExpr' } - def __init__(self, mount_path=None, mount_propagation=None, name=None, read_only=None, sub_path=None, sub_path_expr=None): # noqa: E501 + def __init__(self, mount_path=None, mount_propagation=None, name=None, read_only=None, sub_path=None, sub_path_expr=None, local_vars_configuration=None): # noqa: E501 """V1VolumeMount - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._mount_path = None self._mount_propagation = None @@ -90,7 +95,7 @@ def mount_path(self, mount_path): :param mount_path: The mount_path of this V1VolumeMount. # noqa: E501 :type: str """ - if mount_path is None: + if self.local_vars_configuration.client_side_validation and mount_path is None: # noqa: E501 raise ValueError("Invalid value for `mount_path`, must not be `None`") # noqa: E501 self._mount_path = mount_path @@ -138,7 +143,7 @@ def name(self, name): :param name: The name of this V1VolumeMount. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeMount): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeMount): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_node_affinity.py b/kubernetes/client/models/v1_volume_node_affinity.py index 4233057579..748b5c9857 100644 --- a/kubernetes/client/models/v1_volume_node_affinity.py +++ b/kubernetes/client/models/v1_volume_node_affinity.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeNodeAffinity(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1VolumeNodeAffinity(object): 'required': 'required' } - def __init__(self, required=None): # noqa: E501 + def __init__(self, required=None, local_vars_configuration=None): # noqa: E501 """V1VolumeNodeAffinity - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._required = None self.discriminator = None @@ -105,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeNodeAffinity): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeNodeAffinity): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_volume_projection.py b/kubernetes/client/models/v1_volume_projection.py index f4b379de15..d9988dabe8 100644 --- a/kubernetes/client/models/v1_volume_projection.py +++ b/kubernetes/client/models/v1_volume_projection.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VolumeProjection(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1VolumeProjection(object): 'service_account_token': 'serviceAccountToken' } - def __init__(self, config_map=None, downward_api=None, secret=None, service_account_token=None): # noqa: E501 + def __init__(self, config_map=None, downward_api=None, secret=None, service_account_token=None, local_vars_configuration=None): # noqa: E501 """V1VolumeProjection - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._config_map = None self._downward_api = None @@ -183,8 +188,11 @@ def __eq__(self, other): if not isinstance(other, V1VolumeProjection): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VolumeProjection): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py index 0e22266deb..2c78cb7da5 100644 --- a/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py +++ b/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1VsphereVirtualDiskVolumeSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1VsphereVirtualDiskVolumeSource(object): 'volume_path': 'volumePath' } - def __init__(self, fs_type=None, storage_policy_id=None, storage_policy_name=None, volume_path=None): # noqa: E501 + def __init__(self, fs_type=None, storage_policy_id=None, storage_policy_name=None, volume_path=None, local_vars_configuration=None): # noqa: E501 """V1VsphereVirtualDiskVolumeSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._fs_type = None self._storage_policy_id = None @@ -150,7 +155,7 @@ def volume_path(self, volume_path): :param volume_path: The volume_path of this V1VsphereVirtualDiskVolumeSource. # noqa: E501 :type: str """ - if volume_path is None: + if self.local_vars_configuration.client_side_validation and volume_path is None: # noqa: E501 raise ValueError("Invalid value for `volume_path`, must not be `None`") # noqa: E501 self._volume_path = volume_path @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V1VsphereVirtualDiskVolumeSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1VsphereVirtualDiskVolumeSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_watch_event.py b/kubernetes/client/models/v1_watch_event.py index bfbd446869..71688badf7 100644 --- a/kubernetes/client/models/v1_watch_event.py +++ b/kubernetes/client/models/v1_watch_event.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1WatchEvent(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1WatchEvent(object): 'type': 'type' } - def __init__(self, object=None, type=None): # noqa: E501 + def __init__(self, object=None, type=None, local_vars_configuration=None): # noqa: E501 """V1WatchEvent - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._object = None self._type = None @@ -70,7 +75,7 @@ def object(self, object): :param object: The object of this V1WatchEvent. # noqa: E501 :type: object """ - if object is None: + if self.local_vars_configuration.client_side_validation and object is None: # noqa: E501 raise ValueError("Invalid value for `object`, must not be `None`") # noqa: E501 self._object = object @@ -93,7 +98,7 @@ def type(self, type): :param type: The type of this V1WatchEvent. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1WatchEvent): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1WatchEvent): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_webhook_conversion.py b/kubernetes/client/models/v1_webhook_conversion.py index db77ff80ba..5b221882d4 100644 --- a/kubernetes/client/models/v1_webhook_conversion.py +++ b/kubernetes/client/models/v1_webhook_conversion.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1WebhookConversion(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1WebhookConversion(object): 'conversion_review_versions': 'conversionReviewVersions' } - def __init__(self, client_config=None, conversion_review_versions=None): # noqa: E501 + def __init__(self, client_config=None, conversion_review_versions=None, local_vars_configuration=None): # noqa: E501 """V1WebhookConversion - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._client_config = None self._conversion_review_versions = None @@ -92,7 +97,7 @@ def conversion_review_versions(self, conversion_review_versions): :param conversion_review_versions: The conversion_review_versions of this V1WebhookConversion. # noqa: E501 :type: list[str] """ - if conversion_review_versions is None: + if self.local_vars_configuration.client_side_validation and conversion_review_versions is None: # noqa: E501 raise ValueError("Invalid value for `conversion_review_versions`, must not be `None`") # noqa: E501 self._conversion_review_versions = conversion_review_versions @@ -134,8 +139,11 @@ def __eq__(self, other): if not isinstance(other, V1WebhookConversion): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1WebhookConversion): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_weighted_pod_affinity_term.py b/kubernetes/client/models/v1_weighted_pod_affinity_term.py index cc1be6a716..356c6b3a96 100644 --- a/kubernetes/client/models/v1_weighted_pod_affinity_term.py +++ b/kubernetes/client/models/v1_weighted_pod_affinity_term.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1WeightedPodAffinityTerm(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1WeightedPodAffinityTerm(object): 'weight': 'weight' } - def __init__(self, pod_affinity_term=None, weight=None): # noqa: E501 + def __init__(self, pod_affinity_term=None, weight=None, local_vars_configuration=None): # noqa: E501 """V1WeightedPodAffinityTerm - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pod_affinity_term = None self._weight = None @@ -68,7 +73,7 @@ def pod_affinity_term(self, pod_affinity_term): :param pod_affinity_term: The pod_affinity_term of this V1WeightedPodAffinityTerm. # noqa: E501 :type: V1PodAffinityTerm """ - if pod_affinity_term is None: + if self.local_vars_configuration.client_side_validation and pod_affinity_term is None: # noqa: E501 raise ValueError("Invalid value for `pod_affinity_term`, must not be `None`") # noqa: E501 self._pod_affinity_term = pod_affinity_term @@ -93,7 +98,7 @@ def weight(self, weight): :param weight: The weight of this V1WeightedPodAffinityTerm. # noqa: E501 :type: int """ - if weight is None: + if self.local_vars_configuration.client_side_validation and weight is None: # noqa: E501 raise ValueError("Invalid value for `weight`, must not be `None`") # noqa: E501 self._weight = weight @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1WeightedPodAffinityTerm): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1WeightedPodAffinityTerm): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1_windows_security_context_options.py b/kubernetes/client/models/v1_windows_security_context_options.py index ee52b8e3c8..807d0d2d38 100644 --- a/kubernetes/client/models/v1_windows_security_context_options.py +++ b/kubernetes/client/models/v1_windows_security_context_options.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1WindowsSecurityContextOptions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1WindowsSecurityContextOptions(object): 'run_as_user_name': 'runAsUserName' } - def __init__(self, gmsa_credential_spec=None, gmsa_credential_spec_name=None, run_as_user_name=None): # noqa: E501 + def __init__(self, gmsa_credential_spec=None, gmsa_credential_spec_name=None, run_as_user_name=None, local_vars_configuration=None): # noqa: E501 """V1WindowsSecurityContextOptions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._gmsa_credential_spec = None self._gmsa_credential_spec_name = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1WindowsSecurityContextOptions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1WindowsSecurityContextOptions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_aggregation_rule.py b/kubernetes/client/models/v1alpha1_aggregation_rule.py index fb00bdb1bc..bc841ca486 100644 --- a/kubernetes/client/models/v1alpha1_aggregation_rule.py +++ b/kubernetes/client/models/v1alpha1_aggregation_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1AggregationRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1alpha1AggregationRule(object): 'cluster_role_selectors': 'clusterRoleSelectors' } - def __init__(self, cluster_role_selectors=None): # noqa: E501 + def __init__(self, cluster_role_selectors=None, local_vars_configuration=None): # noqa: E501 """V1alpha1AggregationRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._cluster_role_selectors = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1AggregationRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1AggregationRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_audit_sink.py b/kubernetes/client/models/v1alpha1_audit_sink.py index e150fdd8f2..66129e3c9f 100644 --- a/kubernetes/client/models/v1alpha1_audit_sink.py +++ b/kubernetes/client/models/v1alpha1_audit_sink.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1AuditSink(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1AuditSink(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1alpha1AuditSink - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1AuditSink): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1AuditSink): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_audit_sink_list.py b/kubernetes/client/models/v1alpha1_audit_sink_list.py index ce7fc5900d..89743e2130 100644 --- a/kubernetes/client/models/v1alpha1_audit_sink_list.py +++ b/kubernetes/client/models/v1alpha1_audit_sink_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1AuditSinkList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1AuditSinkList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1AuditSinkList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1AuditSinkList. # noqa: E501 :type: list[V1alpha1AuditSink] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1AuditSinkList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1AuditSinkList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_audit_sink_spec.py b/kubernetes/client/models/v1alpha1_audit_sink_spec.py index 77bf7d47d4..e50492b5d8 100644 --- a/kubernetes/client/models/v1alpha1_audit_sink_spec.py +++ b/kubernetes/client/models/v1alpha1_audit_sink_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1AuditSinkSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1alpha1AuditSinkSpec(object): 'webhook': 'webhook' } - def __init__(self, policy=None, webhook=None): # noqa: E501 + def __init__(self, policy=None, webhook=None, local_vars_configuration=None): # noqa: E501 """V1alpha1AuditSinkSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._policy = None self._webhook = None @@ -68,7 +73,7 @@ def policy(self, policy): :param policy: The policy of this V1alpha1AuditSinkSpec. # noqa: E501 :type: V1alpha1Policy """ - if policy is None: + if self.local_vars_configuration.client_side_validation and policy is None: # noqa: E501 raise ValueError("Invalid value for `policy`, must not be `None`") # noqa: E501 self._policy = policy @@ -91,7 +96,7 @@ def webhook(self, webhook): :param webhook: The webhook of this V1alpha1AuditSinkSpec. # noqa: E501 :type: V1alpha1Webhook """ - if webhook is None: + if self.local_vars_configuration.client_side_validation and webhook is None: # noqa: E501 raise ValueError("Invalid value for `webhook`, must not be `None`") # noqa: E501 self._webhook = webhook @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1AuditSinkSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1AuditSinkSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_cluster_role.py b/kubernetes/client/models/v1alpha1_cluster_role.py index 519c2c48d8..b0f7d35854 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role.py +++ b/kubernetes/client/models/v1alpha1_cluster_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1ClusterRole(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1alpha1ClusterRole(object): 'rules': 'rules' } - def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, local_vars_configuration=None): # noqa: E501 """V1alpha1ClusterRole - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._aggregation_rule = None self._api_version = None @@ -215,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1ClusterRole): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1ClusterRole): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_cluster_role_binding.py b/kubernetes/client/models/v1alpha1_cluster_role_binding.py index e1242adfdd..00a85f93c2 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role_binding.py +++ b/kubernetes/client/models/v1alpha1_cluster_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1ClusterRoleBinding(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1alpha1ClusterRoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, local_vars_configuration=None): # noqa: E501 """V1alpha1ClusterRoleBinding - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def role_ref(self, role_ref): :param role_ref: The role_ref of this V1alpha1ClusterRoleBinding. # noqa: E501 :type: V1alpha1RoleRef """ - if role_ref is None: + if self.local_vars_configuration.client_side_validation and role_ref is None: # noqa: E501 raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @@ -216,8 +221,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1ClusterRoleBinding): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1ClusterRoleBinding): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py b/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py index 46b1c5647a..461f81fc66 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py +++ b/kubernetes/client/models/v1alpha1_cluster_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1ClusterRoleBindingList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1ClusterRoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1ClusterRoleBindingList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1ClusterRoleBindingList. # noqa: E501 :type: list[V1alpha1ClusterRoleBinding] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1ClusterRoleBindingList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1ClusterRoleBindingList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_cluster_role_list.py b/kubernetes/client/models/v1alpha1_cluster_role_list.py index d866f51f5b..2cf9e45cc9 100644 --- a/kubernetes/client/models/v1alpha1_cluster_role_list.py +++ b/kubernetes/client/models/v1alpha1_cluster_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1ClusterRoleList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1ClusterRoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1ClusterRoleList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1ClusterRoleList. # noqa: E501 :type: list[V1alpha1ClusterRole] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1ClusterRoleList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1ClusterRoleList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_endpoint.py b/kubernetes/client/models/v1alpha1_endpoint.py index 846e4b5c2c..81522af6df 100644 --- a/kubernetes/client/models/v1alpha1_endpoint.py +++ b/kubernetes/client/models/v1alpha1_endpoint.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1Endpoint(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1alpha1Endpoint(object): 'topology': 'topology' } - def __init__(self, addresses=None, conditions=None, hostname=None, target_ref=None, topology=None): # noqa: E501 + def __init__(self, addresses=None, conditions=None, hostname=None, target_ref=None, topology=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Endpoint - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._addresses = None self._conditions = None @@ -86,7 +91,7 @@ def addresses(self, addresses): :param addresses: The addresses of this V1alpha1Endpoint. # noqa: E501 :type: list[str] """ - if addresses is None: + if self.local_vars_configuration.client_side_validation and addresses is None: # noqa: E501 raise ValueError("Invalid value for `addresses`, must not be `None`") # noqa: E501 self._addresses = addresses @@ -216,8 +221,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1Endpoint): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1Endpoint): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_endpoint_conditions.py b/kubernetes/client/models/v1alpha1_endpoint_conditions.py index 3904d6d5d3..6b91620b7e 100644 --- a/kubernetes/client/models/v1alpha1_endpoint_conditions.py +++ b/kubernetes/client/models/v1alpha1_endpoint_conditions.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1EndpointConditions(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1alpha1EndpointConditions(object): 'ready': 'ready' } - def __init__(self, ready=None): # noqa: E501 + def __init__(self, ready=None, local_vars_configuration=None): # noqa: E501 """V1alpha1EndpointConditions - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ready = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1EndpointConditions): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1EndpointConditions): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_endpoint_port.py b/kubernetes/client/models/v1alpha1_endpoint_port.py index 27950bdb47..9b1ec0b820 100644 --- a/kubernetes/client/models/v1alpha1_endpoint_port.py +++ b/kubernetes/client/models/v1alpha1_endpoint_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1EndpointPort(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1alpha1EndpointPort(object): 'protocol': 'protocol' } - def __init__(self, name=None, port=None, protocol=None): # noqa: E501 + def __init__(self, name=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501 """V1alpha1EndpointPort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._port = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1EndpointPort): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1EndpointPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_endpoint_slice.py b/kubernetes/client/models/v1alpha1_endpoint_slice.py index 7f3c236b92..6d8e9f7029 100644 --- a/kubernetes/client/models/v1alpha1_endpoint_slice.py +++ b/kubernetes/client/models/v1alpha1_endpoint_slice.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1EndpointSlice(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1alpha1EndpointSlice(object): 'ports': 'ports' } - def __init__(self, address_type=None, api_version=None, endpoints=None, kind=None, metadata=None, ports=None): # noqa: E501 + def __init__(self, address_type=None, api_version=None, endpoints=None, kind=None, metadata=None, ports=None, local_vars_configuration=None): # noqa: E501 """V1alpha1EndpointSlice - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._address_type = None self._api_version = None @@ -137,7 +142,7 @@ def endpoints(self, endpoints): :param endpoints: The endpoints of this V1alpha1EndpointSlice. # noqa: E501 :type: list[V1alpha1Endpoint] """ - if endpoints is None: + if self.local_vars_configuration.client_side_validation and endpoints is None: # noqa: E501 raise ValueError("Invalid value for `endpoints`, must not be `None`") # noqa: E501 self._endpoints = endpoints @@ -246,8 +251,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1EndpointSlice): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1EndpointSlice): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_endpoint_slice_list.py b/kubernetes/client/models/v1alpha1_endpoint_slice_list.py index 40bf450b98..74e3c47996 100644 --- a/kubernetes/client/models/v1alpha1_endpoint_slice_list.py +++ b/kubernetes/client/models/v1alpha1_endpoint_slice_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1EndpointSliceList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1EndpointSliceList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1EndpointSliceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1EndpointSliceList. # noqa: E501 :type: list[V1alpha1EndpointSlice] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1EndpointSliceList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1EndpointSliceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_overhead.py b/kubernetes/client/models/v1alpha1_overhead.py index 8728a96dba..a57c5e0286 100644 --- a/kubernetes/client/models/v1alpha1_overhead.py +++ b/kubernetes/client/models/v1alpha1_overhead.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1Overhead(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1alpha1Overhead(object): 'pod_fixed': 'podFixed' } - def __init__(self, pod_fixed=None): # noqa: E501 + def __init__(self, pod_fixed=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Overhead - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pod_fixed = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1Overhead): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1Overhead): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_pod_preset.py b/kubernetes/client/models/v1alpha1_pod_preset.py index 9a84740507..d049181018 100644 --- a/kubernetes/client/models/v1alpha1_pod_preset.py +++ b/kubernetes/client/models/v1alpha1_pod_preset.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1PodPreset(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1PodPreset(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PodPreset - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1PodPreset): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1PodPreset): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_pod_preset_list.py b/kubernetes/client/models/v1alpha1_pod_preset_list.py index d19d0356a3..73bc61e2f2 100644 --- a/kubernetes/client/models/v1alpha1_pod_preset_list.py +++ b/kubernetes/client/models/v1alpha1_pod_preset_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1PodPresetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1PodPresetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PodPresetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1PodPresetList. # noqa: E501 :type: list[V1alpha1PodPreset] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1PodPresetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1PodPresetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_pod_preset_spec.py b/kubernetes/client/models/v1alpha1_pod_preset_spec.py index 7117231f4f..4bd4a95c89 100644 --- a/kubernetes/client/models/v1alpha1_pod_preset_spec.py +++ b/kubernetes/client/models/v1alpha1_pod_preset_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1PodPresetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1alpha1PodPresetSpec(object): 'volumes': 'volumes' } - def __init__(self, env=None, env_from=None, selector=None, volume_mounts=None, volumes=None): # noqa: E501 + def __init__(self, env=None, env_from=None, selector=None, volume_mounts=None, volumes=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PodPresetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._env = None self._env_from = None @@ -217,8 +222,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1PodPresetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1PodPresetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_policy.py b/kubernetes/client/models/v1alpha1_policy.py index 87aceb2e0a..a106902826 100644 --- a/kubernetes/client/models/v1alpha1_policy.py +++ b/kubernetes/client/models/v1alpha1_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1Policy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1alpha1Policy(object): 'stages': 'stages' } - def __init__(self, level=None, stages=None): # noqa: E501 + def __init__(self, level=None, stages=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Policy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._level = None self._stages = None @@ -71,7 +76,7 @@ def level(self, level): :param level: The level of this V1alpha1Policy. # noqa: E501 :type: str """ - if level is None: + if self.local_vars_configuration.client_side_validation and level is None: # noqa: E501 raise ValueError("Invalid value for `level`, must not be `None`") # noqa: E501 self._level = level @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1Policy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1Policy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_policy_rule.py b/kubernetes/client/models/v1alpha1_policy_rule.py index 4c1df4cd0a..08de36ba64 100644 --- a/kubernetes/client/models/v1alpha1_policy_rule.py +++ b/kubernetes/client/models/v1alpha1_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1PolicyRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1alpha1PolicyRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PolicyRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_groups = None self._non_resource_ur_ls = None @@ -178,7 +183,7 @@ def verbs(self, verbs): :param verbs: The verbs of this V1alpha1PolicyRule. # noqa: E501 :type: list[str] """ - if verbs is None: + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs @@ -220,8 +225,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1PolicyRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1PolicyRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_priority_class.py b/kubernetes/client/models/v1alpha1_priority_class.py index 36d5fc6649..41d394093d 100644 --- a/kubernetes/client/models/v1alpha1_priority_class.py +++ b/kubernetes/client/models/v1alpha1_priority_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1PriorityClass(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1alpha1PriorityClass(object): 'value': 'value' } - def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None): # noqa: E501 + def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PriorityClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._description = None @@ -232,7 +237,7 @@ def value(self, value): :param value: The value of this V1alpha1PriorityClass. # noqa: E501 :type: int """ - if value is None: + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value @@ -274,8 +279,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1PriorityClass): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1PriorityClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_priority_class_list.py b/kubernetes/client/models/v1alpha1_priority_class_list.py index 9c895194c4..aab0a511d5 100644 --- a/kubernetes/client/models/v1alpha1_priority_class_list.py +++ b/kubernetes/client/models/v1alpha1_priority_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1PriorityClassList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1PriorityClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1PriorityClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1PriorityClassList. # noqa: E501 :type: list[V1alpha1PriorityClass] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1PriorityClassList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1PriorityClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_role.py b/kubernetes/client/models/v1alpha1_role.py index 1f1947200d..b16c55b9e5 100644 --- a/kubernetes/client/models/v1alpha1_role.py +++ b/kubernetes/client/models/v1alpha1_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1Role(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1Role(object): 'rules': 'rules' } - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, rules=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Role - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1Role): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1Role): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_role_binding.py b/kubernetes/client/models/v1alpha1_role_binding.py index 256ba86f4d..94ce36c346 100644 --- a/kubernetes/client/models/v1alpha1_role_binding.py +++ b/kubernetes/client/models/v1alpha1_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1RoleBinding(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1alpha1RoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, local_vars_configuration=None): # noqa: E501 """V1alpha1RoleBinding - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def role_ref(self, role_ref): :param role_ref: The role_ref of this V1alpha1RoleBinding. # noqa: E501 :type: V1alpha1RoleRef """ - if role_ref is None: + if self.local_vars_configuration.client_side_validation and role_ref is None: # noqa: E501 raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @@ -216,8 +221,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1RoleBinding): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1RoleBinding): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_role_binding_list.py b/kubernetes/client/models/v1alpha1_role_binding_list.py index 385140914f..2770a486b7 100644 --- a/kubernetes/client/models/v1alpha1_role_binding_list.py +++ b/kubernetes/client/models/v1alpha1_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1RoleBindingList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1RoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1RoleBindingList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1RoleBindingList. # noqa: E501 :type: list[V1alpha1RoleBinding] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1RoleBindingList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1RoleBindingList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_role_list.py b/kubernetes/client/models/v1alpha1_role_list.py index 1082674e77..a6a431c02b 100644 --- a/kubernetes/client/models/v1alpha1_role_list.py +++ b/kubernetes/client/models/v1alpha1_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1RoleList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1RoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1RoleList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1RoleList. # noqa: E501 :type: list[V1alpha1Role] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1RoleList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1RoleList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_role_ref.py b/kubernetes/client/models/v1alpha1_role_ref.py index 864017cf32..161ae022dc 100644 --- a/kubernetes/client/models/v1alpha1_role_ref.py +++ b/kubernetes/client/models/v1alpha1_role_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1RoleRef(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1alpha1RoleRef(object): 'name': 'name' } - def __init__(self, api_group=None, kind=None, name=None): # noqa: E501 + def __init__(self, api_group=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 """V1alpha1RoleRef - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_group = None self._kind = None @@ -74,7 +79,7 @@ def api_group(self, api_group): :param api_group: The api_group of this V1alpha1RoleRef. # noqa: E501 :type: str """ - if api_group is None: + if self.local_vars_configuration.client_side_validation and api_group is None: # noqa: E501 raise ValueError("Invalid value for `api_group`, must not be `None`") # noqa: E501 self._api_group = api_group @@ -99,7 +104,7 @@ def kind(self, kind): :param kind: The kind of this V1alpha1RoleRef. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -124,7 +129,7 @@ def name(self, name): :param name: The name of this V1alpha1RoleRef. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -166,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1RoleRef): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1RoleRef): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_runtime_class.py b/kubernetes/client/models/v1alpha1_runtime_class.py index bce5fd980b..3c28846485 100644 --- a/kubernetes/client/models/v1alpha1_runtime_class.py +++ b/kubernetes/client/models/v1alpha1_runtime_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1RuntimeClass(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1RuntimeClass(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1alpha1RuntimeClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -146,7 +151,7 @@ def spec(self, spec): :param spec: The spec of this V1alpha1RuntimeClass. # noqa: E501 :type: V1alpha1RuntimeClassSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1RuntimeClass): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1RuntimeClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_runtime_class_list.py b/kubernetes/client/models/v1alpha1_runtime_class_list.py index 3a4758acd5..da10ef75a8 100644 --- a/kubernetes/client/models/v1alpha1_runtime_class_list.py +++ b/kubernetes/client/models/v1alpha1_runtime_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1RuntimeClassList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1RuntimeClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1RuntimeClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1RuntimeClassList. # noqa: E501 :type: list[V1alpha1RuntimeClass] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1RuntimeClassList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1RuntimeClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_runtime_class_spec.py b/kubernetes/client/models/v1alpha1_runtime_class_spec.py index b3c1fe47f0..550354a66d 100644 --- a/kubernetes/client/models/v1alpha1_runtime_class_spec.py +++ b/kubernetes/client/models/v1alpha1_runtime_class_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1RuntimeClassSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1alpha1RuntimeClassSpec(object): 'scheduling': 'scheduling' } - def __init__(self, overhead=None, runtime_handler=None, scheduling=None): # noqa: E501 + def __init__(self, overhead=None, runtime_handler=None, scheduling=None, local_vars_configuration=None): # noqa: E501 """V1alpha1RuntimeClassSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._overhead = None self._runtime_handler = None @@ -97,7 +102,7 @@ def runtime_handler(self, runtime_handler): :param runtime_handler: The runtime_handler of this V1alpha1RuntimeClassSpec. # noqa: E501 :type: str """ - if runtime_handler is None: + if self.local_vars_configuration.client_side_validation and runtime_handler is None: # noqa: E501 raise ValueError("Invalid value for `runtime_handler`, must not be `None`") # noqa: E501 self._runtime_handler = runtime_handler @@ -160,8 +165,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1RuntimeClassSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1RuntimeClassSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_scheduling.py b/kubernetes/client/models/v1alpha1_scheduling.py index 27f236ff6e..6ce3bcf1e0 100644 --- a/kubernetes/client/models/v1alpha1_scheduling.py +++ b/kubernetes/client/models/v1alpha1_scheduling.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1Scheduling(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1alpha1Scheduling(object): 'tolerations': 'tolerations' } - def __init__(self, node_selector=None, tolerations=None): # noqa: E501 + def __init__(self, node_selector=None, tolerations=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Scheduling - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._node_selector = None self._tolerations = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1Scheduling): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1Scheduling): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_service_reference.py b/kubernetes/client/models/v1alpha1_service_reference.py index 85882306d6..c79a91c55e 100644 --- a/kubernetes/client/models/v1alpha1_service_reference.py +++ b/kubernetes/client/models/v1alpha1_service_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1ServiceReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1ServiceReference(object): 'port': 'port' } - def __init__(self, name=None, namespace=None, path=None, port=None): # noqa: E501 + def __init__(self, name=None, namespace=None, path=None, port=None, local_vars_configuration=None): # noqa: E501 """V1alpha1ServiceReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._namespace = None @@ -80,7 +85,7 @@ def name(self, name): :param name: The name of this V1alpha1ServiceReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -105,7 +110,7 @@ def namespace(self, namespace): :param namespace: The namespace of this V1alpha1ServiceReference. # noqa: E501 :type: str """ - if namespace is None: + if self.local_vars_configuration.client_side_validation and namespace is None: # noqa: E501 raise ValueError("Invalid value for `namespace`, must not be `None`") # noqa: E501 self._namespace = namespace @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1ServiceReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1ServiceReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_subject.py b/kubernetes/client/models/v1alpha1_subject.py index 7e67f3f6ff..3277b7c922 100644 --- a/kubernetes/client/models/v1alpha1_subject.py +++ b/kubernetes/client/models/v1alpha1_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1Subject(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1Subject(object): 'namespace': 'namespace' } - def __init__(self, api_version=None, kind=None, name=None, namespace=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, name=None, namespace=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Subject - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -103,7 +108,7 @@ def kind(self, kind): :param kind: The kind of this V1alpha1Subject. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -128,7 +133,7 @@ def name(self, name): :param name: The name of this V1alpha1Subject. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1Subject): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1Subject): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_volume_attachment.py b/kubernetes/client/models/v1alpha1_volume_attachment.py index c26fadc273..b6fcb5957e 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1VolumeAttachment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1alpha1VolumeAttachment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1alpha1VolumeAttachment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1alpha1VolumeAttachment. # noqa: E501 :type: V1alpha1VolumeAttachmentSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1VolumeAttachment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1VolumeAttachment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_volume_attachment_list.py b/kubernetes/client/models/v1alpha1_volume_attachment_list.py index 80dd2e2955..48724fb75c 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment_list.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1VolumeAttachmentList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1VolumeAttachmentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1alpha1VolumeAttachmentList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1alpha1VolumeAttachmentList. # noqa: E501 :type: list[V1alpha1VolumeAttachment] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1VolumeAttachmentList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1VolumeAttachmentList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_volume_attachment_source.py b/kubernetes/client/models/v1alpha1_volume_attachment_source.py index e7a0c6ec26..6f0ae25d59 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment_source.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1VolumeAttachmentSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1alpha1VolumeAttachmentSource(object): 'persistent_volume_name': 'persistentVolumeName' } - def __init__(self, inline_volume_spec=None, persistent_volume_name=None): # noqa: E501 + def __init__(self, inline_volume_spec=None, persistent_volume_name=None, local_vars_configuration=None): # noqa: E501 """V1alpha1VolumeAttachmentSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._inline_volume_spec = None self._persistent_volume_name = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1VolumeAttachmentSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1VolumeAttachmentSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_volume_attachment_spec.py b/kubernetes/client/models/v1alpha1_volume_attachment_spec.py index ee2d145573..174ff2e506 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment_spec.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1VolumeAttachmentSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1alpha1VolumeAttachmentSpec(object): 'source': 'source' } - def __init__(self, attacher=None, node_name=None, source=None): # noqa: E501 + def __init__(self, attacher=None, node_name=None, source=None, local_vars_configuration=None): # noqa: E501 """V1alpha1VolumeAttachmentSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._attacher = None self._node_name = None @@ -74,7 +79,7 @@ def attacher(self, attacher): :param attacher: The attacher of this V1alpha1VolumeAttachmentSpec. # noqa: E501 :type: str """ - if attacher is None: + if self.local_vars_configuration.client_side_validation and attacher is None: # noqa: E501 raise ValueError("Invalid value for `attacher`, must not be `None`") # noqa: E501 self._attacher = attacher @@ -99,7 +104,7 @@ def node_name(self, node_name): :param node_name: The node_name of this V1alpha1VolumeAttachmentSpec. # noqa: E501 :type: str """ - if node_name is None: + if self.local_vars_configuration.client_side_validation and node_name is None: # noqa: E501 raise ValueError("Invalid value for `node_name`, must not be `None`") # noqa: E501 self._node_name = node_name @@ -122,7 +127,7 @@ def source(self, source): :param source: The source of this V1alpha1VolumeAttachmentSpec. # noqa: E501 :type: V1alpha1VolumeAttachmentSource """ - if source is None: + if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 self._source = source @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1VolumeAttachmentSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1VolumeAttachmentSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_volume_attachment_status.py b/kubernetes/client/models/v1alpha1_volume_attachment_status.py index 2ec83827f3..d042cc65c0 100644 --- a/kubernetes/client/models/v1alpha1_volume_attachment_status.py +++ b/kubernetes/client/models/v1alpha1_volume_attachment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1VolumeAttachmentStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1alpha1VolumeAttachmentStatus(object): 'detach_error': 'detachError' } - def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None): # noqa: E501 + def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None, local_vars_configuration=None): # noqa: E501 """V1alpha1VolumeAttachmentStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._attach_error = None self._attached = None @@ -102,7 +107,7 @@ def attached(self, attached): :param attached: The attached of this V1alpha1VolumeAttachmentStatus. # noqa: E501 :type: bool """ - if attached is None: + if self.local_vars_configuration.client_side_validation and attached is None: # noqa: E501 raise ValueError("Invalid value for `attached`, must not be `None`") # noqa: E501 self._attached = attached @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1VolumeAttachmentStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1VolumeAttachmentStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_volume_error.py b/kubernetes/client/models/v1alpha1_volume_error.py index 945a279850..3ce1adb580 100644 --- a/kubernetes/client/models/v1alpha1_volume_error.py +++ b/kubernetes/client/models/v1alpha1_volume_error.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1VolumeError(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1alpha1VolumeError(object): 'time': 'time' } - def __init__(self, message=None, time=None): # noqa: E501 + def __init__(self, message=None, time=None, local_vars_configuration=None): # noqa: E501 """V1alpha1VolumeError - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._message = None self._time = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1VolumeError): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1VolumeError): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_webhook.py b/kubernetes/client/models/v1alpha1_webhook.py index 3cf3514f4f..64ed161880 100644 --- a/kubernetes/client/models/v1alpha1_webhook.py +++ b/kubernetes/client/models/v1alpha1_webhook.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1Webhook(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1alpha1Webhook(object): 'throttle': 'throttle' } - def __init__(self, client_config=None, throttle=None): # noqa: E501 + def __init__(self, client_config=None, throttle=None, local_vars_configuration=None): # noqa: E501 """V1alpha1Webhook - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._client_config = None self._throttle = None @@ -69,7 +74,7 @@ def client_config(self, client_config): :param client_config: The client_config of this V1alpha1Webhook. # noqa: E501 :type: V1alpha1WebhookClientConfig """ - if client_config is None: + if self.local_vars_configuration.client_side_validation and client_config is None: # noqa: E501 raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501 self._client_config = client_config @@ -132,8 +137,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1Webhook): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1Webhook): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_webhook_client_config.py b/kubernetes/client/models/v1alpha1_webhook_client_config.py index 8ef1b035df..927b372f1f 100644 --- a/kubernetes/client/models/v1alpha1_webhook_client_config.py +++ b/kubernetes/client/models/v1alpha1_webhook_client_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1WebhookClientConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1alpha1WebhookClientConfig(object): 'url': 'url' } - def __init__(self, ca_bundle=None, service=None, url=None): # noqa: E501 + def __init__(self, ca_bundle=None, service=None, url=None, local_vars_configuration=None): # noqa: E501 """V1alpha1WebhookClientConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ca_bundle = None self._service = None @@ -77,7 +82,8 @@ def ca_bundle(self, ca_bundle): :param ca_bundle: The ca_bundle of this V1alpha1WebhookClientConfig. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501 raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @@ -163,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1WebhookClientConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1WebhookClientConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1alpha1_webhook_throttle_config.py b/kubernetes/client/models/v1alpha1_webhook_throttle_config.py index 7d3cdb721a..442ad6c74c 100644 --- a/kubernetes/client/models/v1alpha1_webhook_throttle_config.py +++ b/kubernetes/client/models/v1alpha1_webhook_throttle_config.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1alpha1WebhookThrottleConfig(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1alpha1WebhookThrottleConfig(object): 'qps': 'qps' } - def __init__(self, burst=None, qps=None): # noqa: E501 + def __init__(self, burst=None, qps=None, local_vars_configuration=None): # noqa: E501 """V1alpha1WebhookThrottleConfig - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._burst = None self._qps = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1alpha1WebhookThrottleConfig): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1alpha1WebhookThrottleConfig): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_aggregation_rule.py b/kubernetes/client/models/v1beta1_aggregation_rule.py index 97f6e15fc8..3a75caa471 100644 --- a/kubernetes/client/models/v1beta1_aggregation_rule.py +++ b/kubernetes/client/models/v1beta1_aggregation_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1AggregationRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta1AggregationRule(object): 'cluster_role_selectors': 'clusterRoleSelectors' } - def __init__(self, cluster_role_selectors=None): # noqa: E501 + def __init__(self, cluster_role_selectors=None, local_vars_configuration=None): # noqa: E501 """V1beta1AggregationRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._cluster_role_selectors = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1AggregationRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1AggregationRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_api_service.py b/kubernetes/client/models/v1beta1_api_service.py index a43aa7b655..865a4d23ef 100644 --- a/kubernetes/client/models/v1beta1_api_service.py +++ b/kubernetes/client/models/v1beta1_api_service.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1APIService(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1APIService(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1APIService - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1APIService): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1APIService): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_api_service_condition.py b/kubernetes/client/models/v1beta1_api_service_condition.py index 8996949ae9..92668f6a6b 100644 --- a/kubernetes/client/models/v1beta1_api_service_condition.py +++ b/kubernetes/client/models/v1beta1_api_service_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1APIServiceCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1APIServiceCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1APIServiceCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1beta1APIServiceCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1beta1APIServiceCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1APIServiceCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1APIServiceCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_api_service_list.py b/kubernetes/client/models/v1beta1_api_service_list.py index 4720689128..37c8085870 100644 --- a/kubernetes/client/models/v1beta1_api_service_list.py +++ b/kubernetes/client/models/v1beta1_api_service_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1APIServiceList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1APIServiceList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1APIServiceList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -102,7 +107,7 @@ def items(self, items): :param items: The items of this V1beta1APIServiceList. # noqa: E501 :type: list[V1beta1APIService] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1APIServiceList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1APIServiceList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_api_service_spec.py b/kubernetes/client/models/v1beta1_api_service_spec.py index 581136a060..025d339b28 100644 --- a/kubernetes/client/models/v1beta1_api_service_spec.py +++ b/kubernetes/client/models/v1beta1_api_service_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1APIServiceSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1beta1APIServiceSpec(object): 'version_priority': 'versionPriority' } - def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None): # noqa: E501 + def __init__(self, ca_bundle=None, group=None, group_priority_minimum=None, insecure_skip_tls_verify=None, service=None, version=None, version_priority=None, local_vars_configuration=None): # noqa: E501 """V1beta1APIServiceSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ca_bundle = None self._group = None @@ -94,7 +99,8 @@ def ca_bundle(self, ca_bundle): :param ca_bundle: The ca_bundle of this V1beta1APIServiceSpec. # noqa: E501 :type: str """ - if ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + ca_bundle is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', ca_bundle)): # noqa: E501 raise ValueError(r"Invalid value for `ca_bundle`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._ca_bundle = ca_bundle @@ -142,7 +148,7 @@ def group_priority_minimum(self, group_priority_minimum): :param group_priority_minimum: The group_priority_minimum of this V1beta1APIServiceSpec. # noqa: E501 :type: int """ - if group_priority_minimum is None: + if self.local_vars_configuration.client_side_validation and group_priority_minimum is None: # noqa: E501 raise ValueError("Invalid value for `group_priority_minimum`, must not be `None`") # noqa: E501 self._group_priority_minimum = group_priority_minimum @@ -188,7 +194,7 @@ def service(self, service): :param service: The service of this V1beta1APIServiceSpec. # noqa: E501 :type: ApiregistrationV1beta1ServiceReference """ - if service is None: + if self.local_vars_configuration.client_side_validation and service is None: # noqa: E501 raise ValueError("Invalid value for `service`, must not be `None`") # noqa: E501 self._service = service @@ -236,7 +242,7 @@ def version_priority(self, version_priority): :param version_priority: The version_priority of this V1beta1APIServiceSpec. # noqa: E501 :type: int """ - if version_priority is None: + if self.local_vars_configuration.client_side_validation and version_priority is None: # noqa: E501 raise ValueError("Invalid value for `version_priority`, must not be `None`") # noqa: E501 self._version_priority = version_priority @@ -278,8 +284,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1APIServiceSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1APIServiceSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_api_service_status.py b/kubernetes/client/models/v1beta1_api_service_status.py index e9d773db5e..54e8913e7b 100644 --- a/kubernetes/client/models/v1beta1_api_service_status.py +++ b/kubernetes/client/models/v1beta1_api_service_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1APIServiceStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta1APIServiceStatus(object): 'conditions': 'conditions' } - def __init__(self, conditions=None): # noqa: E501 + def __init__(self, conditions=None, local_vars_configuration=None): # noqa: E501 """V1beta1APIServiceStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._conditions = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1APIServiceStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1APIServiceStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request.py b/kubernetes/client/models/v1beta1_certificate_signing_request.py index b6420b76a0..57942287da 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CertificateSigningRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1CertificateSigningRequest(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1CertificateSigningRequest - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CertificateSigningRequest): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CertificateSigningRequest): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py b/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py index 9822cd6d86..a6c1eb9207 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CertificateSigningRequestCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1CertificateSigningRequestCondition(object): 'type': 'type' } - def __init__(self, last_update_time=None, message=None, reason=None, type=None): # noqa: E501 + def __init__(self, last_update_time=None, message=None, reason=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1CertificateSigningRequestCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_update_time = None self._message = None @@ -150,7 +155,7 @@ def type(self, type): :param type: The type of this V1beta1CertificateSigningRequestCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CertificateSigningRequestCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CertificateSigningRequestCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_list.py b/kubernetes/client/models/v1beta1_certificate_signing_request_list.py index bdc4fdcc1a..fd8fbe6776 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_list.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CertificateSigningRequestList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1CertificateSigningRequestList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1CertificateSigningRequestList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -102,7 +107,7 @@ def items(self, items): :param items: The items of this V1beta1CertificateSigningRequestList. # noqa: E501 :type: list[V1beta1CertificateSigningRequest] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CertificateSigningRequestList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CertificateSigningRequestList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py b/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py index 031e0e67c8..2d38682c7d 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CertificateSigningRequestSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta1CertificateSigningRequestSpec(object): 'username': 'username' } - def __init__(self, extra=None, groups=None, request=None, uid=None, usages=None, username=None): # noqa: E501 + def __init__(self, extra=None, groups=None, request=None, uid=None, usages=None, username=None, local_vars_configuration=None): # noqa: E501 """V1beta1CertificateSigningRequestSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._extra = None self._groups = None @@ -137,9 +142,10 @@ def request(self, request): :param request: The request of this V1beta1CertificateSigningRequestSpec. # noqa: E501 :type: str """ - if request is None: + if self.local_vars_configuration.client_side_validation and request is None: # noqa: E501 raise ValueError("Invalid value for `request`, must not be `None`") # noqa: E501 - if request is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', request): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + request is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', request)): # noqa: E501 raise ValueError(r"Invalid value for `request`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._request = request @@ -250,8 +256,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CertificateSigningRequestSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CertificateSigningRequestSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_status.py b/kubernetes/client/models/v1beta1_certificate_signing_request_status.py index 456e364089..f17dfd8b87 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_status.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CertificateSigningRequestStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1CertificateSigningRequestStatus(object): 'conditions': 'conditions' } - def __init__(self, certificate=None, conditions=None): # noqa: E501 + def __init__(self, certificate=None, conditions=None, local_vars_configuration=None): # noqa: E501 """V1beta1CertificateSigningRequestStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._certificate = None self._conditions = None @@ -72,7 +77,8 @@ def certificate(self, certificate): :param certificate: The certificate of this V1beta1CertificateSigningRequestStatus. # noqa: E501 :type: str """ - if certificate is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', certificate): # noqa: E501 + if (self.local_vars_configuration.client_side_validation and + certificate is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', certificate)): # noqa: E501 raise ValueError(r"Invalid value for `certificate`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 self._certificate = certificate @@ -137,8 +143,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CertificateSigningRequestStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CertificateSigningRequestStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_cluster_role.py b/kubernetes/client/models/v1beta1_cluster_role.py index 0d4561c192..219a839f1d 100644 --- a/kubernetes/client/models/v1beta1_cluster_role.py +++ b/kubernetes/client/models/v1beta1_cluster_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ClusterRole(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1ClusterRole(object): 'rules': 'rules' } - def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + def __init__(self, aggregation_rule=None, api_version=None, kind=None, metadata=None, rules=None, local_vars_configuration=None): # noqa: E501 """V1beta1ClusterRole - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._aggregation_rule = None self._api_version = None @@ -215,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ClusterRole): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ClusterRole): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_cluster_role_binding.py b/kubernetes/client/models/v1beta1_cluster_role_binding.py index d1bbb36124..3875464b33 100644 --- a/kubernetes/client/models/v1beta1_cluster_role_binding.py +++ b/kubernetes/client/models/v1beta1_cluster_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ClusterRoleBinding(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1ClusterRoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, local_vars_configuration=None): # noqa: E501 """V1beta1ClusterRoleBinding - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def role_ref(self, role_ref): :param role_ref: The role_ref of this V1beta1ClusterRoleBinding. # noqa: E501 :type: V1beta1RoleRef """ - if role_ref is None: + if self.local_vars_configuration.client_side_validation and role_ref is None: # noqa: E501 raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @@ -216,8 +221,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ClusterRoleBinding): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ClusterRoleBinding): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_cluster_role_binding_list.py b/kubernetes/client/models/v1beta1_cluster_role_binding_list.py index 7df5c30948..013f400a6c 100644 --- a/kubernetes/client/models/v1beta1_cluster_role_binding_list.py +++ b/kubernetes/client/models/v1beta1_cluster_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ClusterRoleBindingList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1ClusterRoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1ClusterRoleBindingList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1ClusterRoleBindingList. # noqa: E501 :type: list[V1beta1ClusterRoleBinding] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ClusterRoleBindingList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ClusterRoleBindingList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_cluster_role_list.py b/kubernetes/client/models/v1beta1_cluster_role_list.py index 910556c8ba..035f0bd05e 100644 --- a/kubernetes/client/models/v1beta1_cluster_role_list.py +++ b/kubernetes/client/models/v1beta1_cluster_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ClusterRoleList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1ClusterRoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1ClusterRoleList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1ClusterRoleList. # noqa: E501 :type: list[V1beta1ClusterRole] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ClusterRoleList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ClusterRoleList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_controller_revision.py b/kubernetes/client/models/v1beta1_controller_revision.py index 9bde682c71..a98676d0a3 100644 --- a/kubernetes/client/models/v1beta1_controller_revision.py +++ b/kubernetes/client/models/v1beta1_controller_revision.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ControllerRevision(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1ControllerRevision(object): 'revision': 'revision' } - def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None): # noqa: E501 + def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None, local_vars_configuration=None): # noqa: E501 """V1beta1ControllerRevision - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._data = None @@ -176,7 +181,7 @@ def revision(self, revision): :param revision: The revision of this V1beta1ControllerRevision. # noqa: E501 :type: int """ - if revision is None: + if self.local_vars_configuration.client_side_validation and revision is None: # noqa: E501 raise ValueError("Invalid value for `revision`, must not be `None`") # noqa: E501 self._revision = revision @@ -218,8 +223,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ControllerRevision): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ControllerRevision): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_controller_revision_list.py b/kubernetes/client/models/v1beta1_controller_revision_list.py index a307233f18..d665cf450e 100644 --- a/kubernetes/client/models/v1beta1_controller_revision_list.py +++ b/kubernetes/client/models/v1beta1_controller_revision_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ControllerRevisionList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1ControllerRevisionList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1ControllerRevisionList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1ControllerRevisionList. # noqa: E501 :type: list[V1beta1ControllerRevision] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ControllerRevisionList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ControllerRevisionList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_cron_job.py b/kubernetes/client/models/v1beta1_cron_job.py index 08a95a5c42..64c523219b 100644 --- a/kubernetes/client/models/v1beta1_cron_job.py +++ b/kubernetes/client/models/v1beta1_cron_job.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CronJob(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1CronJob(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1CronJob - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CronJob): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CronJob): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_cron_job_list.py b/kubernetes/client/models/v1beta1_cron_job_list.py index f1e0cd0ecf..8d7ec0929b 100644 --- a/kubernetes/client/models/v1beta1_cron_job_list.py +++ b/kubernetes/client/models/v1beta1_cron_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CronJobList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1CronJobList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1CronJobList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1CronJobList. # noqa: E501 :type: list[V1beta1CronJob] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CronJobList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CronJobList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_cron_job_spec.py b/kubernetes/client/models/v1beta1_cron_job_spec.py index 8a7a621196..fb298548d0 100644 --- a/kubernetes/client/models/v1beta1_cron_job_spec.py +++ b/kubernetes/client/models/v1beta1_cron_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CronJobSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1beta1CronJobSpec(object): 'suspend': 'suspend' } - def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None): # noqa: E501 + def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None, local_vars_configuration=None): # noqa: E501 """V1beta1CronJobSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._concurrency_policy = None self._failed_jobs_history_limit = None @@ -139,7 +144,7 @@ def job_template(self, job_template): :param job_template: The job_template of this V1beta1CronJobSpec. # noqa: E501 :type: V1beta1JobTemplateSpec """ - if job_template is None: + if self.local_vars_configuration.client_side_validation and job_template is None: # noqa: E501 raise ValueError("Invalid value for `job_template`, must not be `None`") # noqa: E501 self._job_template = job_template @@ -164,7 +169,7 @@ def schedule(self, schedule): :param schedule: The schedule of this V1beta1CronJobSpec. # noqa: E501 :type: str """ - if schedule is None: + if self.local_vars_configuration.client_side_validation and schedule is None: # noqa: E501 raise ValueError("Invalid value for `schedule`, must not be `None`") # noqa: E501 self._schedule = schedule @@ -275,8 +280,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CronJobSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CronJobSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_cron_job_status.py b/kubernetes/client/models/v1beta1_cron_job_status.py index e680461f7d..600ff43130 100644 --- a/kubernetes/client/models/v1beta1_cron_job_status.py +++ b/kubernetes/client/models/v1beta1_cron_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CronJobStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1CronJobStatus(object): 'last_schedule_time': 'lastScheduleTime' } - def __init__(self, active=None, last_schedule_time=None): # noqa: E501 + def __init__(self, active=None, last_schedule_time=None, local_vars_configuration=None): # noqa: E501 """V1beta1CronJobStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._active = None self._last_schedule_time = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CronJobStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CronJobStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_csi_driver.py b/kubernetes/client/models/v1beta1_csi_driver.py index 668bd8d492..06091abb8c 100644 --- a/kubernetes/client/models/v1beta1_csi_driver.py +++ b/kubernetes/client/models/v1beta1_csi_driver.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CSIDriver(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1CSIDriver(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1beta1CSIDriver - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -146,7 +151,7 @@ def spec(self, spec): :param spec: The spec of this V1beta1CSIDriver. # noqa: E501 :type: V1beta1CSIDriverSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CSIDriver): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CSIDriver): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_csi_driver_list.py b/kubernetes/client/models/v1beta1_csi_driver_list.py index 480231ee92..72cc1d65c6 100644 --- a/kubernetes/client/models/v1beta1_csi_driver_list.py +++ b/kubernetes/client/models/v1beta1_csi_driver_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CSIDriverList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1CSIDriverList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1CSIDriverList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1CSIDriverList. # noqa: E501 :type: list[V1beta1CSIDriver] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CSIDriverList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CSIDriverList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_csi_driver_spec.py b/kubernetes/client/models/v1beta1_csi_driver_spec.py index 9600e52e5d..281fb948d3 100644 --- a/kubernetes/client/models/v1beta1_csi_driver_spec.py +++ b/kubernetes/client/models/v1beta1_csi_driver_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CSIDriverSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta1CSIDriverSpec(object): 'volume_lifecycle_modes': 'volumeLifecycleModes' } - def __init__(self, attach_required=None, pod_info_on_mount=None, volume_lifecycle_modes=None): # noqa: E501 + def __init__(self, attach_required=None, pod_info_on_mount=None, volume_lifecycle_modes=None, local_vars_configuration=None): # noqa: E501 """V1beta1CSIDriverSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._attach_required = None self._pod_info_on_mount = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CSIDriverSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CSIDriverSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_csi_node.py b/kubernetes/client/models/v1beta1_csi_node.py index 7f2f1cf313..c2bd60a364 100644 --- a/kubernetes/client/models/v1beta1_csi_node.py +++ b/kubernetes/client/models/v1beta1_csi_node.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CSINode(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1CSINode(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1beta1CSINode - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -146,7 +151,7 @@ def spec(self, spec): :param spec: The spec of this V1beta1CSINode. # noqa: E501 :type: V1beta1CSINodeSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CSINode): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CSINode): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_csi_node_driver.py b/kubernetes/client/models/v1beta1_csi_node_driver.py index 2c9f00e0e4..9456f5a37d 100644 --- a/kubernetes/client/models/v1beta1_csi_node_driver.py +++ b/kubernetes/client/models/v1beta1_csi_node_driver.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CSINodeDriver(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1CSINodeDriver(object): 'topology_keys': 'topologyKeys' } - def __init__(self, allocatable=None, name=None, node_id=None, topology_keys=None): # noqa: E501 + def __init__(self, allocatable=None, name=None, node_id=None, topology_keys=None, local_vars_configuration=None): # noqa: E501 """V1beta1CSINodeDriver - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allocatable = None self._name = None @@ -101,7 +106,7 @@ def name(self, name): :param name: The name of this V1beta1CSINodeDriver. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -126,7 +131,7 @@ def node_id(self, node_id): :param node_id: The node_id of this V1beta1CSINodeDriver. # noqa: E501 :type: str """ - if node_id is None: + if self.local_vars_configuration.client_side_validation and node_id is None: # noqa: E501 raise ValueError("Invalid value for `node_id`, must not be `None`") # noqa: E501 self._node_id = node_id @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CSINodeDriver): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CSINodeDriver): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_csi_node_list.py b/kubernetes/client/models/v1beta1_csi_node_list.py index 57555f39c6..b06a8108e5 100644 --- a/kubernetes/client/models/v1beta1_csi_node_list.py +++ b/kubernetes/client/models/v1beta1_csi_node_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CSINodeList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1CSINodeList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1CSINodeList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1CSINodeList. # noqa: E501 :type: list[V1beta1CSINode] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CSINodeList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CSINodeList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_csi_node_spec.py b/kubernetes/client/models/v1beta1_csi_node_spec.py index 2e095d4a9a..4c7d030bde 100644 --- a/kubernetes/client/models/v1beta1_csi_node_spec.py +++ b/kubernetes/client/models/v1beta1_csi_node_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CSINodeSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta1CSINodeSpec(object): 'drivers': 'drivers' } - def __init__(self, drivers=None): # noqa: E501 + def __init__(self, drivers=None, local_vars_configuration=None): # noqa: E501 """V1beta1CSINodeSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._drivers = None self.discriminator = None @@ -66,7 +71,7 @@ def drivers(self, drivers): :param drivers: The drivers of this V1beta1CSINodeSpec. # noqa: E501 :type: list[V1beta1CSINodeDriver] """ - if drivers is None: + if self.local_vars_configuration.client_side_validation and drivers is None: # noqa: E501 raise ValueError("Invalid value for `drivers`, must not be `None`") # noqa: E501 self._drivers = drivers @@ -108,8 +113,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CSINodeSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CSINodeSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_column_definition.py b/kubernetes/client/models/v1beta1_custom_resource_column_definition.py index 20c4d67bc0..06e4a0bb7a 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_column_definition.py +++ b/kubernetes/client/models/v1beta1_custom_resource_column_definition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceColumnDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta1CustomResourceColumnDefinition(object): 'type': 'type' } - def __init__(self, json_path=None, description=None, format=None, name=None, priority=None, type=None): # noqa: E501 + def __init__(self, json_path=None, description=None, format=None, name=None, priority=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceColumnDefinition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._json_path = None self._description = None @@ -89,7 +94,7 @@ def json_path(self, json_path): :param json_path: The json_path of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :type: str """ - if json_path is None: + if self.local_vars_configuration.client_side_validation and json_path is None: # noqa: E501 raise ValueError("Invalid value for `json_path`, must not be `None`") # noqa: E501 self._json_path = json_path @@ -160,7 +165,7 @@ def name(self, name): :param name: The name of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -208,7 +213,7 @@ def type(self, type): :param type: The type of this V1beta1CustomResourceColumnDefinition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -250,8 +255,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceColumnDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceColumnDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_conversion.py b/kubernetes/client/models/v1beta1_custom_resource_conversion.py index bb28d04d91..4aeb04adaa 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_conversion.py +++ b/kubernetes/client/models/v1beta1_custom_resource_conversion.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceConversion(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta1CustomResourceConversion(object): 'webhook_client_config': 'webhookClientConfig' } - def __init__(self, conversion_review_versions=None, strategy=None, webhook_client_config=None): # noqa: E501 + def __init__(self, conversion_review_versions=None, strategy=None, webhook_client_config=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceConversion - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._conversion_review_versions = None self._strategy = None @@ -99,7 +104,7 @@ def strategy(self, strategy): :param strategy: The strategy of this V1beta1CustomResourceConversion. # noqa: E501 :type: str """ - if strategy is None: + if self.local_vars_configuration.client_side_validation and strategy is None: # noqa: E501 raise ValueError("Invalid value for `strategy`, must not be `None`") # noqa: E501 self._strategy = strategy @@ -162,8 +167,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceConversion): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceConversion): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition.py b/kubernetes/client/models/v1beta1_custom_resource_definition.py index ec958ce5a8..19cd71b86a 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceDefinition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1CustomResourceDefinition(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceDefinition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1beta1CustomResourceDefinition. # noqa: E501 :type: V1beta1CustomResourceDefinitionSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceDefinition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceDefinition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_condition.py b/kubernetes/client/models/v1beta1_custom_resource_definition_condition.py index a39f9a2b00..1fa3f26e3f 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_condition.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceDefinitionCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1CustomResourceDefinitionCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceDefinitionCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1beta1CustomResourceDefinitionCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceDefinitionCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceDefinitionCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_list.py b/kubernetes/client/models/v1beta1_custom_resource_definition_list.py index 168da10ae0..42d2382627 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_list.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceDefinitionList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1CustomResourceDefinitionList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceDefinitionList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1CustomResourceDefinitionList. # noqa: E501 :type: list[V1beta1CustomResourceDefinition] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceDefinitionList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceDefinitionList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_names.py b/kubernetes/client/models/v1beta1_custom_resource_definition_names.py index 33ef3fa37b..9a9ef392b4 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_names.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_names.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceDefinitionNames(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta1CustomResourceDefinitionNames(object): 'singular': 'singular' } - def __init__(self, categories=None, kind=None, list_kind=None, plural=None, short_names=None, singular=None): # noqa: E501 + def __init__(self, categories=None, kind=None, list_kind=None, plural=None, short_names=None, singular=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceDefinitionNames - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._categories = None self._kind = None @@ -113,7 +118,7 @@ def kind(self, kind): :param kind: The kind of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -161,7 +166,7 @@ def plural(self, plural): :param plural: The plural of this V1beta1CustomResourceDefinitionNames. # noqa: E501 :type: str """ - if plural is None: + if self.local_vars_configuration.client_side_validation and plural is None: # noqa: E501 raise ValueError("Invalid value for `plural`, must not be `None`") # noqa: E501 self._plural = plural @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceDefinitionNames): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceDefinitionNames): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_spec.py b/kubernetes/client/models/v1beta1_custom_resource_definition_spec.py index 84d9aa74e1..cdd1e82930 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_spec.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceDefinitionSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1beta1CustomResourceDefinitionSpec(object): 'versions': 'versions' } - def __init__(self, additional_printer_columns=None, conversion=None, group=None, names=None, preserve_unknown_fields=None, scope=None, subresources=None, validation=None, version=None, versions=None): # noqa: E501 + def __init__(self, additional_printer_columns=None, conversion=None, group=None, names=None, preserve_unknown_fields=None, scope=None, subresources=None, validation=None, version=None, versions=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceDefinitionSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._additional_printer_columns = None self._conversion = None @@ -153,7 +158,7 @@ def group(self, group): :param group: The group of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: str """ - if group is None: + if self.local_vars_configuration.client_side_validation and group is None: # noqa: E501 raise ValueError("Invalid value for `group`, must not be `None`") # noqa: E501 self._group = group @@ -176,7 +181,7 @@ def names(self, names): :param names: The names of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: V1beta1CustomResourceDefinitionNames """ - if names is None: + if self.local_vars_configuration.client_side_validation and names is None: # noqa: E501 raise ValueError("Invalid value for `names`, must not be `None`") # noqa: E501 self._names = names @@ -224,7 +229,7 @@ def scope(self, scope): :param scope: The scope of this V1beta1CustomResourceDefinitionSpec. # noqa: E501 :type: str """ - if scope is None: + if self.local_vars_configuration.client_side_validation and scope is None: # noqa: E501 raise ValueError("Invalid value for `scope`, must not be `None`") # noqa: E501 self._scope = scope @@ -354,8 +359,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceDefinitionSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceDefinitionSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_status.py b/kubernetes/client/models/v1beta1_custom_resource_definition_status.py index 00da644fed..a51769ec67 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_status.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceDefinitionStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta1CustomResourceDefinitionStatus(object): 'stored_versions': 'storedVersions' } - def __init__(self, accepted_names=None, conditions=None, stored_versions=None): # noqa: E501 + def __init__(self, accepted_names=None, conditions=None, stored_versions=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceDefinitionStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._accepted_names = None self._conditions = None @@ -73,7 +78,7 @@ def accepted_names(self, accepted_names): :param accepted_names: The accepted_names of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 :type: V1beta1CustomResourceDefinitionNames """ - if accepted_names is None: + if self.local_vars_configuration.client_side_validation and accepted_names is None: # noqa: E501 raise ValueError("Invalid value for `accepted_names`, must not be `None`") # noqa: E501 self._accepted_names = accepted_names @@ -121,7 +126,7 @@ def stored_versions(self, stored_versions): :param stored_versions: The stored_versions of this V1beta1CustomResourceDefinitionStatus. # noqa: E501 :type: list[str] """ - if stored_versions is None: + if self.local_vars_configuration.client_side_validation and stored_versions is None: # noqa: E501 raise ValueError("Invalid value for `stored_versions`, must not be `None`") # noqa: E501 self._stored_versions = stored_versions @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceDefinitionStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceDefinitionStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_definition_version.py b/kubernetes/client/models/v1beta1_custom_resource_definition_version.py index 23665d961f..dab4bf8148 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_definition_version.py +++ b/kubernetes/client/models/v1beta1_custom_resource_definition_version.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceDefinitionVersion(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta1CustomResourceDefinitionVersion(object): 'subresources': 'subresources' } - def __init__(self, additional_printer_columns=None, name=None, schema=None, served=None, storage=None, subresources=None): # noqa: E501 + def __init__(self, additional_printer_columns=None, name=None, schema=None, served=None, storage=None, subresources=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceDefinitionVersion - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._additional_printer_columns = None self._name = None @@ -112,7 +117,7 @@ def name(self, name): :param name: The name of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -158,7 +163,7 @@ def served(self, served): :param served: The served of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :type: bool """ - if served is None: + if self.local_vars_configuration.client_side_validation and served is None: # noqa: E501 raise ValueError("Invalid value for `served`, must not be `None`") # noqa: E501 self._served = served @@ -183,7 +188,7 @@ def storage(self, storage): :param storage: The storage of this V1beta1CustomResourceDefinitionVersion. # noqa: E501 :type: bool """ - if storage is None: + if self.local_vars_configuration.client_side_validation and storage is None: # noqa: E501 raise ValueError("Invalid value for `storage`, must not be `None`") # noqa: E501 self._storage = storage @@ -246,8 +251,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceDefinitionVersion): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceDefinitionVersion): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_subresource_scale.py b/kubernetes/client/models/v1beta1_custom_resource_subresource_scale.py index ec8e0684b0..0cf523100d 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_subresource_scale.py +++ b/kubernetes/client/models/v1beta1_custom_resource_subresource_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceSubresourceScale(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta1CustomResourceSubresourceScale(object): 'status_replicas_path': 'statusReplicasPath' } - def __init__(self, label_selector_path=None, spec_replicas_path=None, status_replicas_path=None): # noqa: E501 + def __init__(self, label_selector_path=None, spec_replicas_path=None, status_replicas_path=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceSubresourceScale - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._label_selector_path = None self._spec_replicas_path = None @@ -98,7 +103,7 @@ def spec_replicas_path(self, spec_replicas_path): :param spec_replicas_path: The spec_replicas_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 :type: str """ - if spec_replicas_path is None: + if self.local_vars_configuration.client_side_validation and spec_replicas_path is None: # noqa: E501 raise ValueError("Invalid value for `spec_replicas_path`, must not be `None`") # noqa: E501 self._spec_replicas_path = spec_replicas_path @@ -123,7 +128,7 @@ def status_replicas_path(self, status_replicas_path): :param status_replicas_path: The status_replicas_path of this V1beta1CustomResourceSubresourceScale. # noqa: E501 :type: str """ - if status_replicas_path is None: + if self.local_vars_configuration.client_side_validation and status_replicas_path is None: # noqa: E501 raise ValueError("Invalid value for `status_replicas_path`, must not be `None`") # noqa: E501 self._status_replicas_path = status_replicas_path @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceSubresourceScale): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceSubresourceScale): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_subresources.py b/kubernetes/client/models/v1beta1_custom_resource_subresources.py index d4419a0953..2be81e3281 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_subresources.py +++ b/kubernetes/client/models/v1beta1_custom_resource_subresources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceSubresources(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1CustomResourceSubresources(object): 'status': 'status' } - def __init__(self, scale=None, status=None): # noqa: E501 + def __init__(self, scale=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceSubresources - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._scale = None self._status = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceSubresources): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceSubresources): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_custom_resource_validation.py b/kubernetes/client/models/v1beta1_custom_resource_validation.py index 85b938564c..2b180b0880 100644 --- a/kubernetes/client/models/v1beta1_custom_resource_validation.py +++ b/kubernetes/client/models/v1beta1_custom_resource_validation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1CustomResourceValidation(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta1CustomResourceValidation(object): 'open_apiv3_schema': 'openAPIV3Schema' } - def __init__(self, open_apiv3_schema=None): # noqa: E501 + def __init__(self, open_apiv3_schema=None, local_vars_configuration=None): # noqa: E501 """V1beta1CustomResourceValidation - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._open_apiv3_schema = None self.discriminator = None @@ -105,8 +110,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1CustomResourceValidation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1CustomResourceValidation): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_daemon_set.py b/kubernetes/client/models/v1beta1_daemon_set.py index cadbdcdfb0..f18c6a0b36 100644 --- a/kubernetes/client/models/v1beta1_daemon_set.py +++ b/kubernetes/client/models/v1beta1_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1DaemonSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1DaemonSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1DaemonSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1DaemonSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1DaemonSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_daemon_set_condition.py b/kubernetes/client/models/v1beta1_daemon_set_condition.py index b8b1c78a5f..ca6cbf222b 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_condition.py +++ b/kubernetes/client/models/v1beta1_daemon_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1DaemonSetCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1DaemonSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1DaemonSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1beta1DaemonSetCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1beta1DaemonSetCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1DaemonSetCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1DaemonSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_daemon_set_list.py b/kubernetes/client/models/v1beta1_daemon_set_list.py index ee0a90527c..61c3c93db8 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_list.py +++ b/kubernetes/client/models/v1beta1_daemon_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1DaemonSetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1DaemonSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1DaemonSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1DaemonSetList. # noqa: E501 :type: list[V1beta1DaemonSet] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1DaemonSetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1DaemonSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_daemon_set_spec.py b/kubernetes/client/models/v1beta1_daemon_set_spec.py index b35031c5bb..5f7bda5e4e 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_spec.py +++ b/kubernetes/client/models/v1beta1_daemon_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1DaemonSetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta1DaemonSetSpec(object): 'update_strategy': 'updateStrategy' } - def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, template_generation=None, update_strategy=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, template_generation=None, update_strategy=None, local_vars_configuration=None): # noqa: E501 """V1beta1DaemonSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._revision_history_limit = None @@ -156,7 +161,7 @@ def template(self, template): :param template: The template of this V1beta1DaemonSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -242,8 +247,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1DaemonSetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1DaemonSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_daemon_set_status.py b/kubernetes/client/models/v1beta1_daemon_set_status.py index 015aae5615..923891da23 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_status.py +++ b/kubernetes/client/models/v1beta1_daemon_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1DaemonSetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1beta1DaemonSetStatus(object): 'updated_number_scheduled': 'updatedNumberScheduled' } - def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): # noqa: E501 + def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None, local_vars_configuration=None): # noqa: E501 """V1beta1DaemonSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._collision_count = None self._conditions = None @@ -154,7 +159,7 @@ def current_number_scheduled(self, current_number_scheduled): :param current_number_scheduled: The current_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ - if current_number_scheduled is None: + if self.local_vars_configuration.client_side_validation and current_number_scheduled is None: # noqa: E501 raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") # noqa: E501 self._current_number_scheduled = current_number_scheduled @@ -179,7 +184,7 @@ def desired_number_scheduled(self, desired_number_scheduled): :param desired_number_scheduled: The desired_number_scheduled of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ - if desired_number_scheduled is None: + if self.local_vars_configuration.client_side_validation and desired_number_scheduled is None: # noqa: E501 raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") # noqa: E501 self._desired_number_scheduled = desired_number_scheduled @@ -227,7 +232,7 @@ def number_misscheduled(self, number_misscheduled): :param number_misscheduled: The number_misscheduled of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ - if number_misscheduled is None: + if self.local_vars_configuration.client_side_validation and number_misscheduled is None: # noqa: E501 raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") # noqa: E501 self._number_misscheduled = number_misscheduled @@ -252,7 +257,7 @@ def number_ready(self, number_ready): :param number_ready: The number_ready of this V1beta1DaemonSetStatus. # noqa: E501 :type: int """ - if number_ready is None: + if self.local_vars_configuration.client_side_validation and number_ready is None: # noqa: E501 raise ValueError("Invalid value for `number_ready`, must not be `None`") # noqa: E501 self._number_ready = number_ready @@ -363,8 +368,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1DaemonSetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1DaemonSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py b/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py index eb4fa93e0c..3dadb5ec5f 100644 --- a/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py +++ b/kubernetes/client/models/v1beta1_daemon_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1DaemonSetUpdateStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1DaemonSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1DaemonSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1DaemonSetUpdateStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1DaemonSetUpdateStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_event.py b/kubernetes/client/models/v1beta1_event.py index 429162f622..4bfebf9956 100644 --- a/kubernetes/client/models/v1beta1_event.py +++ b/kubernetes/client/models/v1beta1_event.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1Event(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -70,8 +72,11 @@ class V1beta1Event(object): 'type': 'type' } - def __init__(self, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None): # noqa: E501 + def __init__(self, action=None, api_version=None, deprecated_count=None, deprecated_first_timestamp=None, deprecated_last_timestamp=None, deprecated_source=None, event_time=None, kind=None, metadata=None, note=None, reason=None, regarding=None, related=None, reporting_controller=None, reporting_instance=None, series=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1Event - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._action = None self._api_version = None @@ -282,7 +287,7 @@ def event_time(self, event_time): :param event_time: The event_time of this V1beta1Event. # noqa: E501 :type: datetime """ - if event_time is None: + if self.local_vars_configuration.client_side_validation and event_time is None: # noqa: E501 raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 self._event_time = event_time @@ -546,8 +551,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1Event): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1Event): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_event_list.py b/kubernetes/client/models/v1beta1_event_list.py index d13db568fe..1855502980 100644 --- a/kubernetes/client/models/v1beta1_event_list.py +++ b/kubernetes/client/models/v1beta1_event_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1EventList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1EventList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1EventList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1EventList. # noqa: E501 :type: list[V1beta1Event] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1EventList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1EventList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_event_series.py b/kubernetes/client/models/v1beta1_event_series.py index 3fb9e31e98..0405490b21 100644 --- a/kubernetes/client/models/v1beta1_event_series.py +++ b/kubernetes/client/models/v1beta1_event_series.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1EventSeries(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta1EventSeries(object): 'state': 'state' } - def __init__(self, count=None, last_observed_time=None, state=None): # noqa: E501 + def __init__(self, count=None, last_observed_time=None, state=None, local_vars_configuration=None): # noqa: E501 """V1beta1EventSeries - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._count = None self._last_observed_time = None @@ -74,7 +79,7 @@ def count(self, count): :param count: The count of this V1beta1EventSeries. # noqa: E501 :type: int """ - if count is None: + if self.local_vars_configuration.client_side_validation and count is None: # noqa: E501 raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 self._count = count @@ -99,7 +104,7 @@ def last_observed_time(self, last_observed_time): :param last_observed_time: The last_observed_time of this V1beta1EventSeries. # noqa: E501 :type: datetime """ - if last_observed_time is None: + if self.local_vars_configuration.client_side_validation and last_observed_time is None: # noqa: E501 raise ValueError("Invalid value for `last_observed_time`, must not be `None`") # noqa: E501 self._last_observed_time = last_observed_time @@ -124,7 +129,7 @@ def state(self, state): :param state: The state of this V1beta1EventSeries. # noqa: E501 :type: str """ - if state is None: + if self.local_vars_configuration.client_side_validation and state is None: # noqa: E501 raise ValueError("Invalid value for `state`, must not be `None`") # noqa: E501 self._state = state @@ -166,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1EventSeries): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1EventSeries): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_eviction.py b/kubernetes/client/models/v1beta1_eviction.py index 1b39077514..a662e9a27a 100644 --- a/kubernetes/client/models/v1beta1_eviction.py +++ b/kubernetes/client/models/v1beta1_eviction.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1Eviction(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1Eviction(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, delete_options=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, delete_options=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1Eviction - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._delete_options = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1Eviction): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1Eviction): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_external_documentation.py b/kubernetes/client/models/v1beta1_external_documentation.py index 9650a0c50f..310106f6d6 100644 --- a/kubernetes/client/models/v1beta1_external_documentation.py +++ b/kubernetes/client/models/v1beta1_external_documentation.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ExternalDocumentation(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1ExternalDocumentation(object): 'url': 'url' } - def __init__(self, description=None, url=None): # noqa: E501 + def __init__(self, description=None, url=None, local_vars_configuration=None): # noqa: E501 """V1beta1ExternalDocumentation - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._description = None self._url = None @@ -131,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ExternalDocumentation): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ExternalDocumentation): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_ip_block.py b/kubernetes/client/models/v1beta1_ip_block.py index 8ae72028fa..4d5dd4510e 100644 --- a/kubernetes/client/models/v1beta1_ip_block.py +++ b/kubernetes/client/models/v1beta1_ip_block.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1IPBlock(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1IPBlock(object): '_except': 'except' } - def __init__(self, cidr=None, _except=None): # noqa: E501 + def __init__(self, cidr=None, _except=None, local_vars_configuration=None): # noqa: E501 """V1beta1IPBlock - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._cidr = None self.__except = None @@ -71,7 +76,7 @@ def cidr(self, cidr): :param cidr: The cidr of this V1beta1IPBlock. # noqa: E501 :type: str """ - if cidr is None: + if self.local_vars_configuration.client_side_validation and cidr is None: # noqa: E501 raise ValueError("Invalid value for `cidr`, must not be `None`") # noqa: E501 self._cidr = cidr @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1IPBlock): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1IPBlock): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_job_template_spec.py b/kubernetes/client/models/v1beta1_job_template_spec.py index 1197664c86..4277c99f90 100644 --- a/kubernetes/client/models/v1beta1_job_template_spec.py +++ b/kubernetes/client/models/v1beta1_job_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1JobTemplateSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1JobTemplateSpec(object): 'spec': 'spec' } - def __init__(self, metadata=None, spec=None): # noqa: E501 + def __init__(self, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1beta1JobTemplateSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._metadata = None self._spec = None @@ -131,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1JobTemplateSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1JobTemplateSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_json_schema_props.py b/kubernetes/client/models/v1beta1_json_schema_props.py index 5e3c28a29e..d63ea64e7e 100644 --- a/kubernetes/client/models/v1beta1_json_schema_props.py +++ b/kubernetes/client/models/v1beta1_json_schema_props.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1JSONSchemaProps(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -120,8 +122,11 @@ class V1beta1JSONSchemaProps(object): 'x_kubernetes_preserve_unknown_fields': 'x-kubernetes-preserve-unknown-fields' } - def __init__(self, ref=None, schema=None, additional_items=None, additional_properties=None, all_of=None, any_of=None, default=None, definitions=None, dependencies=None, description=None, enum=None, example=None, exclusive_maximum=None, exclusive_minimum=None, external_docs=None, format=None, id=None, items=None, max_items=None, max_length=None, max_properties=None, maximum=None, min_items=None, min_length=None, min_properties=None, minimum=None, multiple_of=None, _not=None, nullable=None, one_of=None, pattern=None, pattern_properties=None, properties=None, required=None, title=None, type=None, unique_items=None, x_kubernetes_embedded_resource=None, x_kubernetes_int_or_string=None, x_kubernetes_list_map_keys=None, x_kubernetes_list_type=None, x_kubernetes_preserve_unknown_fields=None): # noqa: E501 + def __init__(self, ref=None, schema=None, additional_items=None, additional_properties=None, all_of=None, any_of=None, default=None, definitions=None, dependencies=None, description=None, enum=None, example=None, exclusive_maximum=None, exclusive_minimum=None, external_docs=None, format=None, id=None, items=None, max_items=None, max_length=None, max_properties=None, maximum=None, min_items=None, min_length=None, min_properties=None, minimum=None, multiple_of=None, _not=None, nullable=None, one_of=None, pattern=None, pattern_properties=None, properties=None, required=None, title=None, type=None, unique_items=None, x_kubernetes_embedded_resource=None, x_kubernetes_int_or_string=None, x_kubernetes_list_map_keys=None, x_kubernetes_list_type=None, x_kubernetes_preserve_unknown_fields=None, local_vars_configuration=None): # noqa: E501 """V1beta1JSONSchemaProps - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ref = None self._schema = None @@ -1191,8 +1196,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1JSONSchemaProps): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1JSONSchemaProps): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_lease.py b/kubernetes/client/models/v1beta1_lease.py index 21fdf8bbc8..87d62508fa 100644 --- a/kubernetes/client/models/v1beta1_lease.py +++ b/kubernetes/client/models/v1beta1_lease.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1Lease(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1Lease(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1beta1Lease - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1Lease): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1Lease): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_lease_list.py b/kubernetes/client/models/v1beta1_lease_list.py index 739171f345..b709f60344 100644 --- a/kubernetes/client/models/v1beta1_lease_list.py +++ b/kubernetes/client/models/v1beta1_lease_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1LeaseList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1LeaseList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1LeaseList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1LeaseList. # noqa: E501 :type: list[V1beta1Lease] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1LeaseList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1LeaseList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_lease_spec.py b/kubernetes/client/models/v1beta1_lease_spec.py index b070d669b9..fd334c0191 100644 --- a/kubernetes/client/models/v1beta1_lease_spec.py +++ b/kubernetes/client/models/v1beta1_lease_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1LeaseSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1LeaseSpec(object): 'renew_time': 'renewTime' } - def __init__(self, acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, renew_time=None): # noqa: E501 + def __init__(self, acquire_time=None, holder_identity=None, lease_duration_seconds=None, lease_transitions=None, renew_time=None, local_vars_configuration=None): # noqa: E501 """V1beta1LeaseSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._acquire_time = None self._holder_identity = None @@ -219,8 +224,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1LeaseSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1LeaseSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_local_subject_access_review.py b/kubernetes/client/models/v1beta1_local_subject_access_review.py index d7e2658f0c..78630b7e9e 100644 --- a/kubernetes/client/models/v1beta1_local_subject_access_review.py +++ b/kubernetes/client/models/v1beta1_local_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1LocalSubjectAccessReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1LocalSubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1LocalSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1beta1LocalSubjectAccessReview. # noqa: E501 :type: V1beta1SubjectAccessReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1LocalSubjectAccessReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1LocalSubjectAccessReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_mutating_webhook.py b/kubernetes/client/models/v1beta1_mutating_webhook.py index d67a7487e9..4d51c4da9f 100644 --- a/kubernetes/client/models/v1beta1_mutating_webhook.py +++ b/kubernetes/client/models/v1beta1_mutating_webhook.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1MutatingWebhook(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -58,8 +60,11 @@ class V1beta1MutatingWebhook(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, reinvocation_policy=None, rules=None, side_effects=None, timeout_seconds=None): # noqa: E501 + def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, reinvocation_policy=None, rules=None, side_effects=None, timeout_seconds=None, local_vars_configuration=None): # noqa: E501 """V1beta1MutatingWebhook - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._admission_review_versions = None self._client_config = None @@ -136,7 +141,7 @@ def client_config(self, client_config): :param client_config: The client_config of this V1beta1MutatingWebhook. # noqa: E501 :type: AdmissionregistrationV1beta1WebhookClientConfig """ - if client_config is None: + if self.local_vars_configuration.client_side_validation and client_config is None: # noqa: E501 raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501 self._client_config = client_config @@ -207,7 +212,7 @@ def name(self, name): :param name: The name of this V1beta1MutatingWebhook. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -383,8 +388,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1MutatingWebhook): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1MutatingWebhook): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py b/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py index 5a98ac89a9..2bfca8c126 100644 --- a/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py +++ b/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1MutatingWebhookConfiguration(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1MutatingWebhookConfiguration(object): 'webhooks': 'webhooks' } - def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None, local_vars_configuration=None): # noqa: E501 """V1beta1MutatingWebhookConfiguration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1MutatingWebhookConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1MutatingWebhookConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py b/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py index c061f26783..d329d95748 100644 --- a/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py +++ b/kubernetes/client/models/v1beta1_mutating_webhook_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1MutatingWebhookConfigurationList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1MutatingWebhookConfigurationList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1MutatingWebhookConfigurationList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1MutatingWebhookConfigurationList. # noqa: E501 :type: list[V1beta1MutatingWebhookConfiguration] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1MutatingWebhookConfigurationList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1MutatingWebhookConfigurationList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_network_policy.py b/kubernetes/client/models/v1beta1_network_policy.py index 8755599c62..8d5469403e 100644 --- a/kubernetes/client/models/v1beta1_network_policy.py +++ b/kubernetes/client/models/v1beta1_network_policy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1NetworkPolicy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1NetworkPolicy(object): 'spec': 'spec' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V1beta1NetworkPolicy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1NetworkPolicy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1NetworkPolicy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_network_policy_egress_rule.py b/kubernetes/client/models/v1beta1_network_policy_egress_rule.py index 157cd90087..28e459ac17 100644 --- a/kubernetes/client/models/v1beta1_network_policy_egress_rule.py +++ b/kubernetes/client/models/v1beta1_network_policy_egress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1NetworkPolicyEgressRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1NetworkPolicyEgressRule(object): 'to': 'to' } - def __init__(self, ports=None, to=None): # noqa: E501 + def __init__(self, ports=None, to=None, local_vars_configuration=None): # noqa: E501 """V1beta1NetworkPolicyEgressRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ports = None self._to = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1NetworkPolicyEgressRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1NetworkPolicyEgressRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py b/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py index 6efc66ed11..9250068dee 100644 --- a/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py +++ b/kubernetes/client/models/v1beta1_network_policy_ingress_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1NetworkPolicyIngressRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1NetworkPolicyIngressRule(object): 'ports': 'ports' } - def __init__(self, _from=None, ports=None): # noqa: E501 + def __init__(self, _from=None, ports=None, local_vars_configuration=None): # noqa: E501 """V1beta1NetworkPolicyIngressRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self.__from = None self._ports = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1NetworkPolicyIngressRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1NetworkPolicyIngressRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_network_policy_list.py b/kubernetes/client/models/v1beta1_network_policy_list.py index 5118a59489..d568f1dda3 100644 --- a/kubernetes/client/models/v1beta1_network_policy_list.py +++ b/kubernetes/client/models/v1beta1_network_policy_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1NetworkPolicyList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1NetworkPolicyList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1NetworkPolicyList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1NetworkPolicyList. # noqa: E501 :type: list[V1beta1NetworkPolicy] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1NetworkPolicyList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1NetworkPolicyList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_network_policy_peer.py b/kubernetes/client/models/v1beta1_network_policy_peer.py index 84568cb804..1fc5b60094 100644 --- a/kubernetes/client/models/v1beta1_network_policy_peer.py +++ b/kubernetes/client/models/v1beta1_network_policy_peer.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1NetworkPolicyPeer(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta1NetworkPolicyPeer(object): 'pod_selector': 'podSelector' } - def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None): # noqa: E501 + def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None, local_vars_configuration=None): # noqa: E501 """V1beta1NetworkPolicyPeer - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._ip_block = None self._namespace_selector = None @@ -157,8 +162,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1NetworkPolicyPeer): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1NetworkPolicyPeer): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_network_policy_port.py b/kubernetes/client/models/v1beta1_network_policy_port.py index 6c23e7a83b..789ff45ec0 100644 --- a/kubernetes/client/models/v1beta1_network_policy_port.py +++ b/kubernetes/client/models/v1beta1_network_policy_port.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1NetworkPolicyPort(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1NetworkPolicyPort(object): 'protocol': 'protocol' } - def __init__(self, port=None, protocol=None): # noqa: E501 + def __init__(self, port=None, protocol=None, local_vars_configuration=None): # noqa: E501 """V1beta1NetworkPolicyPort - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._port = None self._protocol = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1NetworkPolicyPort): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1NetworkPolicyPort): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_network_policy_spec.py b/kubernetes/client/models/v1beta1_network_policy_spec.py index 082f2ef41c..84d65b5908 100644 --- a/kubernetes/client/models/v1beta1_network_policy_spec.py +++ b/kubernetes/client/models/v1beta1_network_policy_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1NetworkPolicySpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1NetworkPolicySpec(object): 'policy_types': 'policyTypes' } - def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None): # noqa: E501 + def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None, local_vars_configuration=None): # noqa: E501 """V1beta1NetworkPolicySpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._egress = None self._ingress = None @@ -125,7 +130,7 @@ def pod_selector(self, pod_selector): :param pod_selector: The pod_selector of this V1beta1NetworkPolicySpec. # noqa: E501 :type: V1LabelSelector """ - if pod_selector is None: + if self.local_vars_configuration.client_side_validation and pod_selector is None: # noqa: E501 raise ValueError("Invalid value for `pod_selector`, must not be `None`") # noqa: E501 self._pod_selector = pod_selector @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1NetworkPolicySpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1NetworkPolicySpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_non_resource_attributes.py b/kubernetes/client/models/v1beta1_non_resource_attributes.py index 8c04b9e600..e70f171c43 100644 --- a/kubernetes/client/models/v1beta1_non_resource_attributes.py +++ b/kubernetes/client/models/v1beta1_non_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1NonResourceAttributes(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1NonResourceAttributes(object): 'verb': 'verb' } - def __init__(self, path=None, verb=None): # noqa: E501 + def __init__(self, path=None, verb=None, local_vars_configuration=None): # noqa: E501 """V1beta1NonResourceAttributes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._path = None self._verb = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1NonResourceAttributes): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1NonResourceAttributes): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_non_resource_rule.py b/kubernetes/client/models/v1beta1_non_resource_rule.py index 2e658956c8..c9a5a48be8 100644 --- a/kubernetes/client/models/v1beta1_non_resource_rule.py +++ b/kubernetes/client/models/v1beta1_non_resource_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1NonResourceRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1NonResourceRule(object): 'verbs': 'verbs' } - def __init__(self, non_resource_ur_ls=None, verbs=None): # noqa: E501 + def __init__(self, non_resource_ur_ls=None, verbs=None, local_vars_configuration=None): # noqa: E501 """V1beta1NonResourceRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._non_resource_ur_ls = None self._verbs = None @@ -94,7 +99,7 @@ def verbs(self, verbs): :param verbs: The verbs of this V1beta1NonResourceRule. # noqa: E501 :type: list[str] """ - if verbs is None: + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs @@ -136,8 +141,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1NonResourceRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1NonResourceRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_overhead.py b/kubernetes/client/models/v1beta1_overhead.py index 883c599209..29eda516e0 100644 --- a/kubernetes/client/models/v1beta1_overhead.py +++ b/kubernetes/client/models/v1beta1_overhead.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1Overhead(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta1Overhead(object): 'pod_fixed': 'podFixed' } - def __init__(self, pod_fixed=None): # noqa: E501 + def __init__(self, pod_fixed=None, local_vars_configuration=None): # noqa: E501 """V1beta1Overhead - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pod_fixed = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1Overhead): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1Overhead): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget.py b/kubernetes/client/models/v1beta1_pod_disruption_budget.py index a8a3c45746..7844114c04 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1PodDisruptionBudget(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1PodDisruptionBudget(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1PodDisruptionBudget - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1PodDisruptionBudget): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1PodDisruptionBudget): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py index 3e0b3a18c6..885a25a529 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1PodDisruptionBudgetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1PodDisruptionBudgetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1PodDisruptionBudgetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -102,7 +107,7 @@ def items(self, items): :param items: The items of this V1beta1PodDisruptionBudgetList. # noqa: E501 :type: list[V1beta1PodDisruptionBudget] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1PodDisruptionBudgetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1PodDisruptionBudgetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py index cc72e27a6c..04c58715f9 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1PodDisruptionBudgetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta1PodDisruptionBudgetSpec(object): 'selector': 'selector' } - def __init__(self, max_unavailable=None, min_available=None, selector=None): # noqa: E501 + def __init__(self, max_unavailable=None, min_available=None, selector=None, local_vars_configuration=None): # noqa: E501 """V1beta1PodDisruptionBudgetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_unavailable = None self._min_available = None @@ -161,8 +166,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1PodDisruptionBudgetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1PodDisruptionBudgetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py index 65b7bbb9ea..33509c1cc3 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1PodDisruptionBudgetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta1PodDisruptionBudgetStatus(object): 'observed_generation': 'observedGeneration' } - def __init__(self, current_healthy=None, desired_healthy=None, disrupted_pods=None, disruptions_allowed=None, expected_pods=None, observed_generation=None): # noqa: E501 + def __init__(self, current_healthy=None, desired_healthy=None, disrupted_pods=None, disruptions_allowed=None, expected_pods=None, observed_generation=None, local_vars_configuration=None): # noqa: E501 """V1beta1PodDisruptionBudgetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._current_healthy = None self._desired_healthy = None @@ -88,7 +93,7 @@ def current_healthy(self, current_healthy): :param current_healthy: The current_healthy of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: int """ - if current_healthy is None: + if self.local_vars_configuration.client_side_validation and current_healthy is None: # noqa: E501 raise ValueError("Invalid value for `current_healthy`, must not be `None`") # noqa: E501 self._current_healthy = current_healthy @@ -113,7 +118,7 @@ def desired_healthy(self, desired_healthy): :param desired_healthy: The desired_healthy of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: int """ - if desired_healthy is None: + if self.local_vars_configuration.client_side_validation and desired_healthy is None: # noqa: E501 raise ValueError("Invalid value for `desired_healthy`, must not be `None`") # noqa: E501 self._desired_healthy = desired_healthy @@ -161,7 +166,7 @@ def disruptions_allowed(self, disruptions_allowed): :param disruptions_allowed: The disruptions_allowed of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: int """ - if disruptions_allowed is None: + if self.local_vars_configuration.client_side_validation and disruptions_allowed is None: # noqa: E501 raise ValueError("Invalid value for `disruptions_allowed`, must not be `None`") # noqa: E501 self._disruptions_allowed = disruptions_allowed @@ -186,7 +191,7 @@ def expected_pods(self, expected_pods): :param expected_pods: The expected_pods of this V1beta1PodDisruptionBudgetStatus. # noqa: E501 :type: int """ - if expected_pods is None: + if self.local_vars_configuration.client_side_validation and expected_pods is None: # noqa: E501 raise ValueError("Invalid value for `expected_pods`, must not be `None`") # noqa: E501 self._expected_pods = expected_pods @@ -251,8 +256,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1PodDisruptionBudgetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1PodDisruptionBudgetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_policy_rule.py b/kubernetes/client/models/v1beta1_policy_rule.py index ae707fdddd..4ba323ac6e 100644 --- a/kubernetes/client/models/v1beta1_policy_rule.py +++ b/kubernetes/client/models/v1beta1_policy_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1PolicyRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1PolicyRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + def __init__(self, api_groups=None, non_resource_ur_ls=None, resource_names=None, resources=None, verbs=None, local_vars_configuration=None): # noqa: E501 """V1beta1PolicyRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_groups = None self._non_resource_ur_ls = None @@ -178,7 +183,7 @@ def verbs(self, verbs): :param verbs: The verbs of this V1beta1PolicyRule. # noqa: E501 :type: list[str] """ - if verbs is None: + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs @@ -220,8 +225,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1PolicyRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1PolicyRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_priority_class.py b/kubernetes/client/models/v1beta1_priority_class.py index 6811af5077..6813bf8f74 100644 --- a/kubernetes/client/models/v1beta1_priority_class.py +++ b/kubernetes/client/models/v1beta1_priority_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1PriorityClass(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1beta1PriorityClass(object): 'value': 'value' } - def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None): # noqa: E501 + def __init__(self, api_version=None, description=None, global_default=None, kind=None, metadata=None, preemption_policy=None, value=None, local_vars_configuration=None): # noqa: E501 """V1beta1PriorityClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._description = None @@ -232,7 +237,7 @@ def value(self, value): :param value: The value of this V1beta1PriorityClass. # noqa: E501 :type: int """ - if value is None: + if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501 raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 self._value = value @@ -274,8 +279,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1PriorityClass): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1PriorityClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_priority_class_list.py b/kubernetes/client/models/v1beta1_priority_class_list.py index 2a5fa151bf..ed56f60388 100644 --- a/kubernetes/client/models/v1beta1_priority_class_list.py +++ b/kubernetes/client/models/v1beta1_priority_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1PriorityClassList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1PriorityClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1PriorityClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1PriorityClassList. # noqa: E501 :type: list[V1beta1PriorityClass] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1PriorityClassList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1PriorityClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_replica_set.py b/kubernetes/client/models/v1beta1_replica_set.py index 3c7bd291a1..4c7c98a0f2 100644 --- a/kubernetes/client/models/v1beta1_replica_set.py +++ b/kubernetes/client/models/v1beta1_replica_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ReplicaSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1ReplicaSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1ReplicaSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ReplicaSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ReplicaSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_replica_set_condition.py b/kubernetes/client/models/v1beta1_replica_set_condition.py index 5f4ac59cf0..fabc56a772 100644 --- a/kubernetes/client/models/v1beta1_replica_set_condition.py +++ b/kubernetes/client/models/v1beta1_replica_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ReplicaSetCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1ReplicaSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1ReplicaSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1beta1ReplicaSetCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1beta1ReplicaSetCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ReplicaSetCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ReplicaSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_replica_set_list.py b/kubernetes/client/models/v1beta1_replica_set_list.py index e336edffe6..06a6688522 100644 --- a/kubernetes/client/models/v1beta1_replica_set_list.py +++ b/kubernetes/client/models/v1beta1_replica_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ReplicaSetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1ReplicaSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1ReplicaSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1ReplicaSetList. # noqa: E501 :type: list[V1beta1ReplicaSet] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ReplicaSetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ReplicaSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_replica_set_spec.py b/kubernetes/client/models/v1beta1_replica_set_spec.py index 1e4823f296..fe736fd0c9 100644 --- a/kubernetes/client/models/v1beta1_replica_set_spec.py +++ b/kubernetes/client/models/v1beta1_replica_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ReplicaSetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1ReplicaSetSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None, local_vars_configuration=None): # noqa: E501 """V1beta1ReplicaSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._replicas = None @@ -187,8 +192,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ReplicaSetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ReplicaSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_replica_set_status.py b/kubernetes/client/models/v1beta1_replica_set_status.py index c383eac339..30b20b249d 100644 --- a/kubernetes/client/models/v1beta1_replica_set_status.py +++ b/kubernetes/client/models/v1beta1_replica_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ReplicaSetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta1ReplicaSetStatus(object): 'replicas': 'replicas' } - def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): # noqa: E501 + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None, local_vars_configuration=None): # noqa: E501 """V1beta1ReplicaSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._available_replicas = None self._conditions = None @@ -206,7 +211,7 @@ def replicas(self, replicas): :param replicas: The replicas of this V1beta1ReplicaSetStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -248,8 +253,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ReplicaSetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ReplicaSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_resource_attributes.py b/kubernetes/client/models/v1beta1_resource_attributes.py index f6dac2bf09..31bf736330 100644 --- a/kubernetes/client/models/v1beta1_resource_attributes.py +++ b/kubernetes/client/models/v1beta1_resource_attributes.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ResourceAttributes(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V1beta1ResourceAttributes(object): 'version': 'version' } - def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None): # noqa: E501 + def __init__(self, group=None, name=None, namespace=None, resource=None, subresource=None, verb=None, version=None, local_vars_configuration=None): # noqa: E501 """V1beta1ResourceAttributes - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._group = None self._name = None @@ -275,8 +280,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ResourceAttributes): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ResourceAttributes): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_resource_rule.py b/kubernetes/client/models/v1beta1_resource_rule.py index 332cff2c10..ae4c608bec 100644 --- a/kubernetes/client/models/v1beta1_resource_rule.py +++ b/kubernetes/client/models/v1beta1_resource_rule.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ResourceRule(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1ResourceRule(object): 'verbs': 'verbs' } - def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=None): # noqa: E501 + def __init__(self, api_groups=None, resource_names=None, resources=None, verbs=None, local_vars_configuration=None): # noqa: E501 """V1beta1ResourceRule - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_groups = None self._resource_names = None @@ -150,7 +155,7 @@ def verbs(self, verbs): :param verbs: The verbs of this V1beta1ResourceRule. # noqa: E501 :type: list[str] """ - if verbs is None: + if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501 raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501 self._verbs = verbs @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ResourceRule): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ResourceRule): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_role.py b/kubernetes/client/models/v1beta1_role.py index 8d075ba06b..aad05d79c6 100644 --- a/kubernetes/client/models/v1beta1_role.py +++ b/kubernetes/client/models/v1beta1_role.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1Role(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1Role(object): 'rules': 'rules' } - def __init__(self, api_version=None, kind=None, metadata=None, rules=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, rules=None, local_vars_configuration=None): # noqa: E501 """V1beta1Role - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1Role): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1Role): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_role_binding.py b/kubernetes/client/models/v1beta1_role_binding.py index 5bce60858c..b728f4031a 100644 --- a/kubernetes/client/models/v1beta1_role_binding.py +++ b/kubernetes/client/models/v1beta1_role_binding.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1RoleBinding(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1RoleBinding(object): 'subjects': 'subjects' } - def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, role_ref=None, subjects=None, local_vars_configuration=None): # noqa: E501 """V1beta1RoleBinding - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def role_ref(self, role_ref): :param role_ref: The role_ref of this V1beta1RoleBinding. # noqa: E501 :type: V1beta1RoleRef """ - if role_ref is None: + if self.local_vars_configuration.client_side_validation and role_ref is None: # noqa: E501 raise ValueError("Invalid value for `role_ref`, must not be `None`") # noqa: E501 self._role_ref = role_ref @@ -216,8 +221,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1RoleBinding): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1RoleBinding): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_role_binding_list.py b/kubernetes/client/models/v1beta1_role_binding_list.py index 70f94d5c30..6258f866be 100644 --- a/kubernetes/client/models/v1beta1_role_binding_list.py +++ b/kubernetes/client/models/v1beta1_role_binding_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1RoleBindingList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1RoleBindingList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1RoleBindingList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1RoleBindingList. # noqa: E501 :type: list[V1beta1RoleBinding] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1RoleBindingList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1RoleBindingList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_role_list.py b/kubernetes/client/models/v1beta1_role_list.py index ce064e2de2..2d51a5d9df 100644 --- a/kubernetes/client/models/v1beta1_role_list.py +++ b/kubernetes/client/models/v1beta1_role_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1RoleList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1RoleList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1RoleList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1RoleList. # noqa: E501 :type: list[V1beta1Role] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1RoleList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1RoleList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_role_ref.py b/kubernetes/client/models/v1beta1_role_ref.py index 6510efb1d8..620337293a 100644 --- a/kubernetes/client/models/v1beta1_role_ref.py +++ b/kubernetes/client/models/v1beta1_role_ref.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1RoleRef(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta1RoleRef(object): 'name': 'name' } - def __init__(self, api_group=None, kind=None, name=None): # noqa: E501 + def __init__(self, api_group=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 """V1beta1RoleRef - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_group = None self._kind = None @@ -74,7 +79,7 @@ def api_group(self, api_group): :param api_group: The api_group of this V1beta1RoleRef. # noqa: E501 :type: str """ - if api_group is None: + if self.local_vars_configuration.client_side_validation and api_group is None: # noqa: E501 raise ValueError("Invalid value for `api_group`, must not be `None`") # noqa: E501 self._api_group = api_group @@ -99,7 +104,7 @@ def kind(self, kind): :param kind: The kind of this V1beta1RoleRef. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -124,7 +129,7 @@ def name(self, name): :param name: The name of this V1beta1RoleRef. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -166,8 +171,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1RoleRef): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1RoleRef): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py b/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py index 66333b769e..abb4bbff33 100644 --- a/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py +++ b/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1RollingUpdateDaemonSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta1RollingUpdateDaemonSet(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_unavailable=None): # noqa: E501 + def __init__(self, max_unavailable=None, local_vars_configuration=None): # noqa: E501 """V1beta1RollingUpdateDaemonSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_unavailable = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1RollingUpdateDaemonSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1RollingUpdateDaemonSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_rolling_update_stateful_set_strategy.py b/kubernetes/client/models/v1beta1_rolling_update_stateful_set_strategy.py index 9afb26c7eb..419ad7c8e0 100644 --- a/kubernetes/client/models/v1beta1_rolling_update_stateful_set_strategy.py +++ b/kubernetes/client/models/v1beta1_rolling_update_stateful_set_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1RollingUpdateStatefulSetStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta1RollingUpdateStatefulSetStrategy(object): 'partition': 'partition' } - def __init__(self, partition=None): # noqa: E501 + def __init__(self, partition=None, local_vars_configuration=None): # noqa: E501 """V1beta1RollingUpdateStatefulSetStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._partition = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1RollingUpdateStatefulSetStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1RollingUpdateStatefulSetStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_rule_with_operations.py b/kubernetes/client/models/v1beta1_rule_with_operations.py index 24a75acf5f..00164531ff 100644 --- a/kubernetes/client/models/v1beta1_rule_with_operations.py +++ b/kubernetes/client/models/v1beta1_rule_with_operations.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1RuleWithOperations(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1RuleWithOperations(object): 'scope': 'scope' } - def __init__(self, api_groups=None, api_versions=None, operations=None, resources=None, scope=None): # noqa: E501 + def __init__(self, api_groups=None, api_versions=None, operations=None, resources=None, scope=None, local_vars_configuration=None): # noqa: E501 """V1beta1RuleWithOperations - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_groups = None self._api_versions = None @@ -219,8 +224,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1RuleWithOperations): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1RuleWithOperations): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_runtime_class.py b/kubernetes/client/models/v1beta1_runtime_class.py index c991d91272..aa2bc57221 100644 --- a/kubernetes/client/models/v1beta1_runtime_class.py +++ b/kubernetes/client/models/v1beta1_runtime_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1RuntimeClass(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta1RuntimeClass(object): 'scheduling': 'scheduling' } - def __init__(self, api_version=None, handler=None, kind=None, metadata=None, overhead=None, scheduling=None): # noqa: E501 + def __init__(self, api_version=None, handler=None, kind=None, metadata=None, overhead=None, scheduling=None, local_vars_configuration=None): # noqa: E501 """V1beta1RuntimeClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._handler = None @@ -114,7 +119,7 @@ def handler(self, handler): :param handler: The handler of this V1beta1RuntimeClass. # noqa: E501 :type: str """ - if handler is None: + if self.local_vars_configuration.client_side_validation and handler is None: # noqa: E501 raise ValueError("Invalid value for `handler`, must not be `None`") # noqa: E501 self._handler = handler @@ -242,8 +247,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1RuntimeClass): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1RuntimeClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_runtime_class_list.py b/kubernetes/client/models/v1beta1_runtime_class_list.py index 84e3ae8e1d..919d6653c0 100644 --- a/kubernetes/client/models/v1beta1_runtime_class_list.py +++ b/kubernetes/client/models/v1beta1_runtime_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1RuntimeClassList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1RuntimeClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1RuntimeClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1RuntimeClassList. # noqa: E501 :type: list[V1beta1RuntimeClass] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1RuntimeClassList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1RuntimeClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_scheduling.py b/kubernetes/client/models/v1beta1_scheduling.py index 49d3ea1446..ef384bf85e 100644 --- a/kubernetes/client/models/v1beta1_scheduling.py +++ b/kubernetes/client/models/v1beta1_scheduling.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1Scheduling(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1Scheduling(object): 'tolerations': 'tolerations' } - def __init__(self, node_selector=None, tolerations=None): # noqa: E501 + def __init__(self, node_selector=None, tolerations=None, local_vars_configuration=None): # noqa: E501 """V1beta1Scheduling - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._node_selector = None self._tolerations = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1Scheduling): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1Scheduling): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_self_subject_access_review.py b/kubernetes/client/models/v1beta1_self_subject_access_review.py index 383824c97e..4b11d4da76 100644 --- a/kubernetes/client/models/v1beta1_self_subject_access_review.py +++ b/kubernetes/client/models/v1beta1_self_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1SelfSubjectAccessReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1SelfSubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1SelfSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1beta1SelfSubjectAccessReview. # noqa: E501 :type: V1beta1SelfSubjectAccessReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1SelfSubjectAccessReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1SelfSubjectAccessReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py b/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py index 0033ef818b..e3d853a211 100644 --- a/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py +++ b/kubernetes/client/models/v1beta1_self_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1SelfSubjectAccessReviewSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1SelfSubjectAccessReviewSpec(object): 'resource_attributes': 'resourceAttributes' } - def __init__(self, non_resource_attributes=None, resource_attributes=None): # noqa: E501 + def __init__(self, non_resource_attributes=None, resource_attributes=None, local_vars_configuration=None): # noqa: E501 """V1beta1SelfSubjectAccessReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._non_resource_attributes = None self._resource_attributes = None @@ -131,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1SelfSubjectAccessReviewSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1SelfSubjectAccessReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_self_subject_rules_review.py b/kubernetes/client/models/v1beta1_self_subject_rules_review.py index 6ece384988..0152c22c51 100644 --- a/kubernetes/client/models/v1beta1_self_subject_rules_review.py +++ b/kubernetes/client/models/v1beta1_self_subject_rules_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1SelfSubjectRulesReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1SelfSubjectRulesReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1SelfSubjectRulesReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1beta1SelfSubjectRulesReview. # noqa: E501 :type: V1beta1SelfSubjectRulesReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1SelfSubjectRulesReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1SelfSubjectRulesReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_self_subject_rules_review_spec.py b/kubernetes/client/models/v1beta1_self_subject_rules_review_spec.py index 4d3a984a61..815e698aed 100644 --- a/kubernetes/client/models/v1beta1_self_subject_rules_review_spec.py +++ b/kubernetes/client/models/v1beta1_self_subject_rules_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1SelfSubjectRulesReviewSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta1SelfSubjectRulesReviewSpec(object): 'namespace': 'namespace' } - def __init__(self, namespace=None): # noqa: E501 + def __init__(self, namespace=None, local_vars_configuration=None): # noqa: E501 """V1beta1SelfSubjectRulesReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._namespace = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1SelfSubjectRulesReviewSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1SelfSubjectRulesReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_stateful_set.py b/kubernetes/client/models/v1beta1_stateful_set.py index 9790f1e264..4da4268146 100644 --- a/kubernetes/client/models/v1beta1_stateful_set.py +++ b/kubernetes/client/models/v1beta1_stateful_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1StatefulSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1StatefulSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1StatefulSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1StatefulSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1StatefulSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_stateful_set_condition.py b/kubernetes/client/models/v1beta1_stateful_set_condition.py index 27b2e47b55..03435374ca 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_condition.py +++ b/kubernetes/client/models/v1beta1_stateful_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1StatefulSetCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1StatefulSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1StatefulSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1beta1StatefulSetCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1beta1StatefulSetCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1StatefulSetCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1StatefulSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_stateful_set_list.py b/kubernetes/client/models/v1beta1_stateful_set_list.py index 1222e86b35..f130ca6c6e 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_list.py +++ b/kubernetes/client/models/v1beta1_stateful_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1StatefulSetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1StatefulSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1StatefulSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -102,7 +107,7 @@ def items(self, items): :param items: The items of this V1beta1StatefulSetList. # noqa: E501 :type: list[V1beta1StatefulSet] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1StatefulSetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1StatefulSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_stateful_set_spec.py b/kubernetes/client/models/v1beta1_stateful_set_spec.py index 3c356b09e3..df665df970 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_spec.py +++ b/kubernetes/client/models/v1beta1_stateful_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1StatefulSetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1beta1StatefulSetSpec(object): 'volume_claim_templates': 'volumeClaimTemplates' } - def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None): # noqa: E501 + def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None, local_vars_configuration=None): # noqa: E501 """V1beta1StatefulSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pod_management_policy = None self._replicas = None @@ -190,7 +195,7 @@ def service_name(self, service_name): :param service_name: The service_name of this V1beta1StatefulSetSpec. # noqa: E501 :type: str """ - if service_name is None: + if self.local_vars_configuration.client_side_validation and service_name is None: # noqa: E501 raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @@ -213,7 +218,7 @@ def template(self, template): :param template: The template of this V1beta1StatefulSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -299,8 +304,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1StatefulSetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1StatefulSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_stateful_set_status.py b/kubernetes/client/models/v1beta1_stateful_set_status.py index f49169cfaa..b010d4fc1a 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_status.py +++ b/kubernetes/client/models/v1beta1_stateful_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1StatefulSetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -54,8 +56,11 @@ class V1beta1StatefulSetStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None): # noqa: E501 + def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None, local_vars_configuration=None): # noqa: E501 """V1beta1StatefulSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._collision_count = None self._conditions = None @@ -244,7 +249,7 @@ def replicas(self, replicas): :param replicas: The replicas of this V1beta1StatefulSetStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -332,8 +337,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1StatefulSetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1StatefulSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_stateful_set_update_strategy.py b/kubernetes/client/models/v1beta1_stateful_set_update_strategy.py index c70dc24f44..46fe41d30e 100644 --- a/kubernetes/client/models/v1beta1_stateful_set_update_strategy.py +++ b/kubernetes/client/models/v1beta1_stateful_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1StatefulSetUpdateStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1StatefulSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta1StatefulSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1StatefulSetUpdateStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1StatefulSetUpdateStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_storage_class.py b/kubernetes/client/models/v1beta1_storage_class.py index 62b31c7d23..2c9b85c386 100644 --- a/kubernetes/client/models/v1beta1_storage_class.py +++ b/kubernetes/client/models/v1beta1_storage_class.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1StorageClass(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1beta1StorageClass(object): 'volume_binding_mode': 'volumeBindingMode' } - def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None): # noqa: E501 + def __init__(self, allow_volume_expansion=None, allowed_topologies=None, api_version=None, kind=None, metadata=None, mount_options=None, parameters=None, provisioner=None, reclaim_policy=None, volume_binding_mode=None, local_vars_configuration=None): # noqa: E501 """V1beta1StorageClass - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allow_volume_expansion = None self._allowed_topologies = None @@ -270,7 +275,7 @@ def provisioner(self, provisioner): :param provisioner: The provisioner of this V1beta1StorageClass. # noqa: E501 :type: str """ - if provisioner is None: + if self.local_vars_configuration.client_side_validation and provisioner is None: # noqa: E501 raise ValueError("Invalid value for `provisioner`, must not be `None`") # noqa: E501 self._provisioner = provisioner @@ -358,8 +363,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1StorageClass): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1StorageClass): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_storage_class_list.py b/kubernetes/client/models/v1beta1_storage_class_list.py index 55238113c9..763323b016 100644 --- a/kubernetes/client/models/v1beta1_storage_class_list.py +++ b/kubernetes/client/models/v1beta1_storage_class_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1StorageClassList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1StorageClassList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1StorageClassList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1StorageClassList. # noqa: E501 :type: list[V1beta1StorageClass] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1StorageClassList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1StorageClassList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_subject.py b/kubernetes/client/models/v1beta1_subject.py index 3477924f1c..1c1f0d71dc 100644 --- a/kubernetes/client/models/v1beta1_subject.py +++ b/kubernetes/client/models/v1beta1_subject.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1Subject(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1Subject(object): 'namespace': 'namespace' } - def __init__(self, api_group=None, kind=None, name=None, namespace=None): # noqa: E501 + def __init__(self, api_group=None, kind=None, name=None, namespace=None, local_vars_configuration=None): # noqa: E501 """V1beta1Subject - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_group = None self._kind = None @@ -103,7 +108,7 @@ def kind(self, kind): :param kind: The kind of this V1beta1Subject. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -128,7 +133,7 @@ def name(self, name): :param name: The name of this V1beta1Subject. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -193,8 +198,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1Subject): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1Subject): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_subject_access_review.py b/kubernetes/client/models/v1beta1_subject_access_review.py index 117f314501..feca3c3090 100644 --- a/kubernetes/client/models/v1beta1_subject_access_review.py +++ b/kubernetes/client/models/v1beta1_subject_access_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1SubjectAccessReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1SubjectAccessReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1SubjectAccessReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1beta1SubjectAccessReview. # noqa: E501 :type: V1beta1SubjectAccessReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1SubjectAccessReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1SubjectAccessReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_subject_access_review_spec.py b/kubernetes/client/models/v1beta1_subject_access_review_spec.py index 9f2e387c4a..2ec81f34d0 100644 --- a/kubernetes/client/models/v1beta1_subject_access_review_spec.py +++ b/kubernetes/client/models/v1beta1_subject_access_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1SubjectAccessReviewSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta1SubjectAccessReviewSpec(object): 'user': 'user' } - def __init__(self, extra=None, group=None, non_resource_attributes=None, resource_attributes=None, uid=None, user=None): # noqa: E501 + def __init__(self, extra=None, group=None, non_resource_attributes=None, resource_attributes=None, uid=None, user=None, local_vars_configuration=None): # noqa: E501 """V1beta1SubjectAccessReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._extra = None self._group = None @@ -243,8 +248,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1SubjectAccessReviewSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1SubjectAccessReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_subject_access_review_status.py b/kubernetes/client/models/v1beta1_subject_access_review_status.py index 4fefac2fb5..c2542022f7 100644 --- a/kubernetes/client/models/v1beta1_subject_access_review_status.py +++ b/kubernetes/client/models/v1beta1_subject_access_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1SubjectAccessReviewStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1SubjectAccessReviewStatus(object): 'reason': 'reason' } - def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None): # noqa: E501 + def __init__(self, allowed=None, denied=None, evaluation_error=None, reason=None, local_vars_configuration=None): # noqa: E501 """V1beta1SubjectAccessReviewStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._allowed = None self._denied = None @@ -81,7 +86,7 @@ def allowed(self, allowed): :param allowed: The allowed of this V1beta1SubjectAccessReviewStatus. # noqa: E501 :type: bool """ - if allowed is None: + if self.local_vars_configuration.client_side_validation and allowed is None: # noqa: E501 raise ValueError("Invalid value for `allowed`, must not be `None`") # noqa: E501 self._allowed = allowed @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1SubjectAccessReviewStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1SubjectAccessReviewStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_subject_rules_review_status.py b/kubernetes/client/models/v1beta1_subject_rules_review_status.py index 12c256a8f2..9fb0f1b999 100644 --- a/kubernetes/client/models/v1beta1_subject_rules_review_status.py +++ b/kubernetes/client/models/v1beta1_subject_rules_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1SubjectRulesReviewStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1SubjectRulesReviewStatus(object): 'resource_rules': 'resourceRules' } - def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=None, resource_rules=None): # noqa: E501 + def __init__(self, evaluation_error=None, incomplete=None, non_resource_rules=None, resource_rules=None, local_vars_configuration=None): # noqa: E501 """V1beta1SubjectRulesReviewStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._evaluation_error = None self._incomplete = None @@ -102,7 +107,7 @@ def incomplete(self, incomplete): :param incomplete: The incomplete of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :type: bool """ - if incomplete is None: + if self.local_vars_configuration.client_side_validation and incomplete is None: # noqa: E501 raise ValueError("Invalid value for `incomplete`, must not be `None`") # noqa: E501 self._incomplete = incomplete @@ -127,7 +132,7 @@ def non_resource_rules(self, non_resource_rules): :param non_resource_rules: The non_resource_rules of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :type: list[V1beta1NonResourceRule] """ - if non_resource_rules is None: + if self.local_vars_configuration.client_side_validation and non_resource_rules is None: # noqa: E501 raise ValueError("Invalid value for `non_resource_rules`, must not be `None`") # noqa: E501 self._non_resource_rules = non_resource_rules @@ -152,7 +157,7 @@ def resource_rules(self, resource_rules): :param resource_rules: The resource_rules of this V1beta1SubjectRulesReviewStatus. # noqa: E501 :type: list[V1beta1ResourceRule] """ - if resource_rules is None: + if self.local_vars_configuration.client_side_validation and resource_rules is None: # noqa: E501 raise ValueError("Invalid value for `resource_rules`, must not be `None`") # noqa: E501 self._resource_rules = resource_rules @@ -194,8 +199,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1SubjectRulesReviewStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1SubjectRulesReviewStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_token_review.py b/kubernetes/client/models/v1beta1_token_review.py index c5e24608a1..b1c5f02df5 100644 --- a/kubernetes/client/models/v1beta1_token_review.py +++ b/kubernetes/client/models/v1beta1_token_review.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1TokenReview(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1TokenReview(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1TokenReview - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1beta1TokenReview. # noqa: E501 :type: V1beta1TokenReviewSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1TokenReview): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1TokenReview): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_token_review_spec.py b/kubernetes/client/models/v1beta1_token_review_spec.py index e1f5343526..611eaccde2 100644 --- a/kubernetes/client/models/v1beta1_token_review_spec.py +++ b/kubernetes/client/models/v1beta1_token_review_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1TokenReviewSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1TokenReviewSpec(object): 'token': 'token' } - def __init__(self, audiences=None, token=None): # noqa: E501 + def __init__(self, audiences=None, token=None, local_vars_configuration=None): # noqa: E501 """V1beta1TokenReviewSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._audiences = None self._token = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1TokenReviewSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1TokenReviewSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_token_review_status.py b/kubernetes/client/models/v1beta1_token_review_status.py index 0af6bddd3c..b7fa30d729 100644 --- a/kubernetes/client/models/v1beta1_token_review_status.py +++ b/kubernetes/client/models/v1beta1_token_review_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1TokenReviewStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1TokenReviewStatus(object): 'user': 'user' } - def __init__(self, audiences=None, authenticated=None, error=None, user=None): # noqa: E501 + def __init__(self, audiences=None, authenticated=None, error=None, user=None, local_vars_configuration=None): # noqa: E501 """V1beta1TokenReviewStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._audiences = None self._authenticated = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1TokenReviewStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1TokenReviewStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_user_info.py b/kubernetes/client/models/v1beta1_user_info.py index c6fbf929c9..12c758399a 100644 --- a/kubernetes/client/models/v1beta1_user_info.py +++ b/kubernetes/client/models/v1beta1_user_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1UserInfo(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1UserInfo(object): 'username': 'username' } - def __init__(self, extra=None, groups=None, uid=None, username=None): # noqa: E501 + def __init__(self, extra=None, groups=None, uid=None, username=None, local_vars_configuration=None): # noqa: E501 """V1beta1UserInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._extra = None self._groups = None @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1UserInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1UserInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_validating_webhook.py b/kubernetes/client/models/v1beta1_validating_webhook.py index c6eaeb5e0d..150182aa9f 100644 --- a/kubernetes/client/models/v1beta1_validating_webhook.py +++ b/kubernetes/client/models/v1beta1_validating_webhook.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ValidatingWebhook(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1beta1ValidatingWebhook(object): 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, rules=None, side_effects=None, timeout_seconds=None): # noqa: E501 + def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, rules=None, side_effects=None, timeout_seconds=None, local_vars_configuration=None): # noqa: E501 """V1beta1ValidatingWebhook - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._admission_review_versions = None self._client_config = None @@ -131,7 +136,7 @@ def client_config(self, client_config): :param client_config: The client_config of this V1beta1ValidatingWebhook. # noqa: E501 :type: AdmissionregistrationV1beta1WebhookClientConfig """ - if client_config is None: + if self.local_vars_configuration.client_side_validation and client_config is None: # noqa: E501 raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501 self._client_config = client_config @@ -202,7 +207,7 @@ def name(self, name): :param name: The name of this V1beta1ValidatingWebhook. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -355,8 +360,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ValidatingWebhook): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ValidatingWebhook): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_validating_webhook_configuration.py b/kubernetes/client/models/v1beta1_validating_webhook_configuration.py index 375591db86..2274d15168 100644 --- a/kubernetes/client/models/v1beta1_validating_webhook_configuration.py +++ b/kubernetes/client/models/v1beta1_validating_webhook_configuration.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ValidatingWebhookConfiguration(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1ValidatingWebhookConfiguration(object): 'webhooks': 'webhooks' } - def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None, local_vars_configuration=None): # noqa: E501 """V1beta1ValidatingWebhookConfiguration - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -189,8 +194,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ValidatingWebhookConfiguration): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ValidatingWebhookConfiguration): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_validating_webhook_configuration_list.py b/kubernetes/client/models/v1beta1_validating_webhook_configuration_list.py index d9898db592..94395c919e 100644 --- a/kubernetes/client/models/v1beta1_validating_webhook_configuration_list.py +++ b/kubernetes/client/models/v1beta1_validating_webhook_configuration_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1ValidatingWebhookConfigurationList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1ValidatingWebhookConfigurationList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1ValidatingWebhookConfigurationList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1ValidatingWebhookConfigurationList. # noqa: E501 :type: list[V1beta1ValidatingWebhookConfiguration] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1ValidatingWebhookConfigurationList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1ValidatingWebhookConfigurationList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_volume_attachment.py b/kubernetes/client/models/v1beta1_volume_attachment.py index 236fba686a..97546e3e0d 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment.py +++ b/kubernetes/client/models/v1beta1_volume_attachment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1VolumeAttachment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta1VolumeAttachment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta1VolumeAttachment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -151,7 +156,7 @@ def spec(self, spec): :param spec: The spec of this V1beta1VolumeAttachment. # noqa: E501 :type: V1beta1VolumeAttachmentSpec """ - if spec is None: + if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501 raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501 self._spec = spec @@ -214,8 +219,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1VolumeAttachment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1VolumeAttachment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_volume_attachment_list.py b/kubernetes/client/models/v1beta1_volume_attachment_list.py index aca11d3256..62951184b7 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment_list.py +++ b/kubernetes/client/models/v1beta1_volume_attachment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1VolumeAttachmentList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1VolumeAttachmentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta1VolumeAttachmentList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta1VolumeAttachmentList. # noqa: E501 :type: list[V1beta1VolumeAttachment] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1VolumeAttachmentList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1VolumeAttachmentList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_volume_attachment_source.py b/kubernetes/client/models/v1beta1_volume_attachment_source.py index 75695b3e02..77199c614a 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment_source.py +++ b/kubernetes/client/models/v1beta1_volume_attachment_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1VolumeAttachmentSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1VolumeAttachmentSource(object): 'persistent_volume_name': 'persistentVolumeName' } - def __init__(self, inline_volume_spec=None, persistent_volume_name=None): # noqa: E501 + def __init__(self, inline_volume_spec=None, persistent_volume_name=None, local_vars_configuration=None): # noqa: E501 """V1beta1VolumeAttachmentSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._inline_volume_spec = None self._persistent_volume_name = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1VolumeAttachmentSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1VolumeAttachmentSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_volume_attachment_spec.py b/kubernetes/client/models/v1beta1_volume_attachment_spec.py index 13592f2eb6..65a0621b4e 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment_spec.py +++ b/kubernetes/client/models/v1beta1_volume_attachment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1VolumeAttachmentSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta1VolumeAttachmentSpec(object): 'source': 'source' } - def __init__(self, attacher=None, node_name=None, source=None): # noqa: E501 + def __init__(self, attacher=None, node_name=None, source=None, local_vars_configuration=None): # noqa: E501 """V1beta1VolumeAttachmentSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._attacher = None self._node_name = None @@ -74,7 +79,7 @@ def attacher(self, attacher): :param attacher: The attacher of this V1beta1VolumeAttachmentSpec. # noqa: E501 :type: str """ - if attacher is None: + if self.local_vars_configuration.client_side_validation and attacher is None: # noqa: E501 raise ValueError("Invalid value for `attacher`, must not be `None`") # noqa: E501 self._attacher = attacher @@ -99,7 +104,7 @@ def node_name(self, node_name): :param node_name: The node_name of this V1beta1VolumeAttachmentSpec. # noqa: E501 :type: str """ - if node_name is None: + if self.local_vars_configuration.client_side_validation and node_name is None: # noqa: E501 raise ValueError("Invalid value for `node_name`, must not be `None`") # noqa: E501 self._node_name = node_name @@ -122,7 +127,7 @@ def source(self, source): :param source: The source of this V1beta1VolumeAttachmentSpec. # noqa: E501 :type: V1beta1VolumeAttachmentSource """ - if source is None: + if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501 raise ValueError("Invalid value for `source`, must not be `None`") # noqa: E501 self._source = source @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1VolumeAttachmentSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1VolumeAttachmentSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_volume_attachment_status.py b/kubernetes/client/models/v1beta1_volume_attachment_status.py index d71a926780..f4214bc9e6 100644 --- a/kubernetes/client/models/v1beta1_volume_attachment_status.py +++ b/kubernetes/client/models/v1beta1_volume_attachment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1VolumeAttachmentStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta1VolumeAttachmentStatus(object): 'detach_error': 'detachError' } - def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None): # noqa: E501 + def __init__(self, attach_error=None, attached=None, attachment_metadata=None, detach_error=None, local_vars_configuration=None): # noqa: E501 """V1beta1VolumeAttachmentStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._attach_error = None self._attached = None @@ -102,7 +107,7 @@ def attached(self, attached): :param attached: The attached of this V1beta1VolumeAttachmentStatus. # noqa: E501 :type: bool """ - if attached is None: + if self.local_vars_configuration.client_side_validation and attached is None: # noqa: E501 raise ValueError("Invalid value for `attached`, must not be `None`") # noqa: E501 self._attached = attached @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1VolumeAttachmentStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1VolumeAttachmentStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_volume_error.py b/kubernetes/client/models/v1beta1_volume_error.py index 2f51583a0f..6701cb75bc 100644 --- a/kubernetes/client/models/v1beta1_volume_error.py +++ b/kubernetes/client/models/v1beta1_volume_error.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1VolumeError(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta1VolumeError(object): 'time': 'time' } - def __init__(self, message=None, time=None): # noqa: E501 + def __init__(self, message=None, time=None, local_vars_configuration=None): # noqa: E501 """V1beta1VolumeError - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._message = None self._time = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1VolumeError): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1VolumeError): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta1_volume_node_resources.py b/kubernetes/client/models/v1beta1_volume_node_resources.py index 860ebab80f..c48a60685f 100644 --- a/kubernetes/client/models/v1beta1_volume_node_resources.py +++ b/kubernetes/client/models/v1beta1_volume_node_resources.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta1VolumeNodeResources(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta1VolumeNodeResources(object): 'count': 'count' } - def __init__(self, count=None): # noqa: E501 + def __init__(self, count=None, local_vars_configuration=None): # noqa: E501 """V1beta1VolumeNodeResources - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._count = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta1VolumeNodeResources): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta1VolumeNodeResources): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_controller_revision.py b/kubernetes/client/models/v1beta2_controller_revision.py index 6f38668f20..9c49790ee4 100644 --- a/kubernetes/client/models/v1beta2_controller_revision.py +++ b/kubernetes/client/models/v1beta2_controller_revision.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2ControllerRevision(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2ControllerRevision(object): 'revision': 'revision' } - def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None): # noqa: E501 + def __init__(self, api_version=None, data=None, kind=None, metadata=None, revision=None, local_vars_configuration=None): # noqa: E501 """V1beta2ControllerRevision - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._data = None @@ -176,7 +181,7 @@ def revision(self, revision): :param revision: The revision of this V1beta2ControllerRevision. # noqa: E501 :type: int """ - if revision is None: + if self.local_vars_configuration.client_side_validation and revision is None: # noqa: E501 raise ValueError("Invalid value for `revision`, must not be `None`") # noqa: E501 self._revision = revision @@ -218,8 +223,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2ControllerRevision): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2ControllerRevision): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_controller_revision_list.py b/kubernetes/client/models/v1beta2_controller_revision_list.py index f2805644cd..6b68ed673c 100644 --- a/kubernetes/client/models/v1beta2_controller_revision_list.py +++ b/kubernetes/client/models/v1beta2_controller_revision_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2ControllerRevisionList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta2ControllerRevisionList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta2ControllerRevisionList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta2ControllerRevisionList. # noqa: E501 :type: list[V1beta2ControllerRevision] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2ControllerRevisionList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2ControllerRevisionList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_daemon_set.py b/kubernetes/client/models/v1beta2_daemon_set.py index cd36bbff31..7c0ca5bebc 100644 --- a/kubernetes/client/models/v1beta2_daemon_set.py +++ b/kubernetes/client/models/v1beta2_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DaemonSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2DaemonSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta2DaemonSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DaemonSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DaemonSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_daemon_set_condition.py b/kubernetes/client/models/v1beta2_daemon_set_condition.py index 8195b720a3..eab3115579 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_condition.py +++ b/kubernetes/client/models/v1beta2_daemon_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DaemonSetCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2DaemonSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta2DaemonSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1beta2DaemonSetCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1beta2DaemonSetCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DaemonSetCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DaemonSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_daemon_set_list.py b/kubernetes/client/models/v1beta2_daemon_set_list.py index b6262a0c91..34248866c0 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_list.py +++ b/kubernetes/client/models/v1beta2_daemon_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DaemonSetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta2DaemonSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta2DaemonSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta2DaemonSetList. # noqa: E501 :type: list[V1beta2DaemonSet] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DaemonSetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DaemonSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_daemon_set_spec.py b/kubernetes/client/models/v1beta2_daemon_set_spec.py index 359c8d4b9e..5dd04aef73 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_spec.py +++ b/kubernetes/client/models/v1beta2_daemon_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DaemonSetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2DaemonSetSpec(object): 'update_strategy': 'updateStrategy' } - def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, update_strategy=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, revision_history_limit=None, selector=None, template=None, update_strategy=None, local_vars_configuration=None): # noqa: E501 """V1beta2DaemonSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._revision_history_limit = None @@ -129,7 +134,7 @@ def selector(self, selector): :param selector: The selector of this V1beta2DaemonSetSpec. # noqa: E501 :type: V1LabelSelector """ - if selector is None: + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @@ -152,7 +157,7 @@ def template(self, template): :param template: The template of this V1beta2DaemonSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -215,8 +220,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DaemonSetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DaemonSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_daemon_set_status.py b/kubernetes/client/models/v1beta2_daemon_set_status.py index f9831c2ea4..05246a7452 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_status.py +++ b/kubernetes/client/models/v1beta2_daemon_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DaemonSetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -56,8 +58,11 @@ class V1beta2DaemonSetStatus(object): 'updated_number_scheduled': 'updatedNumberScheduled' } - def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None): # noqa: E501 + def __init__(self, collision_count=None, conditions=None, current_number_scheduled=None, desired_number_scheduled=None, number_available=None, number_misscheduled=None, number_ready=None, number_unavailable=None, observed_generation=None, updated_number_scheduled=None, local_vars_configuration=None): # noqa: E501 """V1beta2DaemonSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._collision_count = None self._conditions = None @@ -154,7 +159,7 @@ def current_number_scheduled(self, current_number_scheduled): :param current_number_scheduled: The current_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ - if current_number_scheduled is None: + if self.local_vars_configuration.client_side_validation and current_number_scheduled is None: # noqa: E501 raise ValueError("Invalid value for `current_number_scheduled`, must not be `None`") # noqa: E501 self._current_number_scheduled = current_number_scheduled @@ -179,7 +184,7 @@ def desired_number_scheduled(self, desired_number_scheduled): :param desired_number_scheduled: The desired_number_scheduled of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ - if desired_number_scheduled is None: + if self.local_vars_configuration.client_side_validation and desired_number_scheduled is None: # noqa: E501 raise ValueError("Invalid value for `desired_number_scheduled`, must not be `None`") # noqa: E501 self._desired_number_scheduled = desired_number_scheduled @@ -227,7 +232,7 @@ def number_misscheduled(self, number_misscheduled): :param number_misscheduled: The number_misscheduled of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ - if number_misscheduled is None: + if self.local_vars_configuration.client_side_validation and number_misscheduled is None: # noqa: E501 raise ValueError("Invalid value for `number_misscheduled`, must not be `None`") # noqa: E501 self._number_misscheduled = number_misscheduled @@ -252,7 +257,7 @@ def number_ready(self, number_ready): :param number_ready: The number_ready of this V1beta2DaemonSetStatus. # noqa: E501 :type: int """ - if number_ready is None: + if self.local_vars_configuration.client_side_validation and number_ready is None: # noqa: E501 raise ValueError("Invalid value for `number_ready`, must not be `None`") # noqa: E501 self._number_ready = number_ready @@ -363,8 +368,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DaemonSetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DaemonSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_daemon_set_update_strategy.py b/kubernetes/client/models/v1beta2_daemon_set_update_strategy.py index df0be6491b..2c746040c1 100644 --- a/kubernetes/client/models/v1beta2_daemon_set_update_strategy.py +++ b/kubernetes/client/models/v1beta2_daemon_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DaemonSetUpdateStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta2DaemonSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta2DaemonSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DaemonSetUpdateStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DaemonSetUpdateStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_deployment.py b/kubernetes/client/models/v1beta2_deployment.py index f0c44e790c..161e2e8fe8 100644 --- a/kubernetes/client/models/v1beta2_deployment.py +++ b/kubernetes/client/models/v1beta2_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2Deployment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2Deployment(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta2Deployment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2Deployment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2Deployment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_deployment_condition.py b/kubernetes/client/models/v1beta2_deployment_condition.py index 43d0958ea0..4ae16f3e96 100644 --- a/kubernetes/client/models/v1beta2_deployment_condition.py +++ b/kubernetes/client/models/v1beta2_deployment_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DeploymentCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta2DeploymentCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, last_update_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta2DeploymentCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._last_update_time = None @@ -182,7 +187,7 @@ def status(self, status): :param status: The status of this V1beta2DeploymentCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -207,7 +212,7 @@ def type(self, type): :param type: The type of this V1beta2DeploymentCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -249,8 +254,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DeploymentCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DeploymentCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_deployment_list.py b/kubernetes/client/models/v1beta2_deployment_list.py index cbf9241255..cbfd4e15d7 100644 --- a/kubernetes/client/models/v1beta2_deployment_list.py +++ b/kubernetes/client/models/v1beta2_deployment_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DeploymentList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta2DeploymentList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta2DeploymentList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta2DeploymentList. # noqa: E501 :type: list[V1beta2Deployment] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DeploymentList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DeploymentList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_deployment_spec.py b/kubernetes/client/models/v1beta2_deployment_spec.py index eb23f7a5b8..f2d49d3165 100644 --- a/kubernetes/client/models/v1beta2_deployment_spec.py +++ b/kubernetes/client/models/v1beta2_deployment_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DeploymentSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1beta2DeploymentSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, paused=None, progress_deadline_seconds=None, replicas=None, revision_history_limit=None, selector=None, strategy=None, template=None, local_vars_configuration=None): # noqa: E501 """V1beta2DeploymentSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._paused = None @@ -213,7 +218,7 @@ def selector(self, selector): :param selector: The selector of this V1beta2DeploymentSpec. # noqa: E501 :type: V1LabelSelector """ - if selector is None: + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @@ -257,7 +262,7 @@ def template(self, template): :param template: The template of this V1beta2DeploymentSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -299,8 +304,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DeploymentSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DeploymentSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_deployment_status.py b/kubernetes/client/models/v1beta2_deployment_status.py index cc5845b682..39f2511716 100644 --- a/kubernetes/client/models/v1beta2_deployment_status.py +++ b/kubernetes/client/models/v1beta2_deployment_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DeploymentStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1beta2DeploymentStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None): # noqa: E501 + def __init__(self, available_replicas=None, collision_count=None, conditions=None, observed_generation=None, ready_replicas=None, replicas=None, unavailable_replicas=None, updated_replicas=None, local_vars_configuration=None): # noqa: E501 """V1beta2DeploymentStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._available_replicas = None self._collision_count = None @@ -303,8 +308,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DeploymentStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DeploymentStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_deployment_strategy.py b/kubernetes/client/models/v1beta2_deployment_strategy.py index 7d6880125a..5764d7c654 100644 --- a/kubernetes/client/models/v1beta2_deployment_strategy.py +++ b/kubernetes/client/models/v1beta2_deployment_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2DeploymentStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta2DeploymentStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta2DeploymentStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2DeploymentStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2DeploymentStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_replica_set.py b/kubernetes/client/models/v1beta2_replica_set.py index 5f01a5a6a0..c30dc47c30 100644 --- a/kubernetes/client/models/v1beta2_replica_set.py +++ b/kubernetes/client/models/v1beta2_replica_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2ReplicaSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2ReplicaSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta2ReplicaSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2ReplicaSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2ReplicaSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_replica_set_condition.py b/kubernetes/client/models/v1beta2_replica_set_condition.py index 2f79177aaf..4f719c31ca 100644 --- a/kubernetes/client/models/v1beta2_replica_set_condition.py +++ b/kubernetes/client/models/v1beta2_replica_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2ReplicaSetCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2ReplicaSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta2ReplicaSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1beta2ReplicaSetCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1beta2ReplicaSetCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2ReplicaSetCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2ReplicaSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_replica_set_list.py b/kubernetes/client/models/v1beta2_replica_set_list.py index ca0e889bdf..714bffe55d 100644 --- a/kubernetes/client/models/v1beta2_replica_set_list.py +++ b/kubernetes/client/models/v1beta2_replica_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2ReplicaSetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta2ReplicaSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta2ReplicaSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V1beta2ReplicaSetList. # noqa: E501 :type: list[V1beta2ReplicaSet] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2ReplicaSetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2ReplicaSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_replica_set_spec.py b/kubernetes/client/models/v1beta2_replica_set_spec.py index 11b6cae183..19af3f0e0d 100644 --- a/kubernetes/client/models/v1beta2_replica_set_spec.py +++ b/kubernetes/client/models/v1beta2_replica_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2ReplicaSetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta2ReplicaSetSpec(object): 'template': 'template' } - def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None): # noqa: E501 + def __init__(self, min_ready_seconds=None, replicas=None, selector=None, template=None, local_vars_configuration=None): # noqa: E501 """V1beta2ReplicaSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._min_ready_seconds = None self._replicas = None @@ -125,7 +130,7 @@ def selector(self, selector): :param selector: The selector of this V1beta2ReplicaSetSpec. # noqa: E501 :type: V1LabelSelector """ - if selector is None: + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2ReplicaSetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2ReplicaSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_replica_set_status.py b/kubernetes/client/models/v1beta2_replica_set_status.py index 29cde5cbe1..2322bb7462 100644 --- a/kubernetes/client/models/v1beta2_replica_set_status.py +++ b/kubernetes/client/models/v1beta2_replica_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2ReplicaSetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V1beta2ReplicaSetStatus(object): 'replicas': 'replicas' } - def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None): # noqa: E501 + def __init__(self, available_replicas=None, conditions=None, fully_labeled_replicas=None, observed_generation=None, ready_replicas=None, replicas=None, local_vars_configuration=None): # noqa: E501 """V1beta2ReplicaSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._available_replicas = None self._conditions = None @@ -206,7 +211,7 @@ def replicas(self, replicas): :param replicas: The replicas of this V1beta2ReplicaSetStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -248,8 +253,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2ReplicaSetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2ReplicaSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_rolling_update_daemon_set.py b/kubernetes/client/models/v1beta2_rolling_update_daemon_set.py index ce618ec0d8..4a5c9778db 100644 --- a/kubernetes/client/models/v1beta2_rolling_update_daemon_set.py +++ b/kubernetes/client/models/v1beta2_rolling_update_daemon_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2RollingUpdateDaemonSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta2RollingUpdateDaemonSet(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_unavailable=None): # noqa: E501 + def __init__(self, max_unavailable=None, local_vars_configuration=None): # noqa: E501 """V1beta2RollingUpdateDaemonSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_unavailable = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2RollingUpdateDaemonSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2RollingUpdateDaemonSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_rolling_update_deployment.py b/kubernetes/client/models/v1beta2_rolling_update_deployment.py index 8c2720cce4..3870950062 100644 --- a/kubernetes/client/models/v1beta2_rolling_update_deployment.py +++ b/kubernetes/client/models/v1beta2_rolling_update_deployment.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2RollingUpdateDeployment(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta2RollingUpdateDeployment(object): 'max_unavailable': 'maxUnavailable' } - def __init__(self, max_surge=None, max_unavailable=None): # noqa: E501 + def __init__(self, max_surge=None, max_unavailable=None, local_vars_configuration=None): # noqa: E501 """V1beta2RollingUpdateDeployment - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_surge = None self._max_unavailable = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2RollingUpdateDeployment): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2RollingUpdateDeployment): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_rolling_update_stateful_set_strategy.py b/kubernetes/client/models/v1beta2_rolling_update_stateful_set_strategy.py index 7b5a949a1e..873ccb3e1a 100644 --- a/kubernetes/client/models/v1beta2_rolling_update_stateful_set_strategy.py +++ b/kubernetes/client/models/v1beta2_rolling_update_stateful_set_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2RollingUpdateStatefulSetStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta2RollingUpdateStatefulSetStrategy(object): 'partition': 'partition' } - def __init__(self, partition=None): # noqa: E501 + def __init__(self, partition=None, local_vars_configuration=None): # noqa: E501 """V1beta2RollingUpdateStatefulSetStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._partition = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2RollingUpdateStatefulSetStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2RollingUpdateStatefulSetStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_scale.py b/kubernetes/client/models/v1beta2_scale.py index d06add6c1b..041fb765ef 100644 --- a/kubernetes/client/models/v1beta2_scale.py +++ b/kubernetes/client/models/v1beta2_scale.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2Scale(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2Scale(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta2Scale - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2Scale): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2Scale): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_scale_spec.py b/kubernetes/client/models/v1beta2_scale_spec.py index 3a35fdfadb..3d183c5cd2 100644 --- a/kubernetes/client/models/v1beta2_scale_spec.py +++ b/kubernetes/client/models/v1beta2_scale_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2ScaleSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -38,8 +40,11 @@ class V1beta2ScaleSpec(object): 'replicas': 'replicas' } - def __init__(self, replicas=None): # noqa: E501 + def __init__(self, replicas=None, local_vars_configuration=None): # noqa: E501 """V1beta2ScaleSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._replicas = None self.discriminator = None @@ -107,8 +112,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2ScaleSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2ScaleSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_scale_status.py b/kubernetes/client/models/v1beta2_scale_status.py index acebb9e408..ceea387a5e 100644 --- a/kubernetes/client/models/v1beta2_scale_status.py +++ b/kubernetes/client/models/v1beta2_scale_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2ScaleStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V1beta2ScaleStatus(object): 'target_selector': 'targetSelector' } - def __init__(self, replicas=None, selector=None, target_selector=None): # noqa: E501 + def __init__(self, replicas=None, selector=None, target_selector=None, local_vars_configuration=None): # noqa: E501 """V1beta2ScaleStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._replicas = None self._selector = None @@ -76,7 +81,7 @@ def replicas(self, replicas): :param replicas: The replicas of this V1beta2ScaleStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2ScaleStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2ScaleStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_stateful_set.py b/kubernetes/client/models/v1beta2_stateful_set.py index 01ef791749..e0a3359618 100644 --- a/kubernetes/client/models/v1beta2_stateful_set.py +++ b/kubernetes/client/models/v1beta2_stateful_set.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2StatefulSet(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2StatefulSet(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V1beta2StatefulSet - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2StatefulSet): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2StatefulSet): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_stateful_set_condition.py b/kubernetes/client/models/v1beta2_stateful_set_condition.py index 3b9517acc6..bb7057b96f 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_condition.py +++ b/kubernetes/client/models/v1beta2_stateful_set_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2StatefulSetCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V1beta2StatefulSetCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta2StatefulSetCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V1beta2StatefulSetCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V1beta2StatefulSetCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2StatefulSetCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2StatefulSetCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_stateful_set_list.py b/kubernetes/client/models/v1beta2_stateful_set_list.py index c1a3780a45..d5356d760b 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_list.py +++ b/kubernetes/client/models/v1beta2_stateful_set_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2StatefulSetList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V1beta2StatefulSetList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V1beta2StatefulSetList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -102,7 +107,7 @@ def items(self, items): :param items: The items of this V1beta2StatefulSetList. # noqa: E501 :type: list[V1beta2StatefulSet] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -188,8 +193,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2StatefulSetList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2StatefulSetList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_stateful_set_spec.py b/kubernetes/client/models/v1beta2_stateful_set_spec.py index f87ca5302c..96191c3246 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_spec.py +++ b/kubernetes/client/models/v1beta2_stateful_set_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2StatefulSetSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -52,8 +54,11 @@ class V1beta2StatefulSetSpec(object): 'volume_claim_templates': 'volumeClaimTemplates' } - def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None): # noqa: E501 + def __init__(self, pod_management_policy=None, replicas=None, revision_history_limit=None, selector=None, service_name=None, template=None, update_strategy=None, volume_claim_templates=None, local_vars_configuration=None): # noqa: E501 """V1beta2StatefulSetSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._pod_management_policy = None self._replicas = None @@ -166,7 +171,7 @@ def selector(self, selector): :param selector: The selector of this V1beta2StatefulSetSpec. # noqa: E501 :type: V1LabelSelector """ - if selector is None: + if self.local_vars_configuration.client_side_validation and selector is None: # noqa: E501 raise ValueError("Invalid value for `selector`, must not be `None`") # noqa: E501 self._selector = selector @@ -191,7 +196,7 @@ def service_name(self, service_name): :param service_name: The service_name of this V1beta2StatefulSetSpec. # noqa: E501 :type: str """ - if service_name is None: + if self.local_vars_configuration.client_side_validation and service_name is None: # noqa: E501 raise ValueError("Invalid value for `service_name`, must not be `None`") # noqa: E501 self._service_name = service_name @@ -214,7 +219,7 @@ def template(self, template): :param template: The template of this V1beta2StatefulSetSpec. # noqa: E501 :type: V1PodTemplateSpec """ - if template is None: + if self.local_vars_configuration.client_side_validation and template is None: # noqa: E501 raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 self._template = template @@ -300,8 +305,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2StatefulSetSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2StatefulSetSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_stateful_set_status.py b/kubernetes/client/models/v1beta2_stateful_set_status.py index 5c18eb01e0..e380ae5f69 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_status.py +++ b/kubernetes/client/models/v1beta2_stateful_set_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2StatefulSetStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -54,8 +56,11 @@ class V1beta2StatefulSetStatus(object): 'updated_replicas': 'updatedReplicas' } - def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None): # noqa: E501 + def __init__(self, collision_count=None, conditions=None, current_replicas=None, current_revision=None, observed_generation=None, ready_replicas=None, replicas=None, update_revision=None, updated_replicas=None, local_vars_configuration=None): # noqa: E501 """V1beta2StatefulSetStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._collision_count = None self._conditions = None @@ -244,7 +249,7 @@ def replicas(self, replicas): :param replicas: The replicas of this V1beta2StatefulSetStatus. # noqa: E501 :type: int """ - if replicas is None: + if self.local_vars_configuration.client_side_validation and replicas is None: # noqa: E501 raise ValueError("Invalid value for `replicas`, must not be `None`") # noqa: E501 self._replicas = replicas @@ -332,8 +337,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2StatefulSetStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2StatefulSetStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v1beta2_stateful_set_update_strategy.py b/kubernetes/client/models/v1beta2_stateful_set_update_strategy.py index 9f38bcc228..4c9410fd61 100644 --- a/kubernetes/client/models/v1beta2_stateful_set_update_strategy.py +++ b/kubernetes/client/models/v1beta2_stateful_set_update_strategy.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V1beta2StatefulSetUpdateStrategy(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V1beta2StatefulSetUpdateStrategy(object): 'type': 'type' } - def __init__(self, rolling_update=None, type=None): # noqa: E501 + def __init__(self, rolling_update=None, type=None, local_vars_configuration=None): # noqa: E501 """V1beta2StatefulSetUpdateStrategy - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._rolling_update = None self._type = None @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V1beta2StatefulSetUpdateStrategy): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V1beta2StatefulSetUpdateStrategy): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2alpha1_cron_job.py b/kubernetes/client/models/v2alpha1_cron_job.py index fa97eef5ba..e6f6108cd4 100644 --- a/kubernetes/client/models/v2alpha1_cron_job.py +++ b/kubernetes/client/models/v2alpha1_cron_job.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2alpha1CronJob(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2alpha1CronJob(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V2alpha1CronJob - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V2alpha1CronJob): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2alpha1CronJob): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2alpha1_cron_job_list.py b/kubernetes/client/models/v2alpha1_cron_job_list.py index 8c4684399f..cb9844297a 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_list.py +++ b/kubernetes/client/models/v2alpha1_cron_job_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2alpha1CronJobList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V2alpha1CronJobList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V2alpha1CronJobList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V2alpha1CronJobList. # noqa: E501 :type: list[V2alpha1CronJob] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V2alpha1CronJobList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2alpha1CronJobList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2alpha1_cron_job_spec.py b/kubernetes/client/models/v2alpha1_cron_job_spec.py index ab8bc91b4a..aaaf34b528 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_spec.py +++ b/kubernetes/client/models/v2alpha1_cron_job_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2alpha1CronJobSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -50,8 +52,11 @@ class V2alpha1CronJobSpec(object): 'suspend': 'suspend' } - def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None): # noqa: E501 + def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_template=None, schedule=None, starting_deadline_seconds=None, successful_jobs_history_limit=None, suspend=None, local_vars_configuration=None): # noqa: E501 """V2alpha1CronJobSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._concurrency_policy = None self._failed_jobs_history_limit = None @@ -139,7 +144,7 @@ def job_template(self, job_template): :param job_template: The job_template of this V2alpha1CronJobSpec. # noqa: E501 :type: V2alpha1JobTemplateSpec """ - if job_template is None: + if self.local_vars_configuration.client_side_validation and job_template is None: # noqa: E501 raise ValueError("Invalid value for `job_template`, must not be `None`") # noqa: E501 self._job_template = job_template @@ -164,7 +169,7 @@ def schedule(self, schedule): :param schedule: The schedule of this V2alpha1CronJobSpec. # noqa: E501 :type: str """ - if schedule is None: + if self.local_vars_configuration.client_side_validation and schedule is None: # noqa: E501 raise ValueError("Invalid value for `schedule`, must not be `None`") # noqa: E501 self._schedule = schedule @@ -275,8 +280,11 @@ def __eq__(self, other): if not isinstance(other, V2alpha1CronJobSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2alpha1CronJobSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2alpha1_cron_job_status.py b/kubernetes/client/models/v2alpha1_cron_job_status.py index e1a66c1f6f..56eec38a6d 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_status.py +++ b/kubernetes/client/models/v2alpha1_cron_job_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2alpha1CronJobStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V2alpha1CronJobStatus(object): 'last_schedule_time': 'lastScheduleTime' } - def __init__(self, active=None, last_schedule_time=None): # noqa: E501 + def __init__(self, active=None, last_schedule_time=None, local_vars_configuration=None): # noqa: E501 """V2alpha1CronJobStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._active = None self._last_schedule_time = None @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V2alpha1CronJobStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2alpha1CronJobStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2alpha1_job_template_spec.py b/kubernetes/client/models/v2alpha1_job_template_spec.py index 526fe11266..d48f33f8ec 100644 --- a/kubernetes/client/models/v2alpha1_job_template_spec.py +++ b/kubernetes/client/models/v2alpha1_job_template_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2alpha1JobTemplateSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V2alpha1JobTemplateSpec(object): 'spec': 'spec' } - def __init__(self, metadata=None, spec=None): # noqa: E501 + def __init__(self, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501 """V2alpha1JobTemplateSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._metadata = None self._spec = None @@ -131,8 +136,11 @@ def __eq__(self, other): if not isinstance(other, V2alpha1JobTemplateSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2alpha1JobTemplateSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_cross_version_object_reference.py b/kubernetes/client/models/v2beta1_cross_version_object_reference.py index 7737392623..1a25045dd3 100644 --- a/kubernetes/client/models/v2beta1_cross_version_object_reference.py +++ b/kubernetes/client/models/v2beta1_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1CrossVersionObjectReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V2beta1CrossVersionObjectReference(object): 'name': 'name' } - def __init__(self, api_version=None, kind=None, name=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 """V2beta1CrossVersionObjectReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -98,7 +103,7 @@ def kind(self, kind): :param kind: The kind of this V2beta1CrossVersionObjectReference. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -123,7 +128,7 @@ def name(self, name): :param name: The name of this V2beta1CrossVersionObjectReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1CrossVersionObjectReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1CrossVersionObjectReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_external_metric_source.py b/kubernetes/client/models/v2beta1_external_metric_source.py index 18eff71e2e..286ea77a6b 100644 --- a/kubernetes/client/models/v2beta1_external_metric_source.py +++ b/kubernetes/client/models/v2beta1_external_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1ExternalMetricSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V2beta1ExternalMetricSource(object): 'target_value': 'targetValue' } - def __init__(self, metric_name=None, metric_selector=None, target_average_value=None, target_value=None): # noqa: E501 + def __init__(self, metric_name=None, metric_selector=None, target_average_value=None, target_value=None, local_vars_configuration=None): # noqa: E501 """V2beta1ExternalMetricSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._metric_name = None self._metric_selector = None @@ -81,7 +86,7 @@ def metric_name(self, metric_name): :param metric_name: The metric_name of this V2beta1ExternalMetricSource. # noqa: E501 :type: str """ - if metric_name is None: + if self.local_vars_configuration.client_side_validation and metric_name is None: # noqa: E501 raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1ExternalMetricSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1ExternalMetricSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_external_metric_status.py b/kubernetes/client/models/v2beta1_external_metric_status.py index 4998976a33..570efae2e0 100644 --- a/kubernetes/client/models/v2beta1_external_metric_status.py +++ b/kubernetes/client/models/v2beta1_external_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1ExternalMetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V2beta1ExternalMetricStatus(object): 'metric_selector': 'metricSelector' } - def __init__(self, current_average_value=None, current_value=None, metric_name=None, metric_selector=None): # noqa: E501 + def __init__(self, current_average_value=None, current_value=None, metric_name=None, metric_selector=None, local_vars_configuration=None): # noqa: E501 """V2beta1ExternalMetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._current_average_value = None self._current_value = None @@ -103,7 +108,7 @@ def current_value(self, current_value): :param current_value: The current_value of this V2beta1ExternalMetricStatus. # noqa: E501 :type: str """ - if current_value is None: + if self.local_vars_configuration.client_side_validation and current_value is None: # noqa: E501 raise ValueError("Invalid value for `current_value`, must not be `None`") # noqa: E501 self._current_value = current_value @@ -128,7 +133,7 @@ def metric_name(self, metric_name): :param metric_name: The metric_name of this V2beta1ExternalMetricStatus. # noqa: E501 :type: str """ - if metric_name is None: + if self.local_vars_configuration.client_side_validation and metric_name is None: # noqa: E501 raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1ExternalMetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1ExternalMetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py index 43f3e56019..428bed8fb9 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1HorizontalPodAutoscaler(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta1HorizontalPodAutoscaler(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V2beta1HorizontalPodAutoscaler - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1HorizontalPodAutoscaler): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1HorizontalPodAutoscaler): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_condition.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_condition.py index b1845163d1..a58a3ed69c 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_condition.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1HorizontalPodAutoscalerCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta1HorizontalPodAutoscalerCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V2beta1HorizontalPodAutoscalerCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V2beta1HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1HorizontalPodAutoscalerCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1HorizontalPodAutoscalerCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py index 6dfa0556be..35f14b4752 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1HorizontalPodAutoscalerList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V2beta1HorizontalPodAutoscalerList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V2beta1HorizontalPodAutoscalerList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V2beta1HorizontalPodAutoscalerList. # noqa: E501 :type: list[V2beta1HorizontalPodAutoscaler] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1HorizontalPodAutoscalerList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1HorizontalPodAutoscalerList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py index 2a6ab466b3..7d75c9a095 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1HorizontalPodAutoscalerSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V2beta1HorizontalPodAutoscalerSpec(object): 'scale_target_ref': 'scaleTargetRef' } - def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None): # noqa: E501 + def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None, local_vars_configuration=None): # noqa: E501 """V2beta1HorizontalPodAutoscalerSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_replicas = None self._metrics = None @@ -80,7 +85,7 @@ def max_replicas(self, max_replicas): :param max_replicas: The max_replicas of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ - if max_replicas is None: + if self.local_vars_configuration.client_side_validation and max_replicas is None: # noqa: E501 raise ValueError("Invalid value for `max_replicas`, must not be `None`") # noqa: E501 self._max_replicas = max_replicas @@ -149,7 +154,7 @@ def scale_target_ref(self, scale_target_ref): :param scale_target_ref: The scale_target_ref of this V2beta1HorizontalPodAutoscalerSpec. # noqa: E501 :type: V2beta1CrossVersionObjectReference """ - if scale_target_ref is None: + if self.local_vars_configuration.client_side_validation and scale_target_ref is None: # noqa: E501 raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") # noqa: E501 self._scale_target_ref = scale_target_ref @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1HorizontalPodAutoscalerSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1HorizontalPodAutoscalerSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py index bd59e3f22b..1a2c9e5953 100644 --- a/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1HorizontalPodAutoscalerStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V2beta1HorizontalPodAutoscalerStatus(object): 'observed_generation': 'observedGeneration' } - def __init__(self, conditions=None, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): # noqa: E501 + def __init__(self, conditions=None, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None, local_vars_configuration=None): # noqa: E501 """V2beta1HorizontalPodAutoscalerStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._conditions = None self._current_metrics = None @@ -89,7 +94,7 @@ def conditions(self, conditions): :param conditions: The conditions of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :type: list[V2beta1HorizontalPodAutoscalerCondition] """ - if conditions is None: + if self.local_vars_configuration.client_side_validation and conditions is None: # noqa: E501 raise ValueError("Invalid value for `conditions`, must not be `None`") # noqa: E501 self._conditions = conditions @@ -137,7 +142,7 @@ def current_replicas(self, current_replicas): :param current_replicas: The current_replicas of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ - if current_replicas is None: + if self.local_vars_configuration.client_side_validation and current_replicas is None: # noqa: E501 raise ValueError("Invalid value for `current_replicas`, must not be `None`") # noqa: E501 self._current_replicas = current_replicas @@ -162,7 +167,7 @@ def desired_replicas(self, desired_replicas): :param desired_replicas: The desired_replicas of this V2beta1HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ - if desired_replicas is None: + if self.local_vars_configuration.client_side_validation and desired_replicas is None: # noqa: E501 raise ValueError("Invalid value for `desired_replicas`, must not be `None`") # noqa: E501 self._desired_replicas = desired_replicas @@ -250,8 +255,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1HorizontalPodAutoscalerStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1HorizontalPodAutoscalerStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_metric_spec.py b/kubernetes/client/models/v2beta1_metric_spec.py index 16f81fcfc3..51ebbfa0e9 100644 --- a/kubernetes/client/models/v2beta1_metric_spec.py +++ b/kubernetes/client/models/v2beta1_metric_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1MetricSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta1MetricSpec(object): 'type': 'type' } - def __init__(self, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 + def __init__(self, external=None, object=None, pods=None, resource=None, type=None, local_vars_configuration=None): # noqa: E501 """V2beta1MetricSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._external = None self._object = None @@ -170,7 +175,7 @@ def type(self, type): :param type: The type of this V2beta1MetricSpec. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -212,8 +217,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1MetricSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1MetricSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_metric_status.py b/kubernetes/client/models/v2beta1_metric_status.py index ffb004fa3c..70f6f42b52 100644 --- a/kubernetes/client/models/v2beta1_metric_status.py +++ b/kubernetes/client/models/v2beta1_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1MetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta1MetricStatus(object): 'type': 'type' } - def __init__(self, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 + def __init__(self, external=None, object=None, pods=None, resource=None, type=None, local_vars_configuration=None): # noqa: E501 """V2beta1MetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._external = None self._object = None @@ -170,7 +175,7 @@ def type(self, type): :param type: The type of this V2beta1MetricStatus. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -212,8 +217,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1MetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1MetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_object_metric_source.py b/kubernetes/client/models/v2beta1_object_metric_source.py index 689eb78b39..e1e073001e 100644 --- a/kubernetes/client/models/v2beta1_object_metric_source.py +++ b/kubernetes/client/models/v2beta1_object_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1ObjectMetricSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta1ObjectMetricSource(object): 'target_value': 'targetValue' } - def __init__(self, average_value=None, metric_name=None, selector=None, target=None, target_value=None): # noqa: E501 + def __init__(self, average_value=None, metric_name=None, selector=None, target=None, target_value=None, local_vars_configuration=None): # noqa: E501 """V2beta1ObjectMetricSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._average_value = None self._metric_name = None @@ -107,7 +112,7 @@ def metric_name(self, metric_name): :param metric_name: The metric_name of this V2beta1ObjectMetricSource. # noqa: E501 :type: str """ - if metric_name is None: + if self.local_vars_configuration.client_side_validation and metric_name is None: # noqa: E501 raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @@ -151,7 +156,7 @@ def target(self, target): :param target: The target of this V2beta1ObjectMetricSource. # noqa: E501 :type: V2beta1CrossVersionObjectReference """ - if target is None: + if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target @@ -176,7 +181,7 @@ def target_value(self, target_value): :param target_value: The target_value of this V2beta1ObjectMetricSource. # noqa: E501 :type: str """ - if target_value is None: + if self.local_vars_configuration.client_side_validation and target_value is None: # noqa: E501 raise ValueError("Invalid value for `target_value`, must not be `None`") # noqa: E501 self._target_value = target_value @@ -218,8 +223,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1ObjectMetricSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1ObjectMetricSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_object_metric_status.py b/kubernetes/client/models/v2beta1_object_metric_status.py index 90c0cd8eeb..edcb9d0cf8 100644 --- a/kubernetes/client/models/v2beta1_object_metric_status.py +++ b/kubernetes/client/models/v2beta1_object_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1ObjectMetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta1ObjectMetricStatus(object): 'target': 'target' } - def __init__(self, average_value=None, current_value=None, metric_name=None, selector=None, target=None): # noqa: E501 + def __init__(self, average_value=None, current_value=None, metric_name=None, selector=None, target=None, local_vars_configuration=None): # noqa: E501 """V2beta1ObjectMetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._average_value = None self._current_value = None @@ -107,7 +112,7 @@ def current_value(self, current_value): :param current_value: The current_value of this V2beta1ObjectMetricStatus. # noqa: E501 :type: str """ - if current_value is None: + if self.local_vars_configuration.client_side_validation and current_value is None: # noqa: E501 raise ValueError("Invalid value for `current_value`, must not be `None`") # noqa: E501 self._current_value = current_value @@ -132,7 +137,7 @@ def metric_name(self, metric_name): :param metric_name: The metric_name of this V2beta1ObjectMetricStatus. # noqa: E501 :type: str """ - if metric_name is None: + if self.local_vars_configuration.client_side_validation and metric_name is None: # noqa: E501 raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @@ -176,7 +181,7 @@ def target(self, target): :param target: The target of this V2beta1ObjectMetricStatus. # noqa: E501 :type: V2beta1CrossVersionObjectReference """ - if target is None: + if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target @@ -218,8 +223,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1ObjectMetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1ObjectMetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_pods_metric_source.py b/kubernetes/client/models/v2beta1_pods_metric_source.py index 00e622041b..eb436ca404 100644 --- a/kubernetes/client/models/v2beta1_pods_metric_source.py +++ b/kubernetes/client/models/v2beta1_pods_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1PodsMetricSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V2beta1PodsMetricSource(object): 'target_average_value': 'targetAverageValue' } - def __init__(self, metric_name=None, selector=None, target_average_value=None): # noqa: E501 + def __init__(self, metric_name=None, selector=None, target_average_value=None, local_vars_configuration=None): # noqa: E501 """V2beta1PodsMetricSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._metric_name = None self._selector = None @@ -75,7 +80,7 @@ def metric_name(self, metric_name): :param metric_name: The metric_name of this V2beta1PodsMetricSource. # noqa: E501 :type: str """ - if metric_name is None: + if self.local_vars_configuration.client_side_validation and metric_name is None: # noqa: E501 raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @@ -121,7 +126,7 @@ def target_average_value(self, target_average_value): :param target_average_value: The target_average_value of this V2beta1PodsMetricSource. # noqa: E501 :type: str """ - if target_average_value is None: + if self.local_vars_configuration.client_side_validation and target_average_value is None: # noqa: E501 raise ValueError("Invalid value for `target_average_value`, must not be `None`") # noqa: E501 self._target_average_value = target_average_value @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1PodsMetricSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1PodsMetricSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_pods_metric_status.py b/kubernetes/client/models/v2beta1_pods_metric_status.py index 271a7d5a10..72dcbe723d 100644 --- a/kubernetes/client/models/v2beta1_pods_metric_status.py +++ b/kubernetes/client/models/v2beta1_pods_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1PodsMetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V2beta1PodsMetricStatus(object): 'selector': 'selector' } - def __init__(self, current_average_value=None, metric_name=None, selector=None): # noqa: E501 + def __init__(self, current_average_value=None, metric_name=None, selector=None, local_vars_configuration=None): # noqa: E501 """V2beta1PodsMetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._current_average_value = None self._metric_name = None @@ -75,7 +80,7 @@ def current_average_value(self, current_average_value): :param current_average_value: The current_average_value of this V2beta1PodsMetricStatus. # noqa: E501 :type: str """ - if current_average_value is None: + if self.local_vars_configuration.client_side_validation and current_average_value is None: # noqa: E501 raise ValueError("Invalid value for `current_average_value`, must not be `None`") # noqa: E501 self._current_average_value = current_average_value @@ -100,7 +105,7 @@ def metric_name(self, metric_name): :param metric_name: The metric_name of this V2beta1PodsMetricStatus. # noqa: E501 :type: str """ - if metric_name is None: + if self.local_vars_configuration.client_side_validation and metric_name is None: # noqa: E501 raise ValueError("Invalid value for `metric_name`, must not be `None`") # noqa: E501 self._metric_name = metric_name @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1PodsMetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1PodsMetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_resource_metric_source.py b/kubernetes/client/models/v2beta1_resource_metric_source.py index 9c8d1e1b5b..4ca9a8cbf9 100644 --- a/kubernetes/client/models/v2beta1_resource_metric_source.py +++ b/kubernetes/client/models/v2beta1_resource_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1ResourceMetricSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V2beta1ResourceMetricSource(object): 'target_average_value': 'targetAverageValue' } - def __init__(self, name=None, target_average_utilization=None, target_average_value=None): # noqa: E501 + def __init__(self, name=None, target_average_utilization=None, target_average_value=None, local_vars_configuration=None): # noqa: E501 """V2beta1ResourceMetricSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._target_average_utilization = None @@ -76,7 +81,7 @@ def name(self, name): :param name: The name of this V2beta1ResourceMetricSource. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -164,8 +169,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1ResourceMetricSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1ResourceMetricSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta1_resource_metric_status.py b/kubernetes/client/models/v2beta1_resource_metric_status.py index d7acf69ff4..212fb5df0d 100644 --- a/kubernetes/client/models/v2beta1_resource_metric_status.py +++ b/kubernetes/client/models/v2beta1_resource_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta1ResourceMetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V2beta1ResourceMetricStatus(object): 'name': 'name' } - def __init__(self, current_average_utilization=None, current_average_value=None, name=None): # noqa: E501 + def __init__(self, current_average_utilization=None, current_average_value=None, name=None, local_vars_configuration=None): # noqa: E501 """V2beta1ResourceMetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._current_average_utilization = None self._current_average_value = None @@ -98,7 +103,7 @@ def current_average_value(self, current_average_value): :param current_average_value: The current_average_value of this V2beta1ResourceMetricStatus. # noqa: E501 :type: str """ - if current_average_value is None: + if self.local_vars_configuration.client_side_validation and current_average_value is None: # noqa: E501 raise ValueError("Invalid value for `current_average_value`, must not be `None`") # noqa: E501 self._current_average_value = current_average_value @@ -123,7 +128,7 @@ def name(self, name): :param name: The name of this V2beta1ResourceMetricStatus. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V2beta1ResourceMetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta1ResourceMetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_cross_version_object_reference.py b/kubernetes/client/models/v2beta2_cross_version_object_reference.py index ce9972cb6e..5a42d7ed27 100644 --- a/kubernetes/client/models/v2beta2_cross_version_object_reference.py +++ b/kubernetes/client/models/v2beta2_cross_version_object_reference.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2CrossVersionObjectReference(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V2beta2CrossVersionObjectReference(object): 'name': 'name' } - def __init__(self, api_version=None, kind=None, name=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, name=None, local_vars_configuration=None): # noqa: E501 """V2beta2CrossVersionObjectReference - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -98,7 +103,7 @@ def kind(self, kind): :param kind: The kind of this V2beta2CrossVersionObjectReference. # noqa: E501 :type: str """ - if kind is None: + if self.local_vars_configuration.client_side_validation and kind is None: # noqa: E501 raise ValueError("Invalid value for `kind`, must not be `None`") # noqa: E501 self._kind = kind @@ -123,7 +128,7 @@ def name(self, name): :param name: The name of this V2beta2CrossVersionObjectReference. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -165,8 +170,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2CrossVersionObjectReference): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2CrossVersionObjectReference): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_external_metric_source.py b/kubernetes/client/models/v2beta2_external_metric_source.py index d692a54ba4..f58a3624cc 100644 --- a/kubernetes/client/models/v2beta2_external_metric_source.py +++ b/kubernetes/client/models/v2beta2_external_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2ExternalMetricSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V2beta2ExternalMetricSource(object): 'target': 'target' } - def __init__(self, metric=None, target=None): # noqa: E501 + def __init__(self, metric=None, target=None, local_vars_configuration=None): # noqa: E501 """V2beta2ExternalMetricSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._metric = None self._target = None @@ -68,7 +73,7 @@ def metric(self, metric): :param metric: The metric of this V2beta2ExternalMetricSource. # noqa: E501 :type: V2beta2MetricIdentifier """ - if metric is None: + if self.local_vars_configuration.client_side_validation and metric is None: # noqa: E501 raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric @@ -91,7 +96,7 @@ def target(self, target): :param target: The target of this V2beta2ExternalMetricSource. # noqa: E501 :type: V2beta2MetricTarget """ - if target is None: + if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2ExternalMetricSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2ExternalMetricSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_external_metric_status.py b/kubernetes/client/models/v2beta2_external_metric_status.py index 923f8d95f6..1ec55ff5c4 100644 --- a/kubernetes/client/models/v2beta2_external_metric_status.py +++ b/kubernetes/client/models/v2beta2_external_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2ExternalMetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V2beta2ExternalMetricStatus(object): 'metric': 'metric' } - def __init__(self, current=None, metric=None): # noqa: E501 + def __init__(self, current=None, metric=None, local_vars_configuration=None): # noqa: E501 """V2beta2ExternalMetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._current = None self._metric = None @@ -68,7 +73,7 @@ def current(self, current): :param current: The current of this V2beta2ExternalMetricStatus. # noqa: E501 :type: V2beta2MetricValueStatus """ - if current is None: + if self.local_vars_configuration.client_side_validation and current is None: # noqa: E501 raise ValueError("Invalid value for `current`, must not be `None`") # noqa: E501 self._current = current @@ -91,7 +96,7 @@ def metric(self, metric): :param metric: The metric of this V2beta2ExternalMetricStatus. # noqa: E501 :type: V2beta2MetricIdentifier """ - if metric is None: + if self.local_vars_configuration.client_side_validation and metric is None: # noqa: E501 raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2ExternalMetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2ExternalMetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler.py index 7d716d40fb..8ce4c19bd7 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2HorizontalPodAutoscaler(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta2HorizontalPodAutoscaler(object): 'status': 'status' } - def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): # noqa: E501 + def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501 """V2beta2HorizontalPodAutoscaler - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._kind = None @@ -213,8 +218,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2HorizontalPodAutoscaler): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2HorizontalPodAutoscaler): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_condition.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_condition.py index a2d90bdc4a..644b1a6bed 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_condition.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_condition.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2HorizontalPodAutoscalerCondition(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta2HorizontalPodAutoscalerCondition(object): 'type': 'type' } - def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None): # noqa: E501 + def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501 """V2beta2HorizontalPodAutoscalerCondition - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._last_transition_time = None self._message = None @@ -154,7 +159,7 @@ def status(self, status): :param status: The status of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ - if status is None: + if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501 raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 self._status = status @@ -179,7 +184,7 @@ def type(self, type): :param type: The type of this V2beta2HorizontalPodAutoscalerCondition. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -221,8 +226,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2HorizontalPodAutoscalerCondition): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2HorizontalPodAutoscalerCondition): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_list.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_list.py index a1a82198be..6d8d1ab9ed 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_list.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_list.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2HorizontalPodAutoscalerList(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V2beta2HorizontalPodAutoscalerList(object): 'metadata': 'metadata' } - def __init__(self, api_version=None, items=None, kind=None, metadata=None): # noqa: E501 + def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501 """V2beta2HorizontalPodAutoscalerList - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._api_version = None self._items = None @@ -104,7 +109,7 @@ def items(self, items): :param items: The items of this V2beta2HorizontalPodAutoscalerList. # noqa: E501 :type: list[V2beta2HorizontalPodAutoscaler] """ - if items is None: + if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501 raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501 self._items = items @@ -190,8 +195,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2HorizontalPodAutoscalerList): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2HorizontalPodAutoscalerList): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_spec.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_spec.py index b441f63ee7..20c7ec642d 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_spec.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2HorizontalPodAutoscalerSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V2beta2HorizontalPodAutoscalerSpec(object): 'scale_target_ref': 'scaleTargetRef' } - def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None): # noqa: E501 + def __init__(self, max_replicas=None, metrics=None, min_replicas=None, scale_target_ref=None, local_vars_configuration=None): # noqa: E501 """V2beta2HorizontalPodAutoscalerSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._max_replicas = None self._metrics = None @@ -80,7 +85,7 @@ def max_replicas(self, max_replicas): :param max_replicas: The max_replicas of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :type: int """ - if max_replicas is None: + if self.local_vars_configuration.client_side_validation and max_replicas is None: # noqa: E501 raise ValueError("Invalid value for `max_replicas`, must not be `None`") # noqa: E501 self._max_replicas = max_replicas @@ -149,7 +154,7 @@ def scale_target_ref(self, scale_target_ref): :param scale_target_ref: The scale_target_ref of this V2beta2HorizontalPodAutoscalerSpec. # noqa: E501 :type: V2beta2CrossVersionObjectReference """ - if scale_target_ref is None: + if self.local_vars_configuration.client_side_validation and scale_target_ref is None: # noqa: E501 raise ValueError("Invalid value for `scale_target_ref`, must not be `None`") # noqa: E501 self._scale_target_ref = scale_target_ref @@ -191,8 +196,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2HorizontalPodAutoscalerSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2HorizontalPodAutoscalerSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_status.py index 2716a6961e..f9f12c4ba4 100644 --- a/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v2beta2_horizontal_pod_autoscaler_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2HorizontalPodAutoscalerStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -48,8 +50,11 @@ class V2beta2HorizontalPodAutoscalerStatus(object): 'observed_generation': 'observedGeneration' } - def __init__(self, conditions=None, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None): # noqa: E501 + def __init__(self, conditions=None, current_metrics=None, current_replicas=None, desired_replicas=None, last_scale_time=None, observed_generation=None, local_vars_configuration=None): # noqa: E501 """V2beta2HorizontalPodAutoscalerStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._conditions = None self._current_metrics = None @@ -89,7 +94,7 @@ def conditions(self, conditions): :param conditions: The conditions of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :type: list[V2beta2HorizontalPodAutoscalerCondition] """ - if conditions is None: + if self.local_vars_configuration.client_side_validation and conditions is None: # noqa: E501 raise ValueError("Invalid value for `conditions`, must not be `None`") # noqa: E501 self._conditions = conditions @@ -137,7 +142,7 @@ def current_replicas(self, current_replicas): :param current_replicas: The current_replicas of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ - if current_replicas is None: + if self.local_vars_configuration.client_side_validation and current_replicas is None: # noqa: E501 raise ValueError("Invalid value for `current_replicas`, must not be `None`") # noqa: E501 self._current_replicas = current_replicas @@ -162,7 +167,7 @@ def desired_replicas(self, desired_replicas): :param desired_replicas: The desired_replicas of this V2beta2HorizontalPodAutoscalerStatus. # noqa: E501 :type: int """ - if desired_replicas is None: + if self.local_vars_configuration.client_side_validation and desired_replicas is None: # noqa: E501 raise ValueError("Invalid value for `desired_replicas`, must not be `None`") # noqa: E501 self._desired_replicas = desired_replicas @@ -250,8 +255,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2HorizontalPodAutoscalerStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2HorizontalPodAutoscalerStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_metric_identifier.py b/kubernetes/client/models/v2beta2_metric_identifier.py index 8d2a3b2376..81328197d6 100644 --- a/kubernetes/client/models/v2beta2_metric_identifier.py +++ b/kubernetes/client/models/v2beta2_metric_identifier.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2MetricIdentifier(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V2beta2MetricIdentifier(object): 'selector': 'selector' } - def __init__(self, name=None, selector=None): # noqa: E501 + def __init__(self, name=None, selector=None, local_vars_configuration=None): # noqa: E501 """V2beta2MetricIdentifier - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._selector = None @@ -71,7 +76,7 @@ def name(self, name): :param name: The name of this V2beta2MetricIdentifier. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -134,8 +139,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2MetricIdentifier): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2MetricIdentifier): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_metric_spec.py b/kubernetes/client/models/v2beta2_metric_spec.py index 55d8aac35a..eab3a703d6 100644 --- a/kubernetes/client/models/v2beta2_metric_spec.py +++ b/kubernetes/client/models/v2beta2_metric_spec.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2MetricSpec(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta2MetricSpec(object): 'type': 'type' } - def __init__(self, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 + def __init__(self, external=None, object=None, pods=None, resource=None, type=None, local_vars_configuration=None): # noqa: E501 """V2beta2MetricSpec - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._external = None self._object = None @@ -170,7 +175,7 @@ def type(self, type): :param type: The type of this V2beta2MetricSpec. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -212,8 +217,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2MetricSpec): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2MetricSpec): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_metric_status.py b/kubernetes/client/models/v2beta2_metric_status.py index 44553f1e70..ad4cbec1c8 100644 --- a/kubernetes/client/models/v2beta2_metric_status.py +++ b/kubernetes/client/models/v2beta2_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2MetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -46,8 +48,11 @@ class V2beta2MetricStatus(object): 'type': 'type' } - def __init__(self, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 + def __init__(self, external=None, object=None, pods=None, resource=None, type=None, local_vars_configuration=None): # noqa: E501 """V2beta2MetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._external = None self._object = None @@ -170,7 +175,7 @@ def type(self, type): :param type: The type of this V2beta2MetricStatus. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -212,8 +217,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2MetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2MetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_metric_target.py b/kubernetes/client/models/v2beta2_metric_target.py index d050ed05ae..dc3c2e0f66 100644 --- a/kubernetes/client/models/v2beta2_metric_target.py +++ b/kubernetes/client/models/v2beta2_metric_target.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2MetricTarget(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -44,8 +46,11 @@ class V2beta2MetricTarget(object): 'value': 'value' } - def __init__(self, average_utilization=None, average_value=None, type=None, value=None): # noqa: E501 + def __init__(self, average_utilization=None, average_value=None, type=None, value=None, local_vars_configuration=None): # noqa: E501 """V2beta2MetricTarget - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._average_utilization = None self._average_value = None @@ -127,7 +132,7 @@ def type(self, type): :param type: The type of this V2beta2MetricTarget. # noqa: E501 :type: str """ - if type is None: + if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501 raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 self._type = type @@ -192,8 +197,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2MetricTarget): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2MetricTarget): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_metric_value_status.py b/kubernetes/client/models/v2beta2_metric_value_status.py index 58acca784e..eebed2ed55 100644 --- a/kubernetes/client/models/v2beta2_metric_value_status.py +++ b/kubernetes/client/models/v2beta2_metric_value_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2MetricValueStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V2beta2MetricValueStatus(object): 'value': 'value' } - def __init__(self, average_utilization=None, average_value=None, value=None): # noqa: E501 + def __init__(self, average_utilization=None, average_value=None, value=None, local_vars_configuration=None): # noqa: E501 """V2beta2MetricValueStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._average_utilization = None self._average_value = None @@ -163,8 +168,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2MetricValueStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2MetricValueStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_object_metric_source.py b/kubernetes/client/models/v2beta2_object_metric_source.py index 5750e5b701..f00e46c13b 100644 --- a/kubernetes/client/models/v2beta2_object_metric_source.py +++ b/kubernetes/client/models/v2beta2_object_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2ObjectMetricSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V2beta2ObjectMetricSource(object): 'target': 'target' } - def __init__(self, described_object=None, metric=None, target=None): # noqa: E501 + def __init__(self, described_object=None, metric=None, target=None, local_vars_configuration=None): # noqa: E501 """V2beta2ObjectMetricSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._described_object = None self._metric = None @@ -72,7 +77,7 @@ def described_object(self, described_object): :param described_object: The described_object of this V2beta2ObjectMetricSource. # noqa: E501 :type: V2beta2CrossVersionObjectReference """ - if described_object is None: + if self.local_vars_configuration.client_side_validation and described_object is None: # noqa: E501 raise ValueError("Invalid value for `described_object`, must not be `None`") # noqa: E501 self._described_object = described_object @@ -95,7 +100,7 @@ def metric(self, metric): :param metric: The metric of this V2beta2ObjectMetricSource. # noqa: E501 :type: V2beta2MetricIdentifier """ - if metric is None: + if self.local_vars_configuration.client_side_validation and metric is None: # noqa: E501 raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric @@ -118,7 +123,7 @@ def target(self, target): :param target: The target of this V2beta2ObjectMetricSource. # noqa: E501 :type: V2beta2MetricTarget """ - if target is None: + if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target @@ -160,8 +165,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2ObjectMetricSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2ObjectMetricSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_object_metric_status.py b/kubernetes/client/models/v2beta2_object_metric_status.py index e60b8c7337..2bbfa2de4b 100644 --- a/kubernetes/client/models/v2beta2_object_metric_status.py +++ b/kubernetes/client/models/v2beta2_object_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2ObjectMetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -42,8 +44,11 @@ class V2beta2ObjectMetricStatus(object): 'metric': 'metric' } - def __init__(self, current=None, described_object=None, metric=None): # noqa: E501 + def __init__(self, current=None, described_object=None, metric=None, local_vars_configuration=None): # noqa: E501 """V2beta2ObjectMetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._current = None self._described_object = None @@ -72,7 +77,7 @@ def current(self, current): :param current: The current of this V2beta2ObjectMetricStatus. # noqa: E501 :type: V2beta2MetricValueStatus """ - if current is None: + if self.local_vars_configuration.client_side_validation and current is None: # noqa: E501 raise ValueError("Invalid value for `current`, must not be `None`") # noqa: E501 self._current = current @@ -95,7 +100,7 @@ def described_object(self, described_object): :param described_object: The described_object of this V2beta2ObjectMetricStatus. # noqa: E501 :type: V2beta2CrossVersionObjectReference """ - if described_object is None: + if self.local_vars_configuration.client_side_validation and described_object is None: # noqa: E501 raise ValueError("Invalid value for `described_object`, must not be `None`") # noqa: E501 self._described_object = described_object @@ -118,7 +123,7 @@ def metric(self, metric): :param metric: The metric of this V2beta2ObjectMetricStatus. # noqa: E501 :type: V2beta2MetricIdentifier """ - if metric is None: + if self.local_vars_configuration.client_side_validation and metric is None: # noqa: E501 raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric @@ -160,8 +165,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2ObjectMetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2ObjectMetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_pods_metric_source.py b/kubernetes/client/models/v2beta2_pods_metric_source.py index 22ae67322c..23c8e7e5a6 100644 --- a/kubernetes/client/models/v2beta2_pods_metric_source.py +++ b/kubernetes/client/models/v2beta2_pods_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2PodsMetricSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V2beta2PodsMetricSource(object): 'target': 'target' } - def __init__(self, metric=None, target=None): # noqa: E501 + def __init__(self, metric=None, target=None, local_vars_configuration=None): # noqa: E501 """V2beta2PodsMetricSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._metric = None self._target = None @@ -68,7 +73,7 @@ def metric(self, metric): :param metric: The metric of this V2beta2PodsMetricSource. # noqa: E501 :type: V2beta2MetricIdentifier """ - if metric is None: + if self.local_vars_configuration.client_side_validation and metric is None: # noqa: E501 raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric @@ -91,7 +96,7 @@ def target(self, target): :param target: The target of this V2beta2PodsMetricSource. # noqa: E501 :type: V2beta2MetricTarget """ - if target is None: + if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2PodsMetricSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2PodsMetricSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_pods_metric_status.py b/kubernetes/client/models/v2beta2_pods_metric_status.py index 40507d1ee4..c10589c13c 100644 --- a/kubernetes/client/models/v2beta2_pods_metric_status.py +++ b/kubernetes/client/models/v2beta2_pods_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2PodsMetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V2beta2PodsMetricStatus(object): 'metric': 'metric' } - def __init__(self, current=None, metric=None): # noqa: E501 + def __init__(self, current=None, metric=None, local_vars_configuration=None): # noqa: E501 """V2beta2PodsMetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._current = None self._metric = None @@ -68,7 +73,7 @@ def current(self, current): :param current: The current of this V2beta2PodsMetricStatus. # noqa: E501 :type: V2beta2MetricValueStatus """ - if current is None: + if self.local_vars_configuration.client_side_validation and current is None: # noqa: E501 raise ValueError("Invalid value for `current`, must not be `None`") # noqa: E501 self._current = current @@ -91,7 +96,7 @@ def metric(self, metric): :param metric: The metric of this V2beta2PodsMetricStatus. # noqa: E501 :type: V2beta2MetricIdentifier """ - if metric is None: + if self.local_vars_configuration.client_side_validation and metric is None: # noqa: E501 raise ValueError("Invalid value for `metric`, must not be `None`") # noqa: E501 self._metric = metric @@ -133,8 +138,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2PodsMetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2PodsMetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_resource_metric_source.py b/kubernetes/client/models/v2beta2_resource_metric_source.py index 89d6d967e4..3b2733cffb 100644 --- a/kubernetes/client/models/v2beta2_resource_metric_source.py +++ b/kubernetes/client/models/v2beta2_resource_metric_source.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2ResourceMetricSource(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V2beta2ResourceMetricSource(object): 'target': 'target' } - def __init__(self, name=None, target=None): # noqa: E501 + def __init__(self, name=None, target=None, local_vars_configuration=None): # noqa: E501 """V2beta2ResourceMetricSource - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._name = None self._target = None @@ -70,7 +75,7 @@ def name(self, name): :param name: The name of this V2beta2ResourceMetricSource. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -93,7 +98,7 @@ def target(self, target): :param target: The target of this V2beta2ResourceMetricSource. # noqa: E501 :type: V2beta2MetricTarget """ - if target is None: + if self.local_vars_configuration.client_side_validation and target is None: # noqa: E501 raise ValueError("Invalid value for `target`, must not be `None`") # noqa: E501 self._target = target @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2ResourceMetricSource): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2ResourceMetricSource): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/v2beta2_resource_metric_status.py b/kubernetes/client/models/v2beta2_resource_metric_status.py index a68b2f73bc..1cecb3139d 100644 --- a/kubernetes/client/models/v2beta2_resource_metric_status.py +++ b/kubernetes/client/models/v2beta2_resource_metric_status.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class V2beta2ResourceMetricStatus(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -40,8 +42,11 @@ class V2beta2ResourceMetricStatus(object): 'name': 'name' } - def __init__(self, current=None, name=None): # noqa: E501 + def __init__(self, current=None, name=None, local_vars_configuration=None): # noqa: E501 """V2beta2ResourceMetricStatus - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._current = None self._name = None @@ -68,7 +73,7 @@ def current(self, current): :param current: The current of this V2beta2ResourceMetricStatus. # noqa: E501 :type: V2beta2MetricValueStatus """ - if current is None: + if self.local_vars_configuration.client_side_validation and current is None: # noqa: E501 raise ValueError("Invalid value for `current`, must not be `None`") # noqa: E501 self._current = current @@ -93,7 +98,7 @@ def name(self, name): :param name: The name of this V2beta2ResourceMetricStatus. # noqa: E501 :type: str """ - if name is None: + if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501 raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @@ -135,8 +140,11 @@ def __eq__(self, other): if not isinstance(other, V2beta2ResourceMetricStatus): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, V2beta2ResourceMetricStatus): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/models/version_info.py b/kubernetes/client/models/version_info.py index db584f700e..2416762096 100644 --- a/kubernetes/client/models/version_info.py +++ b/kubernetes/client/models/version_info.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -15,6 +15,8 @@ import six +from kubernetes.client.configuration import Configuration + class VersionInfo(object): """NOTE: This class is auto generated by OpenAPI Generator. @@ -54,8 +56,11 @@ class VersionInfo(object): 'platform': 'platform' } - def __init__(self, build_date=None, compiler=None, git_commit=None, git_tree_state=None, git_version=None, go_version=None, major=None, minor=None, platform=None): # noqa: E501 + def __init__(self, build_date=None, compiler=None, git_commit=None, git_tree_state=None, git_version=None, go_version=None, major=None, minor=None, platform=None, local_vars_configuration=None): # noqa: E501 """VersionInfo - a model defined in OpenAPI""" # noqa: E501 + if local_vars_configuration is None: + local_vars_configuration = Configuration() + self.local_vars_configuration = local_vars_configuration self._build_date = None self._compiler = None @@ -96,7 +101,7 @@ def build_date(self, build_date): :param build_date: The build_date of this VersionInfo. # noqa: E501 :type: str """ - if build_date is None: + if self.local_vars_configuration.client_side_validation and build_date is None: # noqa: E501 raise ValueError("Invalid value for `build_date`, must not be `None`") # noqa: E501 self._build_date = build_date @@ -119,7 +124,7 @@ def compiler(self, compiler): :param compiler: The compiler of this VersionInfo. # noqa: E501 :type: str """ - if compiler is None: + if self.local_vars_configuration.client_side_validation and compiler is None: # noqa: E501 raise ValueError("Invalid value for `compiler`, must not be `None`") # noqa: E501 self._compiler = compiler @@ -142,7 +147,7 @@ def git_commit(self, git_commit): :param git_commit: The git_commit of this VersionInfo. # noqa: E501 :type: str """ - if git_commit is None: + if self.local_vars_configuration.client_side_validation and git_commit is None: # noqa: E501 raise ValueError("Invalid value for `git_commit`, must not be `None`") # noqa: E501 self._git_commit = git_commit @@ -165,7 +170,7 @@ def git_tree_state(self, git_tree_state): :param git_tree_state: The git_tree_state of this VersionInfo. # noqa: E501 :type: str """ - if git_tree_state is None: + if self.local_vars_configuration.client_side_validation and git_tree_state is None: # noqa: E501 raise ValueError("Invalid value for `git_tree_state`, must not be `None`") # noqa: E501 self._git_tree_state = git_tree_state @@ -188,7 +193,7 @@ def git_version(self, git_version): :param git_version: The git_version of this VersionInfo. # noqa: E501 :type: str """ - if git_version is None: + if self.local_vars_configuration.client_side_validation and git_version is None: # noqa: E501 raise ValueError("Invalid value for `git_version`, must not be `None`") # noqa: E501 self._git_version = git_version @@ -211,7 +216,7 @@ def go_version(self, go_version): :param go_version: The go_version of this VersionInfo. # noqa: E501 :type: str """ - if go_version is None: + if self.local_vars_configuration.client_side_validation and go_version is None: # noqa: E501 raise ValueError("Invalid value for `go_version`, must not be `None`") # noqa: E501 self._go_version = go_version @@ -234,7 +239,7 @@ def major(self, major): :param major: The major of this VersionInfo. # noqa: E501 :type: str """ - if major is None: + if self.local_vars_configuration.client_side_validation and major is None: # noqa: E501 raise ValueError("Invalid value for `major`, must not be `None`") # noqa: E501 self._major = major @@ -257,7 +262,7 @@ def minor(self, minor): :param minor: The minor of this VersionInfo. # noqa: E501 :type: str """ - if minor is None: + if self.local_vars_configuration.client_side_validation and minor is None: # noqa: E501 raise ValueError("Invalid value for `minor`, must not be `None`") # noqa: E501 self._minor = minor @@ -280,7 +285,7 @@ def platform(self, platform): :param platform: The platform of this VersionInfo. # noqa: E501 :type: str """ - if platform is None: + if self.local_vars_configuration.client_side_validation and platform is None: # noqa: E501 raise ValueError("Invalid value for `platform`, must not be `None`") # noqa: E501 self._platform = platform @@ -322,8 +327,11 @@ def __eq__(self, other): if not isinstance(other, VersionInfo): return False - return self.__dict__ == other.__dict__ + return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - return not self == other + if not isinstance(other, VersionInfo): + return True + + return self.to_dict() != other.to_dict() diff --git a/kubernetes/client/rest.py b/kubernetes/client/rest.py index 21bd0c6c6a..38fe5452df 100644 --- a/kubernetes/client/rest.py +++ b/kubernetes/client/rest.py @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - OpenAPI spec version: release-1.16 + The version of the OpenAPI document: release-1.16 Generated by: https://openapi-generator.tech """ @@ -22,11 +22,9 @@ # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import urlencode +import urllib3 -try: - import urllib3 -except ImportError: - raise ImportError('OpenAPI Python client requires urllib3.') +from kubernetes.client.exceptions import ApiException, ApiValueError logger = logging.getLogger(__name__) @@ -75,6 +73,9 @@ def __init__(self, configuration, pools_size=4, maxsize=None): if configuration.assert_hostname is not None: addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + if maxsize is None: if configuration.connection_pool_maxsize is not None: maxsize = configuration.connection_pool_maxsize @@ -91,6 +92,7 @@ def __init__(self, configuration, pools_size=4, maxsize=None): cert_file=configuration.cert_file, key_file=configuration.key_file, proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, **addition_pool_args ) else: @@ -130,7 +132,7 @@ def request(self, method, url, query_params=None, headers=None, 'PATCH', 'OPTIONS'] if post_params and body: - raise ValueError( + raise ApiValueError( "body parameter cannot be used with post_params parameter." ) @@ -191,7 +193,7 @@ def request(self, method, url, query_params=None, headers=None, # Pass a `string` parameter directly in the body to support # other content types than Json when `body` argument is # provided in serialized form - elif isinstance(body, str): + elif isinstance(body, str) or isinstance(body, bytes): request_body = body r = self.pool_manager.request( method, url, @@ -296,31 +298,3 @@ def PATCH(self, url, headers=None, query_params=None, post_params=None, _preload_content=_preload_content, _request_timeout=_request_timeout, body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/kubernetes/docs/AdmissionregistrationApi.md b/kubernetes/docs/AdmissionregistrationApi.md index 31106f95bc..a8ba14061e 100644 --- a/kubernetes/docs/AdmissionregistrationApi.md +++ b/kubernetes/docs/AdmissionregistrationApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AdmissionregistrationV1Api.md b/kubernetes/docs/AdmissionregistrationV1Api.md index 8fa8c40e74..11ea5693d3 100644 --- a/kubernetes/docs/AdmissionregistrationV1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1Api.md @@ -30,32 +30,36 @@ create a MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1MutatingWebhookConfiguration() # V1MutatingWebhookConfiguration | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + body = kubernetes.client.V1MutatingWebhookConfiguration() # V1MutatingWebhookConfiguration | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_mutating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->create_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.create_mutating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->create_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -80,6 +84,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_validating_webhook_configuration** @@ -91,32 +103,36 @@ create a ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1ValidatingWebhookConfiguration() # V1ValidatingWebhookConfiguration | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + body = kubernetes.client.V1ValidatingWebhookConfiguration() # V1ValidatingWebhookConfiguration | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_validating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->create_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.create_validating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->create_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -141,10 +157,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_mutating_webhook_configuration** -> V1Status delete_collection_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_mutating_webhook_configuration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -152,24 +176,27 @@ delete collection of MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -180,14 +207,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->delete_collection_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.delete_collection_mutating_webhook_configuration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->delete_collection_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -195,7 +221,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -206,8 +231,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -222,10 +246,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_validating_webhook_configuration** -> V1Status delete_collection_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_validating_webhook_configuration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -233,24 +263,27 @@ delete collection of ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -261,14 +294,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->delete_collection_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.delete_collection_validating_webhook_configuration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->delete_collection_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -276,7 +308,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -287,8 +318,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -303,6 +333,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_mutating_webhook_configuration** @@ -314,23 +350,27 @@ delete a MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the MutatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + name = 'name_example' # str | name of the MutatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -338,11 +378,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_mutating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->delete_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.delete_mutating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->delete_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -370,6 +410,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_validating_webhook_configuration** @@ -381,23 +428,27 @@ delete a ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ValidatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + name = 'name_example' # str | name of the ValidatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -405,11 +456,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_validating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->delete_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.delete_validating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->delete_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -437,6 +488,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -448,28 +506,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -488,6 +550,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_mutating_webhook_configuration** @@ -499,23 +567,27 @@ list or watch objects of kind MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -525,11 +597,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->list_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.list_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->list_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -559,6 +631,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_validating_webhook_configuration** @@ -570,23 +648,27 @@ list or watch objects of kind ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -596,11 +678,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->list_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.list_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->list_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -630,6 +712,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_mutating_webhook_configuration** @@ -641,34 +729,38 @@ partially update the specified MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the MutatingWebhookConfiguration -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + name = 'name_example' # str | name of the MutatingWebhookConfiguration +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->patch_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.patch_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->patch_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -676,7 +768,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the MutatingWebhookConfiguration | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -695,6 +787,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_validating_webhook_configuration** @@ -706,34 +804,38 @@ partially update the specified ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ValidatingWebhookConfiguration -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + name = 'name_example' # str | name of the ValidatingWebhookConfiguration +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->patch_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.patch_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->patch_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -741,7 +843,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ValidatingWebhookConfiguration | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -760,6 +862,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_mutating_webhook_configuration** @@ -771,32 +879,36 @@ read the specified MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the MutatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + name = 'name_example' # str | name of the MutatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_mutating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->read_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.read_mutating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->read_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -821,6 +933,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_validating_webhook_configuration** @@ -832,32 +950,36 @@ read the specified ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ValidatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + name = 'name_example' # str | name of the ValidatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_validating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->read_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.read_validating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->read_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -882,6 +1004,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_mutating_webhook_configuration** @@ -893,33 +1021,37 @@ replace the specified MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the MutatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + name = 'name_example' # str | name of the MutatingWebhookConfiguration body = kubernetes.client.V1MutatingWebhookConfiguration() # V1MutatingWebhookConfiguration | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->replace_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.replace_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->replace_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -945,6 +1077,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_validating_webhook_configuration** @@ -956,33 +1095,37 @@ replace the specified ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ValidatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1Api(api_client) + name = 'name_example' # str | name of the ValidatingWebhookConfiguration body = kubernetes.client.V1ValidatingWebhookConfiguration() # V1ValidatingWebhookConfiguration | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1Api->replace_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.replace_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1Api->replace_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -1008,5 +1151,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AdmissionregistrationV1ServiceReference.md b/kubernetes/docs/AdmissionregistrationV1ServiceReference.md index 621b750c37..bead2771d4 100644 --- a/kubernetes/docs/AdmissionregistrationV1ServiceReference.md +++ b/kubernetes/docs/AdmissionregistrationV1ServiceReference.md @@ -1,5 +1,6 @@ # AdmissionregistrationV1ServiceReference +ServiceReference holds a reference to Service.legacy.k8s.io ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md b/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md index 48d981143b..8308503f92 100644 --- a/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md +++ b/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md @@ -1,5 +1,6 @@ # AdmissionregistrationV1WebhookClientConfig +WebhookClientConfig contains the information to make a TLS connection with the webhook ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AdmissionregistrationV1beta1Api.md b/kubernetes/docs/AdmissionregistrationV1beta1Api.md index f356008d97..4ef776c713 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1Api.md @@ -30,32 +30,36 @@ create a MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1MutatingWebhookConfiguration() # V1beta1MutatingWebhookConfiguration | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + body = kubernetes.client.V1beta1MutatingWebhookConfiguration() # V1beta1MutatingWebhookConfiguration | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_mutating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->create_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.create_mutating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->create_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -80,6 +84,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_validating_webhook_configuration** @@ -91,32 +103,36 @@ create a ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1ValidatingWebhookConfiguration() # V1beta1ValidatingWebhookConfiguration | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + body = kubernetes.client.V1beta1ValidatingWebhookConfiguration() # V1beta1ValidatingWebhookConfiguration | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_validating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->create_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.create_validating_webhook_configuration(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->create_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -141,10 +157,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_mutating_webhook_configuration** -> V1Status delete_collection_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_mutating_webhook_configuration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -152,24 +176,27 @@ delete collection of MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -180,14 +207,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->delete_collection_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.delete_collection_mutating_webhook_configuration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->delete_collection_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -195,7 +221,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -206,8 +231,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -222,10 +246,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_validating_webhook_configuration** -> V1Status delete_collection_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_validating_webhook_configuration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -233,24 +263,27 @@ delete collection of ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -261,14 +294,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->delete_collection_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.delete_collection_validating_webhook_configuration(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->delete_collection_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -276,7 +308,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -287,8 +318,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -303,6 +333,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_mutating_webhook_configuration** @@ -314,23 +350,27 @@ delete a MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the MutatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the MutatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -338,11 +378,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_mutating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->delete_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.delete_mutating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->delete_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -370,6 +410,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_validating_webhook_configuration** @@ -381,23 +428,27 @@ delete a ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ValidatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the ValidatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -405,11 +456,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_validating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->delete_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.delete_validating_webhook_configuration(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->delete_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -437,6 +488,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -448,28 +506,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -488,6 +550,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_mutating_webhook_configuration** @@ -499,23 +567,27 @@ list or watch objects of kind MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -525,11 +597,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->list_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.list_mutating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->list_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -559,6 +631,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_validating_webhook_configuration** @@ -570,23 +648,27 @@ list or watch objects of kind ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -596,11 +678,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->list_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.list_validating_webhook_configuration(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->list_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -630,6 +712,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_mutating_webhook_configuration** @@ -641,34 +729,38 @@ partially update the specified MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the MutatingWebhookConfiguration -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the MutatingWebhookConfiguration +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->patch_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.patch_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->patch_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -676,7 +768,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the MutatingWebhookConfiguration | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -695,6 +787,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_validating_webhook_configuration** @@ -706,34 +804,38 @@ partially update the specified ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ValidatingWebhookConfiguration -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the ValidatingWebhookConfiguration +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->patch_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.patch_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->patch_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -741,7 +843,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ValidatingWebhookConfiguration | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -760,6 +862,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_mutating_webhook_configuration** @@ -771,32 +879,36 @@ read the specified MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the MutatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the MutatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_mutating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->read_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.read_mutating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->read_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -821,6 +933,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_validating_webhook_configuration** @@ -832,32 +950,36 @@ read the specified ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ValidatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the ValidatingWebhookConfiguration pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_validating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->read_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.read_validating_webhook_configuration(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->read_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -882,6 +1004,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_mutating_webhook_configuration** @@ -893,33 +1021,37 @@ replace the specified MutatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the MutatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the MutatingWebhookConfiguration body = kubernetes.client.V1beta1MutatingWebhookConfiguration() # V1beta1MutatingWebhookConfiguration | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->replace_mutating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.replace_mutating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->replace_mutating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -945,6 +1077,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_validating_webhook_configuration** @@ -956,33 +1095,37 @@ replace the specified ValidatingWebhookConfiguration ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ValidatingWebhookConfiguration +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AdmissionregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the ValidatingWebhookConfiguration body = kubernetes.client.V1beta1ValidatingWebhookConfiguration() # V1beta1ValidatingWebhookConfiguration | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdmissionregistrationV1beta1Api->replace_validating_webhook_configuration: %s\n" % e) + try: + api_response = api_instance.replace_validating_webhook_configuration(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AdmissionregistrationV1beta1Api->replace_validating_webhook_configuration: %s\n" % e) ``` ### Parameters @@ -1008,5 +1151,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md b/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md index 2dc6a015d4..7805d45e48 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md @@ -1,5 +1,6 @@ # AdmissionregistrationV1beta1ServiceReference +ServiceReference holds a reference to Service.legacy.k8s.io ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md b/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md index 16a1735862..4447d239d2 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md @@ -1,5 +1,6 @@ # AdmissionregistrationV1beta1WebhookClientConfig +WebhookClientConfig contains the information to make a TLS connection with the webhook ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ApiextensionsApi.md b/kubernetes/docs/ApiextensionsApi.md index 0136708278..cdf3483447 100644 --- a/kubernetes/docs/ApiextensionsApi.md +++ b/kubernetes/docs/ApiextensionsApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiextensionsV1Api.md b/kubernetes/docs/ApiextensionsV1Api.md index 0f4f1be18c..127f3d4b6c 100644 --- a/kubernetes/docs/ApiextensionsV1Api.md +++ b/kubernetes/docs/ApiextensionsV1Api.md @@ -26,32 +26,36 @@ create a CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1CustomResourceDefinition() # V1CustomResourceDefinition | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + body = kubernetes.client.V1CustomResourceDefinition() # V1CustomResourceDefinition | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_custom_resource_definition(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->create_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.create_custom_resource_definition(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->create_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -76,10 +80,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_custom_resource_definition** -> V1Status delete_collection_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_custom_resource_definition(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -87,24 +99,27 @@ delete collection of CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -115,14 +130,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->delete_collection_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.delete_collection_custom_resource_definition(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->delete_collection_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -130,7 +144,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -141,8 +154,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -157,6 +169,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_custom_resource_definition** @@ -168,23 +186,27 @@ delete a CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -192,11 +214,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_custom_resource_definition(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->delete_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.delete_custom_resource_definition(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->delete_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -224,6 +246,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -235,28 +264,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -275,6 +308,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_custom_resource_definition** @@ -286,23 +325,27 @@ list or watch objects of kind CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -312,11 +355,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->list_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.list_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->list_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -346,6 +389,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_custom_resource_definition** @@ -357,34 +406,38 @@ partially update the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->patch_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.patch_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->patch_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -392,7 +445,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CustomResourceDefinition | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -411,6 +464,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_custom_resource_definition_status** @@ -422,34 +481,38 @@ partially update status of the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->patch_custom_resource_definition_status: %s\n" % e) + try: + api_response = api_instance.patch_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->patch_custom_resource_definition_status: %s\n" % e) ``` ### Parameters @@ -457,7 +520,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CustomResourceDefinition | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -476,6 +539,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_custom_resource_definition** @@ -487,32 +556,36 @@ read the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_custom_resource_definition(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->read_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.read_custom_resource_definition(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->read_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -537,6 +610,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_custom_resource_definition_status** @@ -548,30 +627,34 @@ read status of the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_custom_resource_definition_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->read_custom_resource_definition_status: %s\n" % e) + try: + api_response = api_instance.read_custom_resource_definition_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->read_custom_resource_definition_status: %s\n" % e) ``` ### Parameters @@ -594,6 +677,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_custom_resource_definition** @@ -605,33 +694,37 @@ replace the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition body = kubernetes.client.V1CustomResourceDefinition() # V1CustomResourceDefinition | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->replace_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.replace_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->replace_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -657,6 +750,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_custom_resource_definition_status** @@ -668,33 +768,37 @@ replace status of the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition body = kubernetes.client.V1CustomResourceDefinition() # V1CustomResourceDefinition | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1Api->replace_custom_resource_definition_status: %s\n" % e) + try: + api_response = api_instance.replace_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1Api->replace_custom_resource_definition_status: %s\n" % e) ``` ### Parameters @@ -720,5 +824,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiextensionsV1ServiceReference.md b/kubernetes/docs/ApiextensionsV1ServiceReference.md index 275153a330..a19d7ccaa7 100644 --- a/kubernetes/docs/ApiextensionsV1ServiceReference.md +++ b/kubernetes/docs/ApiextensionsV1ServiceReference.md @@ -1,5 +1,6 @@ # ApiextensionsV1ServiceReference +ServiceReference holds a reference to Service.legacy.k8s.io ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ApiextensionsV1WebhookClientConfig.md b/kubernetes/docs/ApiextensionsV1WebhookClientConfig.md index 57bc0d6f1b..3b260062f6 100644 --- a/kubernetes/docs/ApiextensionsV1WebhookClientConfig.md +++ b/kubernetes/docs/ApiextensionsV1WebhookClientConfig.md @@ -1,5 +1,6 @@ # ApiextensionsV1WebhookClientConfig +WebhookClientConfig contains the information to make a TLS connection with the webhook. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ApiextensionsV1beta1Api.md b/kubernetes/docs/ApiextensionsV1beta1Api.md index b97eea682e..e3f6fa8a64 100644 --- a/kubernetes/docs/ApiextensionsV1beta1Api.md +++ b/kubernetes/docs/ApiextensionsV1beta1Api.md @@ -26,32 +26,36 @@ create a CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1CustomResourceDefinition() # V1beta1CustomResourceDefinition | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + body = kubernetes.client.V1beta1CustomResourceDefinition() # V1beta1CustomResourceDefinition | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_custom_resource_definition(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->create_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.create_custom_resource_definition(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->create_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -76,10 +80,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_custom_resource_definition** -> V1Status delete_collection_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_custom_resource_definition(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -87,24 +99,27 @@ delete collection of CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -115,14 +130,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->delete_collection_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.delete_collection_custom_resource_definition(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->delete_collection_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -130,7 +144,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -141,8 +154,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -157,6 +169,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_custom_resource_definition** @@ -168,23 +186,27 @@ delete a CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -192,11 +214,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_custom_resource_definition(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->delete_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.delete_custom_resource_definition(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->delete_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -224,6 +246,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -235,28 +264,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -275,6 +308,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_custom_resource_definition** @@ -286,23 +325,27 @@ list or watch objects of kind CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -312,11 +355,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->list_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.list_custom_resource_definition(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->list_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -346,6 +389,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_custom_resource_definition** @@ -357,34 +406,38 @@ partially update the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->patch_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.patch_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->patch_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -392,7 +445,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CustomResourceDefinition | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -411,6 +464,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_custom_resource_definition_status** @@ -422,34 +481,38 @@ partially update status of the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->patch_custom_resource_definition_status: %s\n" % e) + try: + api_response = api_instance.patch_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->patch_custom_resource_definition_status: %s\n" % e) ``` ### Parameters @@ -457,7 +520,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CustomResourceDefinition | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -476,6 +539,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_custom_resource_definition** @@ -487,32 +556,36 @@ read the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_custom_resource_definition(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->read_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.read_custom_resource_definition(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->read_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -537,6 +610,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_custom_resource_definition_status** @@ -548,30 +627,34 @@ read status of the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_custom_resource_definition_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->read_custom_resource_definition_status: %s\n" % e) + try: + api_response = api_instance.read_custom_resource_definition_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->read_custom_resource_definition_status: %s\n" % e) ``` ### Parameters @@ -594,6 +677,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_custom_resource_definition** @@ -605,33 +694,37 @@ replace the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition body = kubernetes.client.V1beta1CustomResourceDefinition() # V1beta1CustomResourceDefinition | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->replace_custom_resource_definition: %s\n" % e) + try: + api_response = api_instance.replace_custom_resource_definition(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->replace_custom_resource_definition: %s\n" % e) ``` ### Parameters @@ -657,6 +750,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_custom_resource_definition_status** @@ -668,33 +768,37 @@ replace status of the specified CustomResourceDefinition ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiextensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CustomResourceDefinition +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiextensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the CustomResourceDefinition body = kubernetes.client.V1beta1CustomResourceDefinition() # V1beta1CustomResourceDefinition | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiextensionsV1beta1Api->replace_custom_resource_definition_status: %s\n" % e) + try: + api_response = api_instance.replace_custom_resource_definition_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiextensionsV1beta1Api->replace_custom_resource_definition_status: %s\n" % e) ``` ### Parameters @@ -720,5 +824,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md b/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md index 680b2cb60e..71ae1f2baa 100644 --- a/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md +++ b/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md @@ -1,5 +1,6 @@ # ApiextensionsV1beta1ServiceReference +ServiceReference holds a reference to Service.legacy.k8s.io ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md b/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md index f66932705f..840b31eddc 100644 --- a/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md +++ b/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md @@ -1,5 +1,6 @@ # ApiextensionsV1beta1WebhookClientConfig +WebhookClientConfig contains the information to make a TLS connection with the webhook. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ApiregistrationApi.md b/kubernetes/docs/ApiregistrationApi.md index 7832cb01d8..fd7956c815 100644 --- a/kubernetes/docs/ApiregistrationApi.md +++ b/kubernetes/docs/ApiregistrationApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiregistrationV1Api.md b/kubernetes/docs/ApiregistrationV1Api.md index c6955308f3..b3315ae27d 100644 --- a/kubernetes/docs/ApiregistrationV1Api.md +++ b/kubernetes/docs/ApiregistrationV1Api.md @@ -26,32 +26,36 @@ create an APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1APIService() # V1APIService | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + body = kubernetes.client.V1APIService() # V1APIService | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_api_service(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->create_api_service: %s\n" % e) + try: + api_response = api_instance.create_api_service(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->create_api_service: %s\n" % e) ``` ### Parameters @@ -76,6 +80,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_api_service** @@ -87,23 +99,27 @@ delete an APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -111,11 +127,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_api_service(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->delete_api_service: %s\n" % e) + try: + api_response = api_instance.delete_api_service(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->delete_api_service: %s\n" % e) ``` ### Parameters @@ -143,10 +159,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_api_service** -> V1Status delete_collection_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_api_service(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -154,24 +177,27 @@ delete collection of APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -182,14 +208,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->delete_collection_api_service: %s\n" % e) + try: + api_response = api_instance.delete_collection_api_service(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->delete_collection_api_service: %s\n" % e) ``` ### Parameters @@ -197,7 +222,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -208,8 +232,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -224,6 +247,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -235,28 +264,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -275,6 +308,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_api_service** @@ -286,23 +325,27 @@ list or watch objects of kind APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -312,11 +355,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->list_api_service: %s\n" % e) + try: + api_response = api_instance.list_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->list_api_service: %s\n" % e) ``` ### Parameters @@ -346,6 +389,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_api_service** @@ -357,34 +406,38 @@ partially update the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + name = 'name_example' # str | name of the APIService +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->patch_api_service: %s\n" % e) + try: + api_response = api_instance.patch_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->patch_api_service: %s\n" % e) ``` ### Parameters @@ -392,7 +445,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -411,6 +464,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_api_service_status** @@ -422,34 +481,38 @@ partially update status of the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + name = 'name_example' # str | name of the APIService +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->patch_api_service_status: %s\n" % e) + try: + api_response = api_instance.patch_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->patch_api_service_status: %s\n" % e) ``` ### Parameters @@ -457,7 +520,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -476,6 +539,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_api_service** @@ -487,32 +556,36 @@ read the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_api_service(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->read_api_service: %s\n" % e) + try: + api_response = api_instance.read_api_service(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->read_api_service: %s\n" % e) ``` ### Parameters @@ -537,6 +610,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_api_service_status** @@ -548,30 +627,34 @@ read status of the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_api_service_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->read_api_service_status: %s\n" % e) + try: + api_response = api_instance.read_api_service_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->read_api_service_status: %s\n" % e) ``` ### Parameters @@ -594,6 +677,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_api_service** @@ -605,33 +694,37 @@ replace the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + name = 'name_example' # str | name of the APIService body = kubernetes.client.V1APIService() # V1APIService | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->replace_api_service: %s\n" % e) + try: + api_response = api_instance.replace_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->replace_api_service: %s\n" % e) ``` ### Parameters @@ -657,6 +750,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_api_service_status** @@ -668,33 +768,37 @@ replace status of the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1Api(api_client) + name = 'name_example' # str | name of the APIService body = kubernetes.client.V1APIService() # V1APIService | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1Api->replace_api_service_status: %s\n" % e) + try: + api_response = api_instance.replace_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1Api->replace_api_service_status: %s\n" % e) ``` ### Parameters @@ -720,5 +824,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiregistrationV1ServiceReference.md b/kubernetes/docs/ApiregistrationV1ServiceReference.md index c7ce15a53f..2e78132321 100644 --- a/kubernetes/docs/ApiregistrationV1ServiceReference.md +++ b/kubernetes/docs/ApiregistrationV1ServiceReference.md @@ -1,5 +1,6 @@ # ApiregistrationV1ServiceReference +ServiceReference holds a reference to Service.legacy.k8s.io ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ApiregistrationV1beta1Api.md b/kubernetes/docs/ApiregistrationV1beta1Api.md index f40edfd040..3182cfaa5e 100644 --- a/kubernetes/docs/ApiregistrationV1beta1Api.md +++ b/kubernetes/docs/ApiregistrationV1beta1Api.md @@ -26,32 +26,36 @@ create an APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1APIService() # V1beta1APIService | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + body = kubernetes.client.V1beta1APIService() # V1beta1APIService | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_api_service(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->create_api_service: %s\n" % e) + try: + api_response = api_instance.create_api_service(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->create_api_service: %s\n" % e) ``` ### Parameters @@ -76,6 +80,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_api_service** @@ -87,23 +99,27 @@ delete an APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -111,11 +127,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_api_service(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->delete_api_service: %s\n" % e) + try: + api_response = api_instance.delete_api_service(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->delete_api_service: %s\n" % e) ``` ### Parameters @@ -143,10 +159,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_api_service** -> V1Status delete_collection_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_api_service(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -154,24 +177,27 @@ delete collection of APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -182,14 +208,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->delete_collection_api_service: %s\n" % e) + try: + api_response = api_instance.delete_collection_api_service(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->delete_collection_api_service: %s\n" % e) ``` ### Parameters @@ -197,7 +222,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -208,8 +232,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -224,6 +247,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -235,28 +264,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -275,6 +308,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_api_service** @@ -286,23 +325,27 @@ list or watch objects of kind APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -312,11 +355,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->list_api_service: %s\n" % e) + try: + api_response = api_instance.list_api_service(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->list_api_service: %s\n" % e) ``` ### Parameters @@ -346,6 +389,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_api_service** @@ -357,34 +406,38 @@ partially update the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the APIService +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->patch_api_service: %s\n" % e) + try: + api_response = api_instance.patch_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->patch_api_service: %s\n" % e) ``` ### Parameters @@ -392,7 +445,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -411,6 +464,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_api_service_status** @@ -422,34 +481,38 @@ partially update status of the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the APIService +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->patch_api_service_status: %s\n" % e) + try: + api_response = api_instance.patch_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->patch_api_service_status: %s\n" % e) ``` ### Parameters @@ -457,7 +520,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the APIService | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -476,6 +539,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_api_service** @@ -487,32 +556,36 @@ read the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_api_service(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->read_api_service: %s\n" % e) + try: + api_response = api_instance.read_api_service(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->read_api_service: %s\n" % e) ``` ### Parameters @@ -537,6 +610,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_api_service_status** @@ -548,30 +627,34 @@ read status of the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the APIService pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_api_service_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->read_api_service_status: %s\n" % e) + try: + api_response = api_instance.read_api_service_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->read_api_service_status: %s\n" % e) ``` ### Parameters @@ -594,6 +677,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_api_service** @@ -605,33 +694,37 @@ replace the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the APIService body = kubernetes.client.V1beta1APIService() # V1beta1APIService | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->replace_api_service: %s\n" % e) + try: + api_response = api_instance.replace_api_service(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->replace_api_service: %s\n" % e) ``` ### Parameters @@ -657,6 +750,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_api_service_status** @@ -668,33 +768,37 @@ replace status of the specified APIService ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApiregistrationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the APIService +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApiregistrationV1beta1Api(api_client) + name = 'name_example' # str | name of the APIService body = kubernetes.client.V1beta1APIService() # V1beta1APIService | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ApiregistrationV1beta1Api->replace_api_service_status: %s\n" % e) + try: + api_response = api_instance.replace_api_service_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ApiregistrationV1beta1Api->replace_api_service_status: %s\n" % e) ``` ### Parameters @@ -720,5 +824,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md b/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md index 55372a7980..45bf75b46d 100644 --- a/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md +++ b/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md @@ -1,5 +1,6 @@ # ApiregistrationV1beta1ServiceReference +ServiceReference holds a reference to Service.legacy.k8s.io ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ApisApi.md b/kubernetes/docs/ApisApi.md index 195aa33468..dbaa8ed6bb 100644 --- a/kubernetes/docs/ApisApi.md +++ b/kubernetes/docs/ApisApi.md @@ -16,28 +16,32 @@ get available API versions ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ApisApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_versions() - pprint(api_response) -except ApiException as e: - print("Exception when calling ApisApi->get_api_versions: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ApisApi(api_client) + + try: + api_response = api_instance.get_api_versions() + pprint(api_response) + except ApiException as e: + print("Exception when calling ApisApi->get_api_versions: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsApi.md b/kubernetes/docs/AppsApi.md index dba9eea3da..79ec2d5ef7 100644 --- a/kubernetes/docs/AppsApi.md +++ b/kubernetes/docs/AppsApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1Api.md b/kubernetes/docs/AppsV1Api.md index 7b7349381a..5f2ed9aebe 100644 --- a/kubernetes/docs/AppsV1Api.md +++ b/kubernetes/docs/AppsV1Api.md @@ -77,33 +77,37 @@ create a ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ControllerRevision() # V1ControllerRevision | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_controller_revision(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->create_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.create_namespaced_controller_revision(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->create_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -129,6 +133,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_daemon_set** @@ -140,33 +152,37 @@ create a DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1DaemonSet() # V1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->create_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->create_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -192,6 +208,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_deployment** @@ -203,33 +227,37 @@ create a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Deployment() # V1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->create_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->create_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -255,6 +283,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_replica_set** @@ -266,33 +302,37 @@ create a ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ReplicaSet() # V1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->create_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->create_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -318,6 +358,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_stateful_set** @@ -329,33 +377,37 @@ create a StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1StatefulSet() # V1StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->create_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->create_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -381,10 +433,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_controller_revision** -> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -392,25 +452,28 @@ delete collection of ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -421,14 +484,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_collection_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_collection_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -437,7 +499,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -448,8 +509,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -464,10 +524,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_daemon_set** -> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -475,25 +541,28 @@ delete collection of DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -504,14 +573,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_collection_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_collection_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -520,7 +588,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -531,8 +598,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -547,10 +613,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -558,25 +630,28 @@ delete collection of Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -587,14 +662,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_collection_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_collection_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -603,7 +677,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -614,8 +687,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -630,10 +702,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_replica_set** -> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -641,25 +719,28 @@ delete collection of ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -670,14 +751,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_collection_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_collection_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -686,7 +766,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -697,8 +776,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -713,10 +791,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_stateful_set** -> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -724,25 +808,28 @@ delete collection of StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -753,14 +840,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_collection_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_collection_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -769,7 +855,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -780,8 +865,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -796,6 +880,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_controller_revision** @@ -807,23 +897,27 @@ delete a ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -832,11 +926,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -865,6 +959,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_daemon_set** @@ -876,23 +977,27 @@ delete a DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -901,11 +1006,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -934,6 +1039,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_deployment** @@ -945,23 +1057,27 @@ delete a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -970,11 +1086,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -1003,6 +1119,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_replica_set** @@ -1014,23 +1137,27 @@ delete a ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -1039,11 +1166,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -1072,6 +1199,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_stateful_set** @@ -1083,23 +1217,27 @@ delete a StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -1108,11 +1246,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->delete_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->delete_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -1141,6 +1279,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -1152,28 +1297,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -1192,6 +1341,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_controller_revision_for_all_namespaces** @@ -1203,23 +1358,27 @@ list or watch objects of kind ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1229,11 +1388,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_controller_revision_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_controller_revision_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1263,6 +1422,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_daemon_set_for_all_namespaces** @@ -1274,23 +1439,27 @@ list or watch objects of kind DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1300,11 +1469,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_daemon_set_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_daemon_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1334,6 +1503,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_deployment_for_all_namespaces** @@ -1345,23 +1520,27 @@ list or watch objects of kind Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1371,11 +1550,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_deployment_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_deployment_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1405,6 +1584,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_controller_revision** @@ -1416,23 +1601,27 @@ list or watch objects of kind ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1443,11 +1632,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -1478,6 +1667,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_daemon_set** @@ -1489,23 +1684,27 @@ list or watch objects of kind DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1516,11 +1715,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -1551,6 +1750,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_deployment** @@ -1562,23 +1767,27 @@ list or watch objects of kind Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1589,11 +1798,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -1624,6 +1833,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_replica_set** @@ -1635,23 +1850,27 @@ list or watch objects of kind ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1662,11 +1881,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -1697,6 +1916,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_stateful_set** @@ -1708,23 +1933,27 @@ list or watch objects of kind StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1735,11 +1964,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -1770,6 +1999,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_replica_set_for_all_namespaces** @@ -1781,23 +2016,27 @@ list or watch objects of kind ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1807,11 +2046,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_replica_set_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_replica_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1841,6 +2080,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_stateful_set_for_all_namespaces** @@ -1852,23 +2097,27 @@ list or watch objects of kind StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1878,11 +2127,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->list_stateful_set_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->list_stateful_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1912,6 +2161,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_controller_revision** @@ -1923,35 +2178,39 @@ partially update the specified ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -1960,7 +2219,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ControllerRevision | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1979,6 +2238,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_daemon_set** @@ -1990,35 +2255,39 @@ partially update the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -2027,7 +2296,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2046,6 +2315,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_daemon_set_status** @@ -2057,35 +2332,39 @@ partially update status of the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_daemon_set_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters @@ -2094,7 +2373,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2113,6 +2392,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment** @@ -2124,35 +2409,39 @@ partially update the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -2161,7 +2450,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2180,6 +2469,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment_scale** @@ -2191,35 +2486,39 @@ partially update scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -2228,7 +2527,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2247,6 +2546,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment_status** @@ -2258,35 +2563,39 @@ partially update status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -2295,7 +2604,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2314,6 +2623,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replica_set** @@ -2325,35 +2640,39 @@ partially update the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -2362,7 +2681,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2381,6 +2700,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replica_set_scale** @@ -2392,35 +2717,39 @@ partially update scale of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_replica_set_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_replica_set_scale: %s\n" % e) ``` ### Parameters @@ -2429,7 +2758,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2448,6 +2777,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replica_set_status** @@ -2459,35 +2794,39 @@ partially update status of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_replica_set_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -2496,7 +2835,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2515,6 +2854,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_stateful_set** @@ -2526,35 +2871,39 @@ partially update the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -2563,7 +2912,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2582,6 +2931,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_stateful_set_scale** @@ -2593,35 +2948,39 @@ partially update scale of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_stateful_set_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_stateful_set_scale: %s\n" % e) ``` ### Parameters @@ -2630,7 +2989,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2649,6 +3008,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_stateful_set_status** @@ -2660,35 +3025,39 @@ partially update status of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->patch_namespaced_stateful_set_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->patch_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters @@ -2697,7 +3066,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2716,6 +3085,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_controller_revision** @@ -2727,33 +3102,37 @@ read the specified ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_controller_revision(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.read_namespaced_controller_revision(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -2779,6 +3158,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_daemon_set** @@ -2790,33 +3175,37 @@ read the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -2842,6 +3231,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_daemon_set_status** @@ -2853,31 +3248,35 @@ read status of the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_daemon_set_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters @@ -2901,6 +3300,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment** @@ -2912,33 +3317,37 @@ read the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -2964,6 +3373,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment_scale** @@ -2975,31 +3390,35 @@ read scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -3023,6 +3442,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment_status** @@ -3034,31 +3459,35 @@ read status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -3082,6 +3511,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replica_set** @@ -3093,33 +3528,37 @@ read the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -3145,6 +3584,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replica_set_scale** @@ -3156,31 +3601,35 @@ read scale of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_replica_set_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_replica_set_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replica_set_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_replica_set_scale: %s\n" % e) ``` ### Parameters @@ -3204,6 +3653,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replica_set_status** @@ -3215,31 +3670,35 @@ read status of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_replica_set_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_replica_set_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replica_set_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -3263,6 +3722,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_stateful_set** @@ -3274,33 +3739,37 @@ read the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -3326,6 +3795,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_stateful_set_scale** @@ -3337,31 +3812,35 @@ read scale of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_stateful_set_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_stateful_set_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_stateful_set_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_stateful_set_scale: %s\n" % e) ``` ### Parameters @@ -3385,6 +3864,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_stateful_set_status** @@ -3396,31 +3881,35 @@ read status of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->read_namespaced_stateful_set_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->read_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters @@ -3444,6 +3933,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_controller_revision** @@ -3455,34 +3950,38 @@ replace the specified ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ControllerRevision() # V1ControllerRevision | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -3509,6 +4008,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_daemon_set** @@ -3520,34 +4026,38 @@ replace the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1DaemonSet() # V1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -3574,6 +4084,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_daemon_set_status** @@ -3585,34 +4102,38 @@ replace status of the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1DaemonSet() # V1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_daemon_set_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters @@ -3639,6 +4160,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment** @@ -3650,34 +4178,38 @@ replace the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Deployment() # V1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -3704,6 +4236,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment_scale** @@ -3715,34 +4254,38 @@ replace scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Scale() # V1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -3769,6 +4312,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment_status** @@ -3780,34 +4330,38 @@ replace status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Deployment() # V1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -3834,6 +4388,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replica_set** @@ -3845,34 +4406,38 @@ replace the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ReplicaSet() # V1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -3899,6 +4464,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replica_set_scale** @@ -3910,34 +4482,38 @@ replace scale of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Scale() # V1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_replica_set_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_replica_set_scale: %s\n" % e) ``` ### Parameters @@ -3964,6 +4540,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replica_set_status** @@ -3975,34 +4558,38 @@ replace status of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ReplicaSet() # V1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_replica_set_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -4029,6 +4616,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_stateful_set** @@ -4040,34 +4634,38 @@ replace the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1StatefulSet() # V1StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -4094,6 +4692,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_stateful_set_scale** @@ -4105,34 +4710,38 @@ replace scale of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Scale() # V1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_stateful_set_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_stateful_set_scale: %s\n" % e) ``` ### Parameters @@ -4159,6 +4768,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_stateful_set_status** @@ -4170,34 +4786,38 @@ replace status of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1StatefulSet() # V1StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1Api->replace_namespaced_stateful_set_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1Api->replace_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters @@ -4224,5 +4844,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1Api.md b/kubernetes/docs/AppsV1beta1Api.md index 3fa7bd9c8e..9ff7b4d217 100644 --- a/kubernetes/docs/AppsV1beta1Api.md +++ b/kubernetes/docs/AppsV1beta1Api.md @@ -53,33 +53,37 @@ create a ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1ControllerRevision() # V1beta1ControllerRevision | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_controller_revision(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->create_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.create_namespaced_controller_revision(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->create_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -105,6 +109,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_deployment** @@ -116,33 +128,37 @@ create a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.AppsV1beta1Deployment() # AppsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->create_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->create_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -168,6 +184,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_deployment_rollback** @@ -179,34 +203,38 @@ create rollback of a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DeploymentRollback +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the DeploymentRollback namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.AppsV1beta1DeploymentRollback() # AppsV1beta1DeploymentRollback | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_namespaced_deployment_rollback(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->create_namespaced_deployment_rollback: %s\n" % e) + try: + api_response = api_instance.create_namespaced_deployment_rollback(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->create_namespaced_deployment_rollback: %s\n" % e) ``` ### Parameters @@ -233,6 +261,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_stateful_set** @@ -244,33 +280,37 @@ create a StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1StatefulSet() # V1beta1StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->create_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->create_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -296,10 +336,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_controller_revision** -> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -307,25 +355,28 @@ delete collection of ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -336,14 +387,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -352,7 +402,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -363,8 +412,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -379,10 +427,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -390,25 +444,28 @@ delete collection of Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -419,14 +476,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -435,7 +491,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -446,8 +501,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -462,10 +516,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_stateful_set** -> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -473,25 +533,28 @@ delete collection of StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -502,14 +565,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->delete_collection_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -518,7 +580,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -529,8 +590,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -545,6 +605,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_controller_revision** @@ -556,23 +622,27 @@ delete a ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -581,11 +651,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->delete_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -614,6 +684,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_deployment** @@ -625,23 +702,27 @@ delete a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -650,11 +731,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->delete_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -683,6 +764,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_stateful_set** @@ -694,23 +782,27 @@ delete a StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -719,11 +811,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->delete_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->delete_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -752,6 +844,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -763,28 +862,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -803,6 +906,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_controller_revision_for_all_namespaces** @@ -814,23 +923,27 @@ list or watch objects of kind ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -840,11 +953,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_controller_revision_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->list_controller_revision_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -874,6 +987,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_deployment_for_all_namespaces** @@ -885,23 +1004,27 @@ list or watch objects of kind Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -911,11 +1034,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_deployment_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->list_deployment_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -945,6 +1068,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_controller_revision** @@ -956,23 +1085,27 @@ list or watch objects of kind ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -983,11 +1116,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->list_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -1018,6 +1151,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_deployment** @@ -1029,23 +1168,27 @@ list or watch objects of kind Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1056,11 +1199,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->list_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -1091,6 +1234,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_stateful_set** @@ -1102,23 +1251,27 @@ list or watch objects of kind StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1129,11 +1282,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->list_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -1164,6 +1317,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_stateful_set_for_all_namespaces** @@ -1175,23 +1334,27 @@ list or watch objects of kind StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1201,11 +1364,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->list_stateful_set_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->list_stateful_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1235,6 +1398,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_controller_revision** @@ -1246,35 +1415,39 @@ partially update the specified ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -1283,7 +1456,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ControllerRevision | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1302,6 +1475,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment** @@ -1313,35 +1492,39 @@ partially update the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -1350,7 +1533,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1369,6 +1552,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment_scale** @@ -1380,35 +1569,39 @@ partially update scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -1417,7 +1610,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1436,6 +1629,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment_status** @@ -1447,35 +1646,39 @@ partially update status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -1484,7 +1687,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1503,6 +1706,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_stateful_set** @@ -1514,35 +1723,39 @@ partially update the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -1551,7 +1764,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1570,6 +1783,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_stateful_set_scale** @@ -1581,35 +1800,39 @@ partially update scale of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set_scale: %s\n" % e) ``` ### Parameters @@ -1618,7 +1841,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1637,6 +1860,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_stateful_set_status** @@ -1648,35 +1877,39 @@ partially update status of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->patch_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters @@ -1685,7 +1918,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1704,6 +1937,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_controller_revision** @@ -1715,33 +1954,37 @@ read the specified ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_controller_revision(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.read_namespaced_controller_revision(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -1767,6 +2010,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment** @@ -1778,33 +2027,37 @@ read the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -1830,6 +2083,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment_scale** @@ -1841,31 +2100,35 @@ read scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -1889,6 +2152,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment_status** @@ -1900,31 +2169,35 @@ read status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -1948,6 +2221,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_stateful_set** @@ -1959,33 +2238,37 @@ read the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -2011,6 +2294,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_stateful_set_scale** @@ -2022,31 +2311,35 @@ read scale of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_stateful_set_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_stateful_set_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_stateful_set_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_namespaced_stateful_set_scale: %s\n" % e) ``` ### Parameters @@ -2070,6 +2363,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_stateful_set_status** @@ -2081,31 +2380,35 @@ read status of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->read_namespaced_stateful_set_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->read_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters @@ -2129,6 +2432,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_controller_revision** @@ -2140,34 +2449,38 @@ replace the specified ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1ControllerRevision() # V1beta1ControllerRevision | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -2194,6 +2507,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment** @@ -2205,34 +2525,38 @@ replace the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.AppsV1beta1Deployment() # AppsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -2259,6 +2583,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment_scale** @@ -2270,34 +2601,38 @@ replace scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.AppsV1beta1Scale() # AppsV1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -2324,6 +2659,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment_status** @@ -2335,34 +2677,38 @@ replace status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.AppsV1beta1Deployment() # AppsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -2389,6 +2735,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_stateful_set** @@ -2400,34 +2753,38 @@ replace the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1StatefulSet() # V1beta1StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -2454,6 +2811,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_stateful_set_scale** @@ -2465,34 +2829,38 @@ replace scale of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.AppsV1beta1Scale() # AppsV1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_stateful_set_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_namespaced_stateful_set_scale: %s\n" % e) ``` ### Parameters @@ -2519,6 +2887,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_stateful_set_status** @@ -2530,34 +2905,38 @@ replace status of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta1Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1StatefulSet() # V1beta1StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta1Api->replace_namespaced_stateful_set_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta1Api->replace_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters @@ -2584,5 +2963,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AppsV1beta1Deployment.md b/kubernetes/docs/AppsV1beta1Deployment.md index ad232d16a0..38c42631dc 100644 --- a/kubernetes/docs/AppsV1beta1Deployment.md +++ b/kubernetes/docs/AppsV1beta1Deployment.md @@ -1,5 +1,6 @@ # AppsV1beta1Deployment +DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1DeploymentCondition.md b/kubernetes/docs/AppsV1beta1DeploymentCondition.md index 245625ef6b..610dba2560 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentCondition.md +++ b/kubernetes/docs/AppsV1beta1DeploymentCondition.md @@ -1,5 +1,6 @@ # AppsV1beta1DeploymentCondition +DeploymentCondition describes the state of a deployment at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1DeploymentList.md b/kubernetes/docs/AppsV1beta1DeploymentList.md index b4dbc5291f..efcd731a8a 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentList.md +++ b/kubernetes/docs/AppsV1beta1DeploymentList.md @@ -1,5 +1,6 @@ # AppsV1beta1DeploymentList +DeploymentList is a list of Deployments. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1DeploymentRollback.md b/kubernetes/docs/AppsV1beta1DeploymentRollback.md index de58285280..97bf16b110 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentRollback.md +++ b/kubernetes/docs/AppsV1beta1DeploymentRollback.md @@ -1,5 +1,6 @@ # AppsV1beta1DeploymentRollback +DEPRECATED. DeploymentRollback stores the information required to rollback a deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1DeploymentSpec.md b/kubernetes/docs/AppsV1beta1DeploymentSpec.md index ae65c4343a..e8bb1fe675 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentSpec.md +++ b/kubernetes/docs/AppsV1beta1DeploymentSpec.md @@ -1,5 +1,6 @@ # AppsV1beta1DeploymentSpec +DeploymentSpec is the specification of the desired behavior of the Deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1DeploymentStatus.md b/kubernetes/docs/AppsV1beta1DeploymentStatus.md index 76e87eb655..ea7517c370 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentStatus.md +++ b/kubernetes/docs/AppsV1beta1DeploymentStatus.md @@ -1,5 +1,6 @@ # AppsV1beta1DeploymentStatus +DeploymentStatus is the most recently observed status of the Deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md index 8cbb7f265c..5241b9b868 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md +++ b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md @@ -1,5 +1,6 @@ # AppsV1beta1DeploymentStrategy +DeploymentStrategy describes how to replace existing pods with new ones. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1RollbackConfig.md b/kubernetes/docs/AppsV1beta1RollbackConfig.md index 14fe324ec0..c7db0b937c 100644 --- a/kubernetes/docs/AppsV1beta1RollbackConfig.md +++ b/kubernetes/docs/AppsV1beta1RollbackConfig.md @@ -1,5 +1,6 @@ # AppsV1beta1RollbackConfig +DEPRECATED. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md index 630a8ead31..fb4b80e9c8 100644 --- a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md +++ b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md @@ -1,5 +1,6 @@ # AppsV1beta1RollingUpdateDeployment +Spec to control the desired behavior of rolling update. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1Scale.md b/kubernetes/docs/AppsV1beta1Scale.md index 7790aa9f12..37d3199923 100644 --- a/kubernetes/docs/AppsV1beta1Scale.md +++ b/kubernetes/docs/AppsV1beta1Scale.md @@ -1,5 +1,6 @@ # AppsV1beta1Scale +Scale represents a scaling request for a resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1ScaleSpec.md b/kubernetes/docs/AppsV1beta1ScaleSpec.md index f3d6b80dcb..c9a2378177 100644 --- a/kubernetes/docs/AppsV1beta1ScaleSpec.md +++ b/kubernetes/docs/AppsV1beta1ScaleSpec.md @@ -1,5 +1,6 @@ # AppsV1beta1ScaleSpec +ScaleSpec describes the attributes of a scale subresource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta1ScaleStatus.md b/kubernetes/docs/AppsV1beta1ScaleStatus.md index 4b38c628a3..93702c7b40 100644 --- a/kubernetes/docs/AppsV1beta1ScaleStatus.md +++ b/kubernetes/docs/AppsV1beta1ScaleStatus.md @@ -1,5 +1,6 @@ # AppsV1beta1ScaleStatus +ScaleStatus represents the current status of a scale subresource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/AppsV1beta2Api.md b/kubernetes/docs/AppsV1beta2Api.md index 612633eba8..11be01ebd6 100644 --- a/kubernetes/docs/AppsV1beta2Api.md +++ b/kubernetes/docs/AppsV1beta2Api.md @@ -77,33 +77,37 @@ create a ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2ControllerRevision() # V1beta2ControllerRevision | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_controller_revision(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->create_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.create_namespaced_controller_revision(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->create_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -129,6 +133,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_daemon_set** @@ -140,33 +152,37 @@ create a DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2DaemonSet() # V1beta2DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->create_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->create_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -192,6 +208,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_deployment** @@ -203,33 +227,37 @@ create a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2Deployment() # V1beta2Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->create_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->create_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -255,6 +283,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_replica_set** @@ -266,33 +302,37 @@ create a ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2ReplicaSet() # V1beta2ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->create_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->create_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -318,6 +358,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_stateful_set** @@ -329,33 +377,37 @@ create a StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2StatefulSet() # V1beta2StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->create_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.create_namespaced_stateful_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->create_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -381,10 +433,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_controller_revision** -> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -392,25 +452,28 @@ delete collection of ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -421,14 +484,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_controller_revision(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -437,7 +499,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -448,8 +509,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -464,10 +524,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_daemon_set** -> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -475,25 +541,28 @@ delete collection of DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -504,14 +573,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -520,7 +588,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -531,8 +598,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -547,10 +613,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -558,25 +630,28 @@ delete collection of Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -587,14 +662,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -603,7 +677,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -614,8 +687,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -630,10 +702,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_replica_set** -> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -641,25 +719,28 @@ delete collection of ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -670,14 +751,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -686,7 +766,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -697,8 +776,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -713,10 +791,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_stateful_set** -> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -724,25 +808,28 @@ delete collection of StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -753,14 +840,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_stateful_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_collection_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -769,7 +855,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -780,8 +865,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -796,6 +880,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_controller_revision** @@ -807,23 +897,27 @@ delete a ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -832,11 +926,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_controller_revision(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -865,6 +959,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_daemon_set** @@ -876,23 +977,27 @@ delete a DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -901,11 +1006,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -934,6 +1039,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_deployment** @@ -945,23 +1057,27 @@ delete a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -970,11 +1086,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -1003,6 +1119,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_replica_set** @@ -1014,23 +1137,27 @@ delete a ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -1039,11 +1166,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -1072,6 +1199,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_stateful_set** @@ -1083,23 +1217,27 @@ delete a StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -1108,11 +1246,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->delete_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_stateful_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->delete_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -1141,6 +1279,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -1152,28 +1297,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -1192,6 +1341,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_controller_revision_for_all_namespaces** @@ -1203,23 +1358,27 @@ list or watch objects of kind ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1229,11 +1388,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_controller_revision_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_controller_revision_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_controller_revision_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1263,6 +1422,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_daemon_set_for_all_namespaces** @@ -1274,23 +1439,27 @@ list or watch objects of kind DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1300,11 +1469,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_daemon_set_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_daemon_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1334,6 +1503,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_deployment_for_all_namespaces** @@ -1345,23 +1520,27 @@ list or watch objects of kind Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1371,11 +1550,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_deployment_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_deployment_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1405,6 +1584,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_controller_revision** @@ -1416,23 +1601,27 @@ list or watch objects of kind ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1443,11 +1632,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.list_namespaced_controller_revision(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -1478,6 +1667,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_daemon_set** @@ -1489,23 +1684,27 @@ list or watch objects of kind DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1516,11 +1715,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -1551,6 +1750,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_deployment** @@ -1562,23 +1767,27 @@ list or watch objects of kind Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1589,11 +1798,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -1624,6 +1833,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_replica_set** @@ -1635,23 +1850,27 @@ list or watch objects of kind ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1662,11 +1881,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -1697,6 +1916,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_stateful_set** @@ -1708,23 +1933,27 @@ list or watch objects of kind StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1735,11 +1964,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.list_namespaced_stateful_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -1770,6 +1999,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_replica_set_for_all_namespaces** @@ -1781,23 +2016,27 @@ list or watch objects of kind ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1807,11 +2046,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_replica_set_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_replica_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1841,6 +2080,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_stateful_set_for_all_namespaces** @@ -1852,23 +2097,27 @@ list or watch objects of kind StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1878,11 +2127,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->list_stateful_set_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_stateful_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->list_stateful_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1912,6 +2161,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_controller_revision** @@ -1923,35 +2178,39 @@ partially update the specified ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -1960,7 +2219,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ControllerRevision | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1979,6 +2238,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_daemon_set** @@ -1990,35 +2255,39 @@ partially update the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -2027,7 +2296,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2046,6 +2315,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_daemon_set_status** @@ -2057,35 +2332,39 @@ partially update status of the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_daemon_set_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters @@ -2094,7 +2373,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2113,6 +2392,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment** @@ -2124,35 +2409,39 @@ partially update the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -2161,7 +2450,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2180,6 +2469,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment_scale** @@ -2191,35 +2486,39 @@ partially update scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -2228,7 +2527,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2247,6 +2546,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment_status** @@ -2258,35 +2563,39 @@ partially update status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -2295,7 +2604,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2314,6 +2623,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replica_set** @@ -2325,35 +2640,39 @@ partially update the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -2362,7 +2681,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2381,6 +2700,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replica_set_scale** @@ -2392,35 +2717,39 @@ partially update scale of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_replica_set_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_replica_set_scale: %s\n" % e) ``` ### Parameters @@ -2429,7 +2758,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2448,6 +2777,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replica_set_status** @@ -2459,35 +2794,39 @@ partially update status of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_replica_set_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -2496,7 +2835,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2515,6 +2854,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_stateful_set** @@ -2526,35 +2871,39 @@ partially update the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -2563,7 +2912,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2582,6 +2931,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_stateful_set_scale** @@ -2593,35 +2948,39 @@ partially update scale of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_stateful_set_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_stateful_set_scale: %s\n" % e) ``` ### Parameters @@ -2630,7 +2989,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2649,6 +3008,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_stateful_set_status** @@ -2660,35 +3025,39 @@ partially update status of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->patch_namespaced_stateful_set_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->patch_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters @@ -2697,7 +3066,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StatefulSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2716,6 +3085,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_controller_revision** @@ -2727,33 +3102,37 @@ read the specified ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_controller_revision(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.read_namespaced_controller_revision(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -2779,6 +3158,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_daemon_set** @@ -2790,33 +3175,37 @@ read the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -2842,6 +3231,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_daemon_set_status** @@ -2853,31 +3248,35 @@ read status of the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_daemon_set_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters @@ -2901,6 +3300,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment** @@ -2912,33 +3317,37 @@ read the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -2964,6 +3373,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment_scale** @@ -2975,31 +3390,35 @@ read scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -3023,6 +3442,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment_status** @@ -3034,31 +3459,35 @@ read status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -3082,6 +3511,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replica_set** @@ -3093,33 +3528,37 @@ read the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -3145,6 +3584,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replica_set_scale** @@ -3156,31 +3601,35 @@ read scale of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_replica_set_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_replica_set_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replica_set_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_replica_set_scale: %s\n" % e) ``` ### Parameters @@ -3204,6 +3653,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replica_set_status** @@ -3215,31 +3670,35 @@ read status of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_replica_set_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_replica_set_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replica_set_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -3263,6 +3722,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_stateful_set** @@ -3274,33 +3739,37 @@ read the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.read_namespaced_stateful_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -3326,6 +3795,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_stateful_set_scale** @@ -3337,31 +3812,35 @@ read scale of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_stateful_set_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_stateful_set_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_stateful_set_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_stateful_set_scale: %s\n" % e) ``` ### Parameters @@ -3385,6 +3864,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_stateful_set_status** @@ -3396,31 +3881,35 @@ read status of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->read_namespaced_stateful_set_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_stateful_set_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->read_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters @@ -3444,6 +3933,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_controller_revision** @@ -3455,34 +3950,38 @@ replace the specified ControllerRevision ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ControllerRevision +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ControllerRevision namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2ControllerRevision() # V1beta2ControllerRevision | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_controller_revision: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_controller_revision(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_controller_revision: %s\n" % e) ``` ### Parameters @@ -3509,6 +4008,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_daemon_set** @@ -3520,34 +4026,38 @@ replace the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2DaemonSet() # V1beta2DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -3574,6 +4084,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_daemon_set_status** @@ -3585,34 +4102,38 @@ replace status of the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2DaemonSet() # V1beta2DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_daemon_set_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters @@ -3639,6 +4160,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment** @@ -3650,34 +4178,38 @@ replace the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2Deployment() # V1beta2Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -3704,6 +4236,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment_scale** @@ -3715,34 +4254,38 @@ replace scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2Scale() # V1beta2Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -3769,6 +4312,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment_status** @@ -3780,34 +4330,38 @@ replace status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2Deployment() # V1beta2Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -3834,6 +4388,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replica_set** @@ -3845,34 +4406,38 @@ replace the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2ReplicaSet() # V1beta2ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -3899,6 +4464,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replica_set_scale** @@ -3910,34 +4482,38 @@ replace scale of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2Scale() # V1beta2Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_replica_set_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_replica_set_scale: %s\n" % e) ``` ### Parameters @@ -3964,6 +4540,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replica_set_status** @@ -3975,34 +4558,38 @@ replace status of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2ReplicaSet() # V1beta2ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_replica_set_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -4029,6 +4616,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_stateful_set** @@ -4040,34 +4634,38 @@ replace the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2StatefulSet() # V1beta2StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_stateful_set: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_stateful_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_stateful_set: %s\n" % e) ``` ### Parameters @@ -4094,6 +4692,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_stateful_set_scale** @@ -4105,34 +4710,38 @@ replace scale of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2Scale() # V1beta2Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_stateful_set_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_stateful_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_stateful_set_scale: %s\n" % e) ``` ### Parameters @@ -4159,6 +4768,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_stateful_set_status** @@ -4170,34 +4786,38 @@ replace status of the specified StatefulSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AppsV1beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StatefulSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AppsV1beta2Api(api_client) + name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta2StatefulSet() # V1beta2StatefulSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AppsV1beta2Api->replace_namespaced_stateful_set_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_stateful_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AppsV1beta2Api->replace_namespaced_stateful_set_status: %s\n" % e) ``` ### Parameters @@ -4224,5 +4844,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuditregistrationApi.md b/kubernetes/docs/AuditregistrationApi.md index 3b019b0091..03c22a277c 100644 --- a/kubernetes/docs/AuditregistrationApi.md +++ b/kubernetes/docs/AuditregistrationApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuditregistrationApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuditregistrationApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuditregistrationApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling AuditregistrationApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuditregistrationV1alpha1Api.md b/kubernetes/docs/AuditregistrationV1alpha1Api.md index 6b1a0ebf6c..0be136e630 100644 --- a/kubernetes/docs/AuditregistrationV1alpha1Api.md +++ b/kubernetes/docs/AuditregistrationV1alpha1Api.md @@ -23,32 +23,36 @@ create an AuditSink ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1alpha1AuditSink() # V1alpha1AuditSink | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuditregistrationV1alpha1Api(api_client) + body = kubernetes.client.V1alpha1AuditSink() # V1alpha1AuditSink | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_audit_sink(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuditregistrationV1alpha1Api->create_audit_sink: %s\n" % e) + try: + api_response = api_instance.create_audit_sink(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuditregistrationV1alpha1Api->create_audit_sink: %s\n" % e) ``` ### Parameters @@ -73,6 +77,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_audit_sink** @@ -84,23 +96,27 @@ delete an AuditSink ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the AuditSink +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuditregistrationV1alpha1Api(api_client) + name = 'name_example' # str | name of the AuditSink pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -108,11 +124,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_audit_sink(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuditregistrationV1alpha1Api->delete_audit_sink: %s\n" % e) + try: + api_response = api_instance.delete_audit_sink(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuditregistrationV1alpha1Api->delete_audit_sink: %s\n" % e) ``` ### Parameters @@ -140,10 +156,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_audit_sink** -> V1Status delete_collection_audit_sink(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_audit_sink(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -151,24 +174,27 @@ delete collection of AuditSink ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuditregistrationV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -179,14 +205,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_audit_sink(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuditregistrationV1alpha1Api->delete_collection_audit_sink: %s\n" % e) + try: + api_response = api_instance.delete_collection_audit_sink(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuditregistrationV1alpha1Api->delete_collection_audit_sink: %s\n" % e) ``` ### Parameters @@ -194,7 +219,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -205,8 +229,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -221,6 +244,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -232,28 +261,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuditregistrationV1alpha1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuditregistrationV1alpha1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AuditregistrationV1alpha1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -272,6 +305,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_audit_sink** @@ -283,23 +322,27 @@ list or watch objects of kind AuditSink ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuditregistrationV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -309,11 +352,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_audit_sink(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuditregistrationV1alpha1Api->list_audit_sink: %s\n" % e) + try: + api_response = api_instance.list_audit_sink(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuditregistrationV1alpha1Api->list_audit_sink: %s\n" % e) ``` ### Parameters @@ -343,6 +386,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_audit_sink** @@ -354,34 +403,38 @@ partially update the specified AuditSink ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the AuditSink -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuditregistrationV1alpha1Api(api_client) + name = 'name_example' # str | name of the AuditSink +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_audit_sink(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuditregistrationV1alpha1Api->patch_audit_sink: %s\n" % e) + try: + api_response = api_instance.patch_audit_sink(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuditregistrationV1alpha1Api->patch_audit_sink: %s\n" % e) ``` ### Parameters @@ -389,7 +442,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the AuditSink | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -408,6 +461,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_audit_sink** @@ -419,32 +478,36 @@ read the specified AuditSink ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the AuditSink +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuditregistrationV1alpha1Api(api_client) + name = 'name_example' # str | name of the AuditSink pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_audit_sink(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuditregistrationV1alpha1Api->read_audit_sink: %s\n" % e) + try: + api_response = api_instance.read_audit_sink(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuditregistrationV1alpha1Api->read_audit_sink: %s\n" % e) ``` ### Parameters @@ -469,6 +532,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_audit_sink** @@ -480,33 +549,37 @@ replace the specified AuditSink ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuditregistrationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the AuditSink +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuditregistrationV1alpha1Api(api_client) + name = 'name_example' # str | name of the AuditSink body = kubernetes.client.V1alpha1AuditSink() # V1alpha1AuditSink | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_audit_sink(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuditregistrationV1alpha1Api->replace_audit_sink: %s\n" % e) + try: + api_response = api_instance.replace_audit_sink(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuditregistrationV1alpha1Api->replace_audit_sink: %s\n" % e) ``` ### Parameters @@ -532,5 +605,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthenticationApi.md b/kubernetes/docs/AuthenticationApi.md index 163ab2bf22..6adbe1b0f9 100644 --- a/kubernetes/docs/AuthenticationApi.md +++ b/kubernetes/docs/AuthenticationApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthenticationApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthenticationApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthenticationApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthenticationV1Api.md b/kubernetes/docs/AuthenticationV1Api.md index bba28b261a..c8e30ea699 100644 --- a/kubernetes/docs/AuthenticationV1Api.md +++ b/kubernetes/docs/AuthenticationV1Api.md @@ -17,32 +17,36 @@ create a TokenReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthenticationV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1TokenReview() # V1TokenReview | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthenticationV1Api(api_client) + body = kubernetes.client.V1TokenReview() # V1TokenReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_token_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationV1Api->create_token_review: %s\n" % e) + try: + api_response = api_instance.create_token_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthenticationV1Api->create_token_review: %s\n" % e) ``` ### Parameters @@ -67,6 +71,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -78,28 +90,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthenticationV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthenticationV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthenticationV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -118,5 +134,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthenticationV1beta1Api.md b/kubernetes/docs/AuthenticationV1beta1Api.md index a4f106dad9..56f1930a30 100644 --- a/kubernetes/docs/AuthenticationV1beta1Api.md +++ b/kubernetes/docs/AuthenticationV1beta1Api.md @@ -17,32 +17,36 @@ create a TokenReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthenticationV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1TokenReview() # V1beta1TokenReview | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthenticationV1beta1Api(api_client) + body = kubernetes.client.V1beta1TokenReview() # V1beta1TokenReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_token_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationV1beta1Api->create_token_review: %s\n" % e) + try: + api_response = api_instance.create_token_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthenticationV1beta1Api->create_token_review: %s\n" % e) ``` ### Parameters @@ -67,6 +71,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -78,28 +90,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthenticationV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthenticationV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthenticationV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthenticationV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -118,5 +134,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthorizationApi.md b/kubernetes/docs/AuthorizationApi.md index bf0ae7092f..5282412505 100644 --- a/kubernetes/docs/AuthorizationApi.md +++ b/kubernetes/docs/AuthorizationApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthorizationV1Api.md b/kubernetes/docs/AuthorizationV1Api.md index e072fdae9b..50f6470734 100644 --- a/kubernetes/docs/AuthorizationV1Api.md +++ b/kubernetes/docs/AuthorizationV1Api.md @@ -20,33 +20,37 @@ create a LocalSubjectAccessReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1LocalSubjectAccessReview() # V1LocalSubjectAccessReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1Api->create_namespaced_local_subject_access_review: %s\n" % e) + try: + api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1Api->create_namespaced_local_subject_access_review: %s\n" % e) ``` ### Parameters @@ -72,6 +76,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_self_subject_access_review** @@ -83,32 +95,36 @@ create a SelfSubjectAccessReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1SelfSubjectAccessReview() # V1SelfSubjectAccessReview | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1Api(api_client) + body = kubernetes.client.V1SelfSubjectAccessReview() # V1SelfSubjectAccessReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_self_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1Api->create_self_subject_access_review: %s\n" % e) + try: + api_response = api_instance.create_self_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1Api->create_self_subject_access_review: %s\n" % e) ``` ### Parameters @@ -133,6 +149,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_self_subject_rules_review** @@ -144,32 +168,36 @@ create a SelfSubjectRulesReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1SelfSubjectRulesReview() # V1SelfSubjectRulesReview | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1Api(api_client) + body = kubernetes.client.V1SelfSubjectRulesReview() # V1SelfSubjectRulesReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_self_subject_rules_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1Api->create_self_subject_rules_review: %s\n" % e) + try: + api_response = api_instance.create_self_subject_rules_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1Api->create_self_subject_rules_review: %s\n" % e) ``` ### Parameters @@ -194,6 +222,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_subject_access_review** @@ -205,32 +241,36 @@ create a SubjectAccessReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1SubjectAccessReview() # V1SubjectAccessReview | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1Api(api_client) + body = kubernetes.client.V1SubjectAccessReview() # V1SubjectAccessReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1Api->create_subject_access_review: %s\n" % e) + try: + api_response = api_instance.create_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1Api->create_subject_access_review: %s\n" % e) ``` ### Parameters @@ -255,6 +295,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -266,28 +314,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -306,5 +358,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AuthorizationV1beta1Api.md b/kubernetes/docs/AuthorizationV1beta1Api.md index cb20c10cd9..c9f1216ec3 100644 --- a/kubernetes/docs/AuthorizationV1beta1Api.md +++ b/kubernetes/docs/AuthorizationV1beta1Api.md @@ -20,33 +20,37 @@ create a LocalSubjectAccessReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1LocalSubjectAccessReview() # V1beta1LocalSubjectAccessReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1beta1Api->create_namespaced_local_subject_access_review: %s\n" % e) + try: + api_response = api_instance.create_namespaced_local_subject_access_review(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1beta1Api->create_namespaced_local_subject_access_review: %s\n" % e) ``` ### Parameters @@ -72,6 +76,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_self_subject_access_review** @@ -83,32 +95,36 @@ create a SelfSubjectAccessReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1SelfSubjectAccessReview() # V1beta1SelfSubjectAccessReview | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1beta1Api(api_client) + body = kubernetes.client.V1beta1SelfSubjectAccessReview() # V1beta1SelfSubjectAccessReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_self_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1beta1Api->create_self_subject_access_review: %s\n" % e) + try: + api_response = api_instance.create_self_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1beta1Api->create_self_subject_access_review: %s\n" % e) ``` ### Parameters @@ -133,6 +149,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_self_subject_rules_review** @@ -144,32 +168,36 @@ create a SelfSubjectRulesReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1SelfSubjectRulesReview() # V1beta1SelfSubjectRulesReview | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1beta1Api(api_client) + body = kubernetes.client.V1beta1SelfSubjectRulesReview() # V1beta1SelfSubjectRulesReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_self_subject_rules_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1beta1Api->create_self_subject_rules_review: %s\n" % e) + try: + api_response = api_instance.create_self_subject_rules_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1beta1Api->create_self_subject_rules_review: %s\n" % e) ``` ### Parameters @@ -194,6 +222,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_subject_access_review** @@ -205,32 +241,36 @@ create a SubjectAccessReview ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1SubjectAccessReview() # V1beta1SubjectAccessReview | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1beta1Api(api_client) + body = kubernetes.client.V1beta1SubjectAccessReview() # V1beta1SubjectAccessReview | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1beta1Api->create_subject_access_review: %s\n" % e) + try: + api_response = api_instance.create_subject_access_review(body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1beta1Api->create_subject_access_review: %s\n" % e) ``` ### Parameters @@ -255,6 +295,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -266,28 +314,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AuthorizationV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AuthorizationV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AuthorizationV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -306,5 +358,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AutoscalingApi.md b/kubernetes/docs/AutoscalingApi.md index 238726e9eb..e02697dac1 100644 --- a/kubernetes/docs/AutoscalingApi.md +++ b/kubernetes/docs/AutoscalingApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AutoscalingV1Api.md b/kubernetes/docs/AutoscalingV1Api.md index 9834b9a377..6262c1d8d9 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -27,33 +27,37 @@ create a HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1HorizontalPodAutoscaler() # V1HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->create_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->create_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -79,10 +83,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_horizontal_pod_autoscaler** -> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -90,25 +102,28 @@ delete collection of HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -119,14 +134,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -135,7 +149,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -146,8 +159,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -162,6 +174,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_horizontal_pod_autoscaler** @@ -173,23 +191,27 @@ delete a HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -198,11 +220,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -231,6 +253,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -242,28 +271,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -282,6 +315,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_horizontal_pod_autoscaler_for_all_namespaces** @@ -293,23 +332,27 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -319,11 +362,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -353,6 +396,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_horizontal_pod_autoscaler** @@ -364,23 +413,27 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -391,11 +444,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -426,6 +479,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_horizontal_pod_autoscaler** @@ -437,35 +496,39 @@ partially update the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->patch_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->patch_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -474,7 +537,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -493,6 +556,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_horizontal_pod_autoscaler_status** @@ -504,35 +573,39 @@ partially update status of the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->patch_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->patch_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters @@ -541,7 +614,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -560,6 +633,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_horizontal_pod_autoscaler** @@ -571,33 +650,37 @@ read the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->read_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->read_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -623,6 +706,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_horizontal_pod_autoscaler_status** @@ -634,31 +723,35 @@ read status of the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->read_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->read_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters @@ -682,6 +775,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_horizontal_pod_autoscaler** @@ -693,34 +792,38 @@ replace the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1HorizontalPodAutoscaler() # V1HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->replace_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->replace_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -747,6 +850,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_horizontal_pod_autoscaler_status** @@ -758,34 +868,38 @@ replace status of the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1HorizontalPodAutoscaler() # V1HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV1Api->replace_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV1Api->replace_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters @@ -812,5 +926,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AutoscalingV2beta1Api.md b/kubernetes/docs/AutoscalingV2beta1Api.md index 0b863556b3..a19339aa5a 100644 --- a/kubernetes/docs/AutoscalingV2beta1Api.md +++ b/kubernetes/docs/AutoscalingV2beta1Api.md @@ -27,33 +27,37 @@ create a HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V2beta1HorizontalPodAutoscaler() # V2beta1HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->create_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->create_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -79,10 +83,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_horizontal_pod_autoscaler** -> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -90,25 +102,28 @@ delete collection of HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -119,14 +134,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -135,7 +149,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -146,8 +159,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -162,6 +174,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_horizontal_pod_autoscaler** @@ -173,23 +191,27 @@ delete a HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -198,11 +220,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -231,6 +253,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -242,28 +271,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -282,6 +315,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_horizontal_pod_autoscaler_for_all_namespaces** @@ -293,23 +332,27 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -319,11 +362,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -353,6 +396,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_horizontal_pod_autoscaler** @@ -364,23 +413,27 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -391,11 +444,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -426,6 +479,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_horizontal_pod_autoscaler** @@ -437,35 +496,39 @@ partially update the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->patch_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->patch_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -474,7 +537,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -493,6 +556,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_horizontal_pod_autoscaler_status** @@ -504,35 +573,39 @@ partially update status of the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->patch_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->patch_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters @@ -541,7 +614,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -560,6 +633,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_horizontal_pod_autoscaler** @@ -571,33 +650,37 @@ read the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->read_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->read_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -623,6 +706,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_horizontal_pod_autoscaler_status** @@ -634,31 +723,35 @@ read status of the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->read_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->read_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters @@ -682,6 +775,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_horizontal_pod_autoscaler** @@ -693,34 +792,38 @@ replace the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V2beta1HorizontalPodAutoscaler() # V2beta1HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->replace_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->replace_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -747,6 +850,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_horizontal_pod_autoscaler_status** @@ -758,34 +868,38 @@ replace status of the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta1Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V2beta1HorizontalPodAutoscaler() # V2beta1HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta1Api->replace_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta1Api->replace_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters @@ -812,5 +926,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AutoscalingV2beta2Api.md b/kubernetes/docs/AutoscalingV2beta2Api.md index 073271dac8..3a8186392d 100644 --- a/kubernetes/docs/AutoscalingV2beta2Api.md +++ b/kubernetes/docs/AutoscalingV2beta2Api.md @@ -27,33 +27,37 @@ create a HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V2beta2HorizontalPodAutoscaler() # V2beta2HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->create_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.create_namespaced_horizontal_pod_autoscaler(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->create_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -79,10 +83,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_horizontal_pod_autoscaler** -> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -90,25 +102,28 @@ delete collection of HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -119,14 +134,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->delete_collection_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -135,7 +149,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -146,8 +159,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -162,6 +174,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_horizontal_pod_autoscaler** @@ -173,23 +191,27 @@ delete a HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -198,11 +220,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->delete_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -231,6 +253,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -242,28 +271,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -282,6 +315,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_horizontal_pod_autoscaler_for_all_namespaces** @@ -293,23 +332,27 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -319,11 +362,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_horizontal_pod_autoscaler_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->list_horizontal_pod_autoscaler_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -353,6 +396,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_horizontal_pod_autoscaler** @@ -364,23 +413,27 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -391,11 +444,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.list_namespaced_horizontal_pod_autoscaler(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->list_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -426,6 +479,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_horizontal_pod_autoscaler** @@ -437,35 +496,39 @@ partially update the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->patch_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->patch_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -474,7 +537,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -493,6 +556,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_horizontal_pod_autoscaler_status** @@ -504,35 +573,39 @@ partially update status of the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->patch_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->patch_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters @@ -541,7 +614,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -560,6 +633,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_horizontal_pod_autoscaler** @@ -571,33 +650,37 @@ read the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->read_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.read_namespaced_horizontal_pod_autoscaler(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->read_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -623,6 +706,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_horizontal_pod_autoscaler_status** @@ -634,31 +723,35 @@ read status of the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->read_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_horizontal_pod_autoscaler_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->read_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters @@ -682,6 +775,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_horizontal_pod_autoscaler** @@ -693,34 +792,38 @@ replace the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V2beta2HorizontalPodAutoscaler() # V2beta2HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->replace_namespaced_horizontal_pod_autoscaler: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->replace_namespaced_horizontal_pod_autoscaler: %s\n" % e) ``` ### Parameters @@ -747,6 +850,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_horizontal_pod_autoscaler_status** @@ -758,34 +868,38 @@ replace status of the specified HorizontalPodAutoscaler ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.AutoscalingV2beta2Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the HorizontalPodAutoscaler +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.AutoscalingV2beta2Api(api_client) + name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V2beta2HorizontalPodAutoscaler() # V2beta2HorizontalPodAutoscaler | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling AutoscalingV2beta2Api->replace_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_horizontal_pod_autoscaler_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling AutoscalingV2beta2Api->replace_namespaced_horizontal_pod_autoscaler_status: %s\n" % e) ``` ### Parameters @@ -812,5 +926,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/BatchApi.md b/kubernetes/docs/BatchApi.md index dcf481f329..4bdb483794 100644 --- a/kubernetes/docs/BatchApi.md +++ b/kubernetes/docs/BatchApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/BatchV1Api.md b/kubernetes/docs/BatchV1Api.md index f8e3ab2fc1..53eb236417 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -27,33 +27,37 @@ create a Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Job() # V1Job | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_job(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->create_namespaced_job: %s\n" % e) + try: + api_response = api_instance.create_namespaced_job(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->create_namespaced_job: %s\n" % e) ``` ### Parameters @@ -79,10 +83,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_job** -> V1Status delete_collection_namespaced_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_job(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -90,25 +102,28 @@ delete collection of Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -119,14 +134,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->delete_collection_namespaced_job: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_job(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->delete_collection_namespaced_job: %s\n" % e) ``` ### Parameters @@ -135,7 +149,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -146,8 +159,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -162,6 +174,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_job** @@ -173,23 +191,27 @@ delete a Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Job +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -198,11 +220,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->delete_namespaced_job: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->delete_namespaced_job: %s\n" % e) ``` ### Parameters @@ -231,6 +253,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -242,28 +271,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -282,6 +315,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_job_for_all_namespaces** @@ -293,23 +332,27 @@ list or watch objects of kind Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -319,11 +362,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->list_job_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->list_job_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -353,6 +396,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_job** @@ -364,23 +413,27 @@ list or watch objects of kind Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -391,11 +444,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->list_namespaced_job: %s\n" % e) + try: + api_response = api_instance.list_namespaced_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->list_namespaced_job: %s\n" % e) ``` ### Parameters @@ -426,6 +479,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_job** @@ -437,35 +496,39 @@ partially update the specified Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Job +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->patch_namespaced_job: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->patch_namespaced_job: %s\n" % e) ``` ### Parameters @@ -474,7 +537,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -493,6 +556,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_job_status** @@ -504,35 +573,39 @@ partially update status of the specified Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Job +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->patch_namespaced_job_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->patch_namespaced_job_status: %s\n" % e) ``` ### Parameters @@ -541,7 +614,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -560,6 +633,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_job** @@ -571,33 +650,37 @@ read the specified Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Job +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->read_namespaced_job: %s\n" % e) + try: + api_response = api_instance.read_namespaced_job(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->read_namespaced_job: %s\n" % e) ``` ### Parameters @@ -623,6 +706,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_job_status** @@ -634,31 +723,35 @@ read status of the specified Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Job +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_job_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->read_namespaced_job_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_job_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->read_namespaced_job_status: %s\n" % e) ``` ### Parameters @@ -682,6 +775,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_job** @@ -693,34 +792,38 @@ replace the specified Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Job +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Job() # V1Job | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->replace_namespaced_job: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->replace_namespaced_job: %s\n" % e) ``` ### Parameters @@ -747,6 +850,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_job_status** @@ -758,34 +868,38 @@ replace status of the specified Job ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Job +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1Api(api_client) + name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Job() # V1Job | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1Api->replace_namespaced_job_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1Api->replace_namespaced_job_status: %s\n" % e) ``` ### Parameters @@ -812,5 +926,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/BatchV1beta1Api.md b/kubernetes/docs/BatchV1beta1Api.md index e39255f8cf..b437fa9bc8 100644 --- a/kubernetes/docs/BatchV1beta1Api.md +++ b/kubernetes/docs/BatchV1beta1Api.md @@ -27,33 +27,37 @@ create a CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1CronJob() # V1beta1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_cron_job(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->create_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.create_namespaced_cron_job(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->create_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -79,10 +83,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_cron_job** -> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -90,25 +102,28 @@ delete collection of CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -119,14 +134,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->delete_collection_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->delete_collection_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -135,7 +149,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -146,8 +159,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -162,6 +174,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_cron_job** @@ -173,23 +191,27 @@ delete a CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -198,11 +220,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_cron_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->delete_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_cron_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->delete_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -231,6 +253,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -242,28 +271,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -282,6 +315,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cron_job_for_all_namespaces** @@ -293,23 +332,27 @@ list or watch objects of kind CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -319,11 +362,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cron_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->list_cron_job_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_cron_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->list_cron_job_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -353,6 +396,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_cron_job** @@ -364,23 +413,27 @@ list or watch objects of kind CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -391,11 +444,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->list_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->list_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -426,6 +479,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_cron_job** @@ -437,35 +496,39 @@ partially update the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->patch_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->patch_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -474,7 +537,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -493,6 +556,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_cron_job_status** @@ -504,35 +573,39 @@ partially update status of the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->patch_namespaced_cron_job_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->patch_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters @@ -541,7 +614,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -560,6 +633,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_cron_job** @@ -571,33 +650,37 @@ read the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->read_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->read_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -623,6 +706,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_cron_job_status** @@ -634,31 +723,35 @@ read status of the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->read_namespaced_cron_job_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->read_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters @@ -682,6 +775,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_cron_job** @@ -693,34 +792,38 @@ replace the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1CronJob() # V1beta1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->replace_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->replace_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -747,6 +850,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_cron_job_status** @@ -758,34 +868,38 @@ replace status of the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV1beta1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1CronJob() # V1beta1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV1beta1Api->replace_namespaced_cron_job_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV1beta1Api->replace_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters @@ -812,5 +926,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/BatchV2alpha1Api.md b/kubernetes/docs/BatchV2alpha1Api.md index 4306647b73..9e588f8806 100644 --- a/kubernetes/docs/BatchV2alpha1Api.md +++ b/kubernetes/docs/BatchV2alpha1Api.md @@ -27,33 +27,37 @@ create a CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_cron_job(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->create_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.create_namespaced_cron_job(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->create_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -79,10 +83,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_cron_job** -> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -90,25 +102,28 @@ delete collection of CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -119,14 +134,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->delete_collection_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_cron_job(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->delete_collection_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -135,7 +149,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -146,8 +159,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -162,6 +174,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_cron_job** @@ -173,23 +191,27 @@ delete a CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -198,11 +220,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_cron_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->delete_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_cron_job(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->delete_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -231,6 +253,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -242,28 +271,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -282,6 +315,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cron_job_for_all_namespaces** @@ -293,23 +332,27 @@ list or watch objects of kind CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -319,11 +362,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cron_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->list_cron_job_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_cron_job_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->list_cron_job_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -353,6 +396,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_cron_job** @@ -364,23 +413,27 @@ list or watch objects of kind CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -391,11 +444,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->list_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.list_namespaced_cron_job(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->list_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -426,6 +479,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_cron_job** @@ -437,35 +496,39 @@ partially update the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -474,7 +537,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -493,6 +556,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_cron_job_status** @@ -504,35 +573,39 @@ partially update status of the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->patch_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters @@ -541,7 +614,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -560,6 +633,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_cron_job** @@ -571,33 +650,37 @@ read the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.read_namespaced_cron_job(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -623,6 +706,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_cron_job_status** @@ -634,31 +723,35 @@ read status of the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_cron_job_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->read_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters @@ -682,6 +775,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_cron_job** @@ -693,34 +792,38 @@ replace the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_cron_job(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job: %s\n" % e) ``` ### Parameters @@ -747,6 +850,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_cron_job_status** @@ -758,34 +868,38 @@ replace status of the specified CronJob ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.BatchV2alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CronJob +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.BatchV2alpha1Api(api_client) + name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V2alpha1CronJob() # V2alpha1CronJob | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_cron_job_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling BatchV2alpha1Api->replace_namespaced_cron_job_status: %s\n" % e) ``` ### Parameters @@ -812,5 +926,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CertificatesApi.md b/kubernetes/docs/CertificatesApi.md index 99d8ebc83a..a4e771f0e9 100644 --- a/kubernetes/docs/CertificatesApi.md +++ b/kubernetes/docs/CertificatesApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CertificatesV1beta1Api.md b/kubernetes/docs/CertificatesV1beta1Api.md index 85567d95c1..74d62f367b 100644 --- a/kubernetes/docs/CertificatesV1beta1Api.md +++ b/kubernetes/docs/CertificatesV1beta1Api.md @@ -27,32 +27,36 @@ create a CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_certificate_signing_request(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->create_certificate_signing_request: %s\n" % e) + try: + api_response = api_instance.create_certificate_signing_request(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->create_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -77,6 +81,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_certificate_signing_request** @@ -88,23 +100,27 @@ delete a CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CertificateSigningRequest +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -112,11 +128,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_certificate_signing_request(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->delete_certificate_signing_request: %s\n" % e) + try: + api_response = api_instance.delete_certificate_signing_request(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->delete_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -144,10 +160,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_certificate_signing_request** -> V1Status delete_collection_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_certificate_signing_request(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -155,24 +178,27 @@ delete collection of CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -183,14 +209,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->delete_collection_certificate_signing_request: %s\n" % e) + try: + api_response = api_instance.delete_collection_certificate_signing_request(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->delete_collection_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -198,7 +223,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -209,8 +233,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -225,6 +248,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -236,28 +265,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -276,6 +309,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_certificate_signing_request** @@ -287,23 +326,27 @@ list or watch objects of kind CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -313,11 +356,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->list_certificate_signing_request: %s\n" % e) + try: + api_response = api_instance.list_certificate_signing_request(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->list_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -347,6 +390,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_certificate_signing_request** @@ -358,34 +407,38 @@ partially update the specified CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CertificateSigningRequest -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->patch_certificate_signing_request: %s\n" % e) + try: + api_response = api_instance.patch_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->patch_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -393,7 +446,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -412,6 +465,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_certificate_signing_request_status** @@ -423,34 +482,38 @@ partially update status of the specified CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CertificateSigningRequest -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->patch_certificate_signing_request_status: %s\n" % e) + try: + api_response = api_instance.patch_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->patch_certificate_signing_request_status: %s\n" % e) ``` ### Parameters @@ -458,7 +521,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -477,6 +540,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_certificate_signing_request** @@ -488,32 +557,36 @@ read the specified CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CertificateSigningRequest +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->read_certificate_signing_request: %s\n" % e) + try: + api_response = api_instance.read_certificate_signing_request(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->read_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -538,6 +611,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_certificate_signing_request_status** @@ -549,30 +628,34 @@ read status of the specified CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CertificateSigningRequest +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_certificate_signing_request_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->read_certificate_signing_request_status: %s\n" % e) + try: + api_response = api_instance.read_certificate_signing_request_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->read_certificate_signing_request_status: %s\n" % e) ``` ### Parameters @@ -595,6 +678,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_certificate_signing_request** @@ -606,33 +695,37 @@ replace the specified CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CertificateSigningRequest +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request: %s\n" % e) + try: + api_response = api_instance.replace_certificate_signing_request(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request: %s\n" % e) ``` ### Parameters @@ -658,6 +751,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_certificate_signing_request_approval** @@ -669,33 +769,37 @@ replace approval of the specified CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CertificateSigningRequest +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.replace_certificate_signing_request_approval(name, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request_approval: %s\n" % e) + try: + api_response = api_instance.replace_certificate_signing_request_approval(name, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request_approval: %s\n" % e) ``` ### Parameters @@ -721,6 +825,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_certificate_signing_request_status** @@ -732,33 +843,37 @@ replace status of the specified CertificateSigningRequest ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CertificatesV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CertificateSigningRequest +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CertificatesV1beta1Api(api_client) + name = 'name_example' # str | name of the CertificateSigningRequest body = kubernetes.client.V1beta1CertificateSigningRequest() # V1beta1CertificateSigningRequest | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request_status: %s\n" % e) + try: + api_response = api_instance.replace_certificate_signing_request_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CertificatesV1beta1Api->replace_certificate_signing_request_status: %s\n" % e) ``` ### Parameters @@ -784,5 +899,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoordinationApi.md b/kubernetes/docs/CoordinationApi.md index 5d4f275dc7..6aee2aa9e9 100644 --- a/kubernetes/docs/CoordinationApi.md +++ b/kubernetes/docs/CoordinationApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoordinationV1Api.md b/kubernetes/docs/CoordinationV1Api.md index 04768a4d13..3fc6fbee06 100644 --- a/kubernetes/docs/CoordinationV1Api.md +++ b/kubernetes/docs/CoordinationV1Api.md @@ -24,33 +24,37 @@ create a Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Lease() # V1Lease | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_lease(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1Api->create_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.create_namespaced_lease(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1Api->create_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -76,10 +80,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_lease** -> V1Status delete_collection_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_lease(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -87,25 +99,28 @@ delete collection of Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -116,14 +131,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1Api->delete_collection_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_lease(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1Api->delete_collection_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -132,7 +146,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -143,8 +156,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -159,6 +171,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_lease** @@ -170,23 +188,27 @@ delete a Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Lease +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1Api(api_client) + name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -195,11 +217,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_lease(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1Api->delete_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_lease(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1Api->delete_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -228,6 +250,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -239,28 +268,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -279,6 +312,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_lease_for_all_namespaces** @@ -290,23 +329,27 @@ list or watch objects of kind Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -316,11 +359,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_lease_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1Api->list_lease_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_lease_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1Api->list_lease_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -350,6 +393,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_lease** @@ -361,23 +410,27 @@ list or watch objects of kind Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -388,11 +441,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1Api->list_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.list_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1Api->list_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -423,6 +476,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_lease** @@ -434,35 +493,39 @@ partially update the specified Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Lease +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1Api(api_client) + name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1Api->patch_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1Api->patch_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -471,7 +534,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Lease | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -490,6 +553,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_lease** @@ -501,33 +570,37 @@ read the specified Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Lease +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1Api(api_client) + name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_lease(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1Api->read_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.read_namespaced_lease(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1Api->read_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -553,6 +626,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_lease** @@ -564,34 +643,38 @@ replace the specified Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Lease +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1Api(api_client) + name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Lease() # V1Lease | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1Api->replace_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1Api->replace_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -618,5 +701,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoordinationV1beta1Api.md b/kubernetes/docs/CoordinationV1beta1Api.md index f7b0f90df6..96ba78dd11 100644 --- a/kubernetes/docs/CoordinationV1beta1Api.md +++ b/kubernetes/docs/CoordinationV1beta1Api.md @@ -24,33 +24,37 @@ create a Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1Lease() # V1beta1Lease | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_lease(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1beta1Api->create_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.create_namespaced_lease(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1beta1Api->create_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -76,10 +80,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_lease** -> V1Status delete_collection_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_lease(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -87,25 +99,28 @@ delete collection of Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -116,14 +131,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1beta1Api->delete_collection_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_lease(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1beta1Api->delete_collection_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -132,7 +146,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -143,8 +156,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -159,6 +171,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_lease** @@ -170,23 +188,27 @@ delete a Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Lease +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1beta1Api(api_client) + name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -195,11 +217,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_lease(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1beta1Api->delete_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_lease(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1beta1Api->delete_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -228,6 +250,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -239,28 +268,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -279,6 +312,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_lease_for_all_namespaces** @@ -290,23 +329,27 @@ list or watch objects of kind Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -316,11 +359,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_lease_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1beta1Api->list_lease_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_lease_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1beta1Api->list_lease_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -350,6 +393,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_lease** @@ -361,23 +410,27 @@ list or watch objects of kind Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -388,11 +441,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1beta1Api->list_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.list_namespaced_lease(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1beta1Api->list_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -423,6 +476,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_lease** @@ -434,35 +493,39 @@ partially update the specified Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Lease +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1beta1Api(api_client) + name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1beta1Api->patch_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1beta1Api->patch_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -471,7 +534,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Lease | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -490,6 +553,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_lease** @@ -501,33 +570,37 @@ read the specified Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Lease +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1beta1Api(api_client) + name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_lease(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1beta1Api->read_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.read_namespaced_lease(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1beta1Api->read_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -553,6 +626,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_lease** @@ -564,34 +643,38 @@ replace the specified Lease ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoordinationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Lease +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoordinationV1beta1Api(api_client) + name = 'name_example' # str | name of the Lease namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1Lease() # V1beta1Lease | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoordinationV1beta1Api->replace_namespaced_lease: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_lease(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoordinationV1beta1Api->replace_namespaced_lease: %s\n" % e) ``` ### Parameters @@ -618,5 +701,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoreApi.md b/kubernetes/docs/CoreApi.md index 55604f5adc..bfc761579e 100644 --- a/kubernetes/docs/CoreApi.md +++ b/kubernetes/docs/CoreApi.md @@ -16,28 +16,32 @@ get available API versions ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_versions() - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreApi->get_api_versions: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreApi(api_client) + + try: + api_response = api_instance.get_api_versions() + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreApi->get_api_versions: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CoreV1Api.md b/kubernetes/docs/CoreV1Api.md index a78cbb2133..3fa3ee0fb4 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -214,31 +214,35 @@ connect DELETE requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_delete_namespaced_pod_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_delete_namespaced_pod_proxy: %s\n" % e) + try: + api_response = api_instance.connect_delete_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_delete_namespaced_pod_proxy: %s\n" % e) ``` ### Parameters @@ -262,6 +266,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_delete_namespaced_pod_proxy_with_path** @@ -273,32 +283,36 @@ connect DELETE requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_delete_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_delete_namespaced_pod_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_delete_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_delete_namespaced_pod_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -323,6 +337,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_delete_namespaced_service_proxy** @@ -334,31 +354,35 @@ connect DELETE requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_delete_namespaced_service_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_delete_namespaced_service_proxy: %s\n" % e) + try: + api_response = api_instance.connect_delete_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_delete_namespaced_service_proxy: %s\n" % e) ``` ### Parameters @@ -382,6 +406,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_delete_namespaced_service_proxy_with_path** @@ -393,32 +423,36 @@ connect DELETE requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_delete_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_delete_namespaced_service_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_delete_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_delete_namespaced_service_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -443,6 +477,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_delete_node_proxy** @@ -454,30 +494,34 @@ connect DELETE requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_delete_node_proxy(name, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_delete_node_proxy: %s\n" % e) + try: + api_response = api_instance.connect_delete_node_proxy(name, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_delete_node_proxy: %s\n" % e) ``` ### Parameters @@ -500,6 +544,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_delete_node_proxy_with_path** @@ -511,31 +561,35 @@ connect DELETE requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_delete_node_proxy_with_path(name, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_delete_node_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_delete_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_delete_node_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -559,6 +613,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_namespaced_pod_attach** @@ -570,23 +630,27 @@ connect GET requests to attach of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodAttachOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodAttachOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects container = 'container_example' # str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) stderr = True # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) @@ -594,11 +658,11 @@ stdin = True # bool | Stdin if true, redirects the standard input stream of the stdout = True # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) tty = True # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) -try: - api_response = api_instance.connect_get_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_get_namespaced_pod_attach: %s\n" % e) + try: + api_response = api_instance.connect_get_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_get_namespaced_pod_attach: %s\n" % e) ``` ### Parameters @@ -626,6 +690,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_namespaced_pod_exec** @@ -637,23 +707,27 @@ connect GET requests to exec of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodExecOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodExecOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects command = 'command_example' # str | Command is the remote command to execute. argv array. Not executed within a shell. (optional) container = 'container_example' # str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) @@ -662,11 +736,11 @@ stdin = True # bool | Redirect the standard input stream of the pod for this cal stdout = True # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional) tty = True # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) -try: - api_response = api_instance.connect_get_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_get_namespaced_pod_exec: %s\n" % e) + try: + api_response = api_instance.connect_get_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_get_namespaced_pod_exec: %s\n" % e) ``` ### Parameters @@ -695,6 +769,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_namespaced_pod_portforward** @@ -706,31 +786,35 @@ connect GET requests to portforward of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodPortForwardOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodPortForwardOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects ports = 56 # int | List of ports to forward Required when using WebSockets (optional) -try: - api_response = api_instance.connect_get_namespaced_pod_portforward(name, namespace, ports=ports) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_get_namespaced_pod_portforward: %s\n" % e) + try: + api_response = api_instance.connect_get_namespaced_pod_portforward(name, namespace, ports=ports) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_get_namespaced_pod_portforward: %s\n" % e) ``` ### Parameters @@ -754,6 +838,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_namespaced_pod_proxy** @@ -765,31 +855,35 @@ connect GET requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_get_namespaced_pod_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_get_namespaced_pod_proxy: %s\n" % e) + try: + api_response = api_instance.connect_get_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_get_namespaced_pod_proxy: %s\n" % e) ``` ### Parameters @@ -813,6 +907,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_namespaced_pod_proxy_with_path** @@ -824,32 +924,36 @@ connect GET requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_get_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_get_namespaced_pod_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_get_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_get_namespaced_pod_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -874,6 +978,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_namespaced_service_proxy** @@ -885,31 +995,35 @@ connect GET requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_get_namespaced_service_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_get_namespaced_service_proxy: %s\n" % e) + try: + api_response = api_instance.connect_get_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_get_namespaced_service_proxy: %s\n" % e) ``` ### Parameters @@ -933,6 +1047,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_namespaced_service_proxy_with_path** @@ -944,32 +1064,36 @@ connect GET requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_get_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_get_namespaced_service_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_get_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_get_namespaced_service_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -994,6 +1118,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_node_proxy** @@ -1005,30 +1135,34 @@ connect GET requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_get_node_proxy(name, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_get_node_proxy: %s\n" % e) + try: + api_response = api_instance.connect_get_node_proxy(name, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_get_node_proxy: %s\n" % e) ``` ### Parameters @@ -1051,6 +1185,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_get_node_proxy_with_path** @@ -1062,31 +1202,35 @@ connect GET requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_get_node_proxy_with_path(name, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_get_node_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_get_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_get_node_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -1110,6 +1254,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_head_namespaced_pod_proxy** @@ -1121,31 +1271,35 @@ connect HEAD requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_head_namespaced_pod_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_head_namespaced_pod_proxy: %s\n" % e) + try: + api_response = api_instance.connect_head_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_head_namespaced_pod_proxy: %s\n" % e) ``` ### Parameters @@ -1169,6 +1323,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_head_namespaced_pod_proxy_with_path** @@ -1180,32 +1340,36 @@ connect HEAD requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_head_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_head_namespaced_pod_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_head_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_head_namespaced_pod_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -1230,6 +1394,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_head_namespaced_service_proxy** @@ -1241,31 +1411,35 @@ connect HEAD requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_head_namespaced_service_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_head_namespaced_service_proxy: %s\n" % e) + try: + api_response = api_instance.connect_head_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_head_namespaced_service_proxy: %s\n" % e) ``` ### Parameters @@ -1289,6 +1463,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_head_namespaced_service_proxy_with_path** @@ -1300,32 +1480,36 @@ connect HEAD requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_head_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_head_namespaced_service_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_head_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_head_namespaced_service_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -1350,6 +1534,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_head_node_proxy** @@ -1361,30 +1551,34 @@ connect HEAD requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_head_node_proxy(name, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_head_node_proxy: %s\n" % e) + try: + api_response = api_instance.connect_head_node_proxy(name, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_head_node_proxy: %s\n" % e) ``` ### Parameters @@ -1407,6 +1601,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_head_node_proxy_with_path** @@ -1418,31 +1618,35 @@ connect HEAD requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_head_node_proxy_with_path(name, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_head_node_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_head_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_head_node_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -1466,6 +1670,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_options_namespaced_pod_proxy** @@ -1477,31 +1687,35 @@ connect OPTIONS requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_options_namespaced_pod_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_options_namespaced_pod_proxy: %s\n" % e) + try: + api_response = api_instance.connect_options_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_options_namespaced_pod_proxy: %s\n" % e) ``` ### Parameters @@ -1525,6 +1739,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_options_namespaced_pod_proxy_with_path** @@ -1536,32 +1756,36 @@ connect OPTIONS requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_options_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_options_namespaced_pod_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_options_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_options_namespaced_pod_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -1586,6 +1810,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_options_namespaced_service_proxy** @@ -1597,31 +1827,35 @@ connect OPTIONS requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_options_namespaced_service_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_options_namespaced_service_proxy: %s\n" % e) + try: + api_response = api_instance.connect_options_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_options_namespaced_service_proxy: %s\n" % e) ``` ### Parameters @@ -1645,6 +1879,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_options_namespaced_service_proxy_with_path** @@ -1656,32 +1896,36 @@ connect OPTIONS requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_options_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_options_namespaced_service_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_options_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_options_namespaced_service_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -1706,6 +1950,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_options_node_proxy** @@ -1717,30 +1967,34 @@ connect OPTIONS requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_options_node_proxy(name, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_options_node_proxy: %s\n" % e) + try: + api_response = api_instance.connect_options_node_proxy(name, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_options_node_proxy: %s\n" % e) ``` ### Parameters @@ -1763,6 +2017,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_options_node_proxy_with_path** @@ -1774,31 +2034,35 @@ connect OPTIONS requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_options_node_proxy_with_path(name, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_options_node_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_options_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_options_node_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -1822,6 +2086,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_patch_namespaced_pod_proxy** @@ -1833,31 +2103,35 @@ connect PATCH requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_patch_namespaced_pod_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_patch_namespaced_pod_proxy: %s\n" % e) + try: + api_response = api_instance.connect_patch_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_patch_namespaced_pod_proxy: %s\n" % e) ``` ### Parameters @@ -1881,6 +2155,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_patch_namespaced_pod_proxy_with_path** @@ -1892,32 +2172,36 @@ connect PATCH requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_patch_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_patch_namespaced_pod_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_patch_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_patch_namespaced_pod_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -1942,6 +2226,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_patch_namespaced_service_proxy** @@ -1953,31 +2243,35 @@ connect PATCH requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_patch_namespaced_service_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_patch_namespaced_service_proxy: %s\n" % e) + try: + api_response = api_instance.connect_patch_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_patch_namespaced_service_proxy: %s\n" % e) ``` ### Parameters @@ -2001,6 +2295,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_patch_namespaced_service_proxy_with_path** @@ -2012,32 +2312,36 @@ connect PATCH requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_patch_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_patch_namespaced_service_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_patch_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_patch_namespaced_service_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -2062,6 +2366,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_patch_node_proxy** @@ -2073,30 +2383,34 @@ connect PATCH requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_patch_node_proxy(name, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_patch_node_proxy: %s\n" % e) + try: + api_response = api_instance.connect_patch_node_proxy(name, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_patch_node_proxy: %s\n" % e) ``` ### Parameters @@ -2119,6 +2433,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_patch_node_proxy_with_path** @@ -2130,31 +2450,35 @@ connect PATCH requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_patch_node_proxy_with_path(name, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_patch_node_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_patch_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_patch_node_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -2178,6 +2502,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_namespaced_pod_attach** @@ -2189,23 +2519,27 @@ connect POST requests to attach of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodAttachOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodAttachOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects container = 'container_example' # str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) stderr = True # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) @@ -2213,11 +2547,11 @@ stdin = True # bool | Stdin if true, redirects the standard input stream of the stdout = True # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) tty = True # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) -try: - api_response = api_instance.connect_post_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_post_namespaced_pod_attach: %s\n" % e) + try: + api_response = api_instance.connect_post_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_post_namespaced_pod_attach: %s\n" % e) ``` ### Parameters @@ -2245,6 +2579,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_namespaced_pod_exec** @@ -2256,23 +2596,27 @@ connect POST requests to exec of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodExecOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodExecOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects command = 'command_example' # str | Command is the remote command to execute. argv array. Not executed within a shell. (optional) container = 'container_example' # str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) @@ -2281,11 +2625,11 @@ stdin = True # bool | Redirect the standard input stream of the pod for this cal stdout = True # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional) tty = True # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) -try: - api_response = api_instance.connect_post_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_post_namespaced_pod_exec: %s\n" % e) + try: + api_response = api_instance.connect_post_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_post_namespaced_pod_exec: %s\n" % e) ``` ### Parameters @@ -2314,6 +2658,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_namespaced_pod_portforward** @@ -2325,31 +2675,35 @@ connect POST requests to portforward of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodPortForwardOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodPortForwardOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects ports = 56 # int | List of ports to forward Required when using WebSockets (optional) -try: - api_response = api_instance.connect_post_namespaced_pod_portforward(name, namespace, ports=ports) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_post_namespaced_pod_portforward: %s\n" % e) + try: + api_response = api_instance.connect_post_namespaced_pod_portforward(name, namespace, ports=ports) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_post_namespaced_pod_portforward: %s\n" % e) ``` ### Parameters @@ -2373,6 +2727,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_namespaced_pod_proxy** @@ -2384,31 +2744,35 @@ connect POST requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_post_namespaced_pod_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_post_namespaced_pod_proxy: %s\n" % e) + try: + api_response = api_instance.connect_post_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_post_namespaced_pod_proxy: %s\n" % e) ``` ### Parameters @@ -2432,6 +2796,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_namespaced_pod_proxy_with_path** @@ -2443,32 +2813,36 @@ connect POST requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_post_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_post_namespaced_pod_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_post_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_post_namespaced_pod_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -2493,6 +2867,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_namespaced_service_proxy** @@ -2504,31 +2884,35 @@ connect POST requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_post_namespaced_service_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_post_namespaced_service_proxy: %s\n" % e) + try: + api_response = api_instance.connect_post_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_post_namespaced_service_proxy: %s\n" % e) ``` ### Parameters @@ -2552,6 +2936,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_namespaced_service_proxy_with_path** @@ -2563,32 +2953,36 @@ connect POST requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_post_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_post_namespaced_service_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_post_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_post_namespaced_service_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -2613,6 +3007,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_node_proxy** @@ -2624,30 +3024,34 @@ connect POST requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_post_node_proxy(name, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_post_node_proxy: %s\n" % e) + try: + api_response = api_instance.connect_post_node_proxy(name, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_post_node_proxy: %s\n" % e) ``` ### Parameters @@ -2670,6 +3074,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_post_node_proxy_with_path** @@ -2681,31 +3091,35 @@ connect POST requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_post_node_proxy_with_path(name, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_post_node_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_post_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_post_node_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -2729,6 +3143,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_put_namespaced_pod_proxy** @@ -2740,31 +3160,35 @@ connect PUT requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_put_namespaced_pod_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_put_namespaced_pod_proxy: %s\n" % e) + try: + api_response = api_instance.connect_put_namespaced_pod_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_put_namespaced_pod_proxy: %s\n" % e) ``` ### Parameters @@ -2788,6 +3212,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_put_namespaced_pod_proxy_with_path** @@ -2799,32 +3229,36 @@ connect PUT requests to proxy of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) -try: - api_response = api_instance.connect_put_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_put_namespaced_pod_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_put_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_put_namespaced_pod_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -2849,6 +3283,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_put_namespaced_service_proxy** @@ -2860,31 +3300,35 @@ connect PUT requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_put_namespaced_service_proxy(name, namespace, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_put_namespaced_service_proxy: %s\n" % e) + try: + api_response = api_instance.connect_put_namespaced_service_proxy(name, namespace, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_put_namespaced_service_proxy: %s\n" % e) ``` ### Parameters @@ -2908,6 +3352,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_put_namespaced_service_proxy_with_path** @@ -2919,32 +3369,36 @@ connect PUT requests to proxy of Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) -try: - api_response = api_instance.connect_put_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_put_namespaced_service_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_put_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_put_namespaced_service_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -2969,6 +3423,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_put_node_proxy** @@ -2980,30 +3440,34 @@ connect PUT requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_put_node_proxy(name, path=path) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_put_node_proxy: %s\n" % e) + try: + api_response = api_instance.connect_put_node_proxy(name, path=path) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_put_node_proxy: %s\n" % e) ``` ### Parameters @@ -3026,6 +3490,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **connect_put_node_proxy_with_path** @@ -3037,31 +3507,35 @@ connect PUT requests to proxy of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NodeProxyOptions +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) -try: - api_response = api_instance.connect_put_node_proxy_with_path(name, path, path2=path2) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->connect_put_node_proxy_with_path: %s\n" % e) + try: + api_response = api_instance.connect_put_node_proxy_with_path(name, path, path2=path2) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->connect_put_node_proxy_with_path: %s\n" % e) ``` ### Parameters @@ -3085,6 +3559,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespace** @@ -3096,32 +3576,36 @@ create a Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1Namespace() # V1Namespace | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + body = kubernetes.client.V1Namespace() # V1Namespace | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespace(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespace: %s\n" % e) + try: + api_response = api_instance.create_namespace(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespace: %s\n" % e) ``` ### Parameters @@ -3146,6 +3630,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_binding** @@ -3157,33 +3649,37 @@ create a Binding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Binding() # V1Binding | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_namespaced_binding(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_binding: %s\n" % e) + try: + api_response = api_instance.create_namespaced_binding(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_binding: %s\n" % e) ``` ### Parameters @@ -3209,6 +3705,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_config_map** @@ -3220,33 +3724,37 @@ create a ConfigMap ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ConfigMap() # V1ConfigMap | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_config_map(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_config_map: %s\n" % e) + try: + api_response = api_instance.create_namespaced_config_map(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_config_map: %s\n" % e) ``` ### Parameters @@ -3272,6 +3780,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_endpoints** @@ -3283,33 +3799,37 @@ create Endpoints ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Endpoints() # V1Endpoints | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_endpoints(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_endpoints: %s\n" % e) + try: + api_response = api_instance.create_namespaced_endpoints(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_endpoints: %s\n" % e) ``` ### Parameters @@ -3335,6 +3855,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_event** @@ -3346,33 +3874,37 @@ create an Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Event() # V1Event | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_event(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_event: %s\n" % e) + try: + api_response = api_instance.create_namespaced_event(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_event: %s\n" % e) ``` ### Parameters @@ -3398,6 +3930,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_limit_range** @@ -3409,33 +3949,37 @@ create a LimitRange ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1LimitRange() # V1LimitRange | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_limit_range(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_limit_range: %s\n" % e) + try: + api_response = api_instance.create_namespaced_limit_range(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_limit_range: %s\n" % e) ``` ### Parameters @@ -3461,6 +4005,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_persistent_volume_claim** @@ -3472,33 +4024,37 @@ create a PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_persistent_volume_claim(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_persistent_volume_claim: %s\n" % e) + try: + api_response = api_instance.create_namespaced_persistent_volume_claim(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters @@ -3524,6 +4080,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_pod** @@ -3535,33 +4099,37 @@ create a Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Pod() # V1Pod | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_pod(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_pod: %s\n" % e) + try: + api_response = api_instance.create_namespaced_pod(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -3587,6 +4155,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_pod_binding** @@ -3598,34 +4174,38 @@ create binding of a Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Binding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Binding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Binding() # V1Binding | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_namespaced_pod_binding(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_pod_binding: %s\n" % e) + try: + api_response = api_instance.create_namespaced_pod_binding(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_pod_binding: %s\n" % e) ``` ### Parameters @@ -3652,6 +4232,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_pod_eviction** @@ -3663,34 +4251,38 @@ create eviction of a Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Eviction +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Eviction namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1Eviction() # V1beta1Eviction | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_namespaced_pod_eviction(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_pod_eviction: %s\n" % e) + try: + api_response = api_instance.create_namespaced_pod_eviction(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_pod_eviction: %s\n" % e) ``` ### Parameters @@ -3717,6 +4309,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_pod_template** @@ -3728,33 +4328,37 @@ create a PodTemplate ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PodTemplate() # V1PodTemplate | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_pod_template(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_pod_template: %s\n" % e) + try: + api_response = api_instance.create_namespaced_pod_template(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_pod_template: %s\n" % e) ``` ### Parameters @@ -3780,6 +4384,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_replication_controller** @@ -3791,33 +4403,37 @@ create a ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ReplicationController() # V1ReplicationController | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_replication_controller(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_replication_controller: %s\n" % e) + try: + api_response = api_instance.create_namespaced_replication_controller(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_replication_controller: %s\n" % e) ``` ### Parameters @@ -3843,6 +4459,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_resource_quota** @@ -3854,33 +4478,37 @@ create a ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ResourceQuota() # V1ResourceQuota | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_resource_quota(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_resource_quota: %s\n" % e) + try: + api_response = api_instance.create_namespaced_resource_quota(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_resource_quota: %s\n" % e) ``` ### Parameters @@ -3906,6 +4534,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_secret** @@ -3917,33 +4553,37 @@ create a Secret ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Secret() # V1Secret | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_secret(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_secret: %s\n" % e) + try: + api_response = api_instance.create_namespaced_secret(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_secret: %s\n" % e) ``` ### Parameters @@ -3969,6 +4609,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_service** @@ -3980,33 +4628,37 @@ create a Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Service() # V1Service | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_service(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_service: %s\n" % e) + try: + api_response = api_instance.create_namespaced_service(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_service: %s\n" % e) ``` ### Parameters @@ -4032,6 +4684,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_service_account** @@ -4043,33 +4703,37 @@ create a ServiceAccount ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ServiceAccount() # V1ServiceAccount | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_service_account(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_service_account: %s\n" % e) + try: + api_response = api_instance.create_namespaced_service_account(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_service_account: %s\n" % e) ``` ### Parameters @@ -4095,6 +4759,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_service_account_token** @@ -4106,34 +4778,38 @@ create token of a ServiceAccount ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the TokenRequest +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the TokenRequest namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1TokenRequest() # V1TokenRequest | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_namespaced_service_account_token(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_namespaced_service_account_token: %s\n" % e) + try: + api_response = api_instance.create_namespaced_service_account_token(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_namespaced_service_account_token: %s\n" % e) ``` ### Parameters @@ -4160,6 +4836,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_node** @@ -4171,32 +4855,36 @@ create a Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1Node() # V1Node | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + body = kubernetes.client.V1Node() # V1Node | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_node(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_node: %s\n" % e) + try: + api_response = api_instance.create_node(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_node: %s\n" % e) ``` ### Parameters @@ -4221,6 +4909,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_persistent_volume** @@ -4232,32 +4928,36 @@ create a PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1PersistentVolume() # V1PersistentVolume | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + body = kubernetes.client.V1PersistentVolume() # V1PersistentVolume | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_persistent_volume(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->create_persistent_volume: %s\n" % e) + try: + api_response = api_instance.create_persistent_volume(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->create_persistent_volume: %s\n" % e) ``` ### Parameters @@ -4282,10 +4982,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_config_map** -> V1Status delete_collection_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_config_map(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -4293,25 +5001,28 @@ delete collection of ConfigMap ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4322,14 +5033,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_config_map: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_config_map(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_config_map: %s\n" % e) ``` ### Parameters @@ -4338,7 +5048,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -4349,8 +5058,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4365,10 +5073,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_endpoints** -> V1Status delete_collection_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_endpoints(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -4376,25 +5090,28 @@ delete collection of Endpoints ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4405,14 +5122,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_endpoints: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_endpoints(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_endpoints: %s\n" % e) ``` ### Parameters @@ -4421,7 +5137,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -4432,8 +5147,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4448,10 +5162,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_event** -> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -4459,25 +5179,28 @@ delete collection of Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4488,14 +5211,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_event: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_event(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_event: %s\n" % e) ``` ### Parameters @@ -4504,7 +5226,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -4515,8 +5236,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4531,10 +5251,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_limit_range** -> V1Status delete_collection_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_limit_range(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -4542,25 +5268,28 @@ delete collection of LimitRange ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4571,14 +5300,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_limit_range: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_limit_range(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_limit_range: %s\n" % e) ``` ### Parameters @@ -4587,7 +5315,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -4598,8 +5325,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4614,10 +5340,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_persistent_volume_claim** -> V1Status delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -4625,25 +5357,28 @@ delete collection of PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4654,14 +5389,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_persistent_volume_claim: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters @@ -4670,7 +5404,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -4681,8 +5414,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4697,10 +5429,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod** -> V1Status delete_collection_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_pod(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -4708,25 +5446,28 @@ delete collection of Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4737,14 +5478,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_pod: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_pod(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -4753,7 +5493,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -4764,8 +5503,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4780,10 +5518,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod_template** -> V1Status delete_collection_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_pod_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -4791,25 +5535,28 @@ delete collection of PodTemplate ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4820,14 +5567,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_pod_template: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_pod_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_pod_template: %s\n" % e) ``` ### Parameters @@ -4836,7 +5582,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -4847,8 +5592,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4863,10 +5607,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_replication_controller** -> V1Status delete_collection_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_replication_controller(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -4874,25 +5624,28 @@ delete collection of ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4903,14 +5656,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_replication_controller: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_replication_controller(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_replication_controller: %s\n" % e) ``` ### Parameters @@ -4919,7 +5671,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -4930,8 +5681,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4946,10 +5696,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_resource_quota** -> V1Status delete_collection_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_resource_quota(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -4957,25 +5713,28 @@ delete collection of ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -4986,14 +5745,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_resource_quota: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_resource_quota(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_resource_quota: %s\n" % e) ``` ### Parameters @@ -5002,7 +5760,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -5013,8 +5770,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5029,10 +5785,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_secret** -> V1Status delete_collection_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_secret(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -5040,25 +5802,28 @@ delete collection of Secret ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -5069,14 +5834,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_secret: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_secret(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_secret: %s\n" % e) ``` ### Parameters @@ -5085,7 +5849,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -5096,8 +5859,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5112,10 +5874,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_service_account** -> V1Status delete_collection_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_service_account(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -5123,25 +5891,28 @@ delete collection of ServiceAccount ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -5152,14 +5923,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_namespaced_service_account: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_service_account(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_namespaced_service_account: %s\n" % e) ``` ### Parameters @@ -5168,7 +5938,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -5179,8 +5948,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5195,10 +5963,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_node** -> V1Status delete_collection_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_node(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -5206,24 +5980,27 @@ delete collection of Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -5234,14 +6011,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_node: %s\n" % e) + try: + api_response = api_instance.delete_collection_node(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_node: %s\n" % e) ``` ### Parameters @@ -5249,7 +6025,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -5260,8 +6035,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5276,10 +6050,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_persistent_volume** -> V1Status delete_collection_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_persistent_volume(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -5287,24 +6067,27 @@ delete collection of PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -5315,14 +6098,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_collection_persistent_volume: %s\n" % e) + try: + api_response = api_instance.delete_collection_persistent_volume(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_collection_persistent_volume: %s\n" % e) ``` ### Parameters @@ -5330,7 +6112,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -5341,8 +6122,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5357,6 +6137,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespace** @@ -5368,23 +6154,27 @@ delete a Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Namespace +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -5392,11 +6182,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespace(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespace: %s\n" % e) + try: + api_response = api_instance.delete_namespace(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespace: %s\n" % e) ``` ### Parameters @@ -5424,6 +6214,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_config_map** @@ -5435,23 +6232,27 @@ delete a ConfigMap ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ConfigMap +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -5460,11 +6261,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_config_map(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_config_map: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_config_map(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_config_map: %s\n" % e) ``` ### Parameters @@ -5493,6 +6294,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_endpoints** @@ -5504,23 +6312,27 @@ delete Endpoints ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Endpoints +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -5529,11 +6341,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_endpoints(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_endpoints: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_endpoints(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_endpoints: %s\n" % e) ``` ### Parameters @@ -5562,6 +6374,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_event** @@ -5573,23 +6392,27 @@ delete an Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Event +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -5598,11 +6421,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_event: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_event: %s\n" % e) ``` ### Parameters @@ -5631,6 +6454,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_limit_range** @@ -5642,23 +6472,27 @@ delete a LimitRange ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the LimitRange +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -5667,11 +6501,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_limit_range(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_limit_range: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_limit_range(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_limit_range: %s\n" % e) ``` ### Parameters @@ -5700,6 +6534,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_persistent_volume_claim** @@ -5711,23 +6552,27 @@ delete a PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolumeClaim +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -5736,11 +6581,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_persistent_volume_claim: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters @@ -5769,6 +6614,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod** @@ -5780,23 +6632,27 @@ delete a Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Pod +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -5805,11 +6661,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_pod(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_pod: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_pod(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -5838,6 +6694,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod_template** @@ -5849,23 +6712,27 @@ delete a PodTemplate ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodTemplate +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -5874,11 +6741,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_pod_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_pod_template: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_pod_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_pod_template: %s\n" % e) ``` ### Parameters @@ -5907,6 +6774,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_replication_controller** @@ -5918,23 +6792,27 @@ delete a ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicationController +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -5943,11 +6821,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_replication_controller(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_replication_controller: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_replication_controller(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_replication_controller: %s\n" % e) ``` ### Parameters @@ -5976,6 +6854,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_resource_quota** @@ -5987,23 +6872,27 @@ delete a ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ResourceQuota +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -6012,11 +6901,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_resource_quota(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_resource_quota: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_resource_quota(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_resource_quota: %s\n" % e) ``` ### Parameters @@ -6045,6 +6934,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_secret** @@ -6056,23 +6952,27 @@ delete a Secret ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Secret +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -6081,11 +6981,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_secret(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_secret: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_secret(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_secret: %s\n" % e) ``` ### Parameters @@ -6114,6 +7014,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_service** @@ -6125,23 +7032,27 @@ delete a Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Service +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -6150,11 +7061,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_service(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_service: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_service(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_service: %s\n" % e) ``` ### Parameters @@ -6183,6 +7094,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_service_account** @@ -6194,23 +7112,27 @@ delete a ServiceAccount ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceAccount +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -6219,11 +7141,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_service_account(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_namespaced_service_account: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_service_account(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_namespaced_service_account: %s\n" % e) ``` ### Parameters @@ -6252,6 +7174,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_node** @@ -6263,23 +7192,27 @@ delete a Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Node +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -6287,11 +7220,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_node: %s\n" % e) + try: + api_response = api_instance.delete_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_node: %s\n" % e) ``` ### Parameters @@ -6319,6 +7252,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_persistent_volume** @@ -6330,23 +7270,27 @@ delete a PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolume +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -6354,11 +7298,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_persistent_volume(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->delete_persistent_volume: %s\n" % e) + try: + api_response = api_instance.delete_persistent_volume(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->delete_persistent_volume: %s\n" % e) ``` ### Parameters @@ -6386,6 +7330,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -6397,28 +7348,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->get_api_resources: %s\n" % e) +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -6437,6 +7392,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_component_status** @@ -6448,23 +7409,27 @@ list objects of kind ComponentStatus ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6474,11 +7439,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_component_status(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_component_status: %s\n" % e) + try: + api_response = api_instance.list_component_status(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_component_status: %s\n" % e) ``` ### Parameters @@ -6508,6 +7473,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_config_map_for_all_namespaces** @@ -6519,23 +7490,27 @@ list or watch objects of kind ConfigMap ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6545,11 +7520,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_config_map_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_config_map_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_config_map_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_config_map_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -6579,6 +7554,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_endpoints_for_all_namespaces** @@ -6590,23 +7571,27 @@ list or watch objects of kind Endpoints ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6616,11 +7601,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_endpoints_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_endpoints_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_endpoints_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_endpoints_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -6650,6 +7635,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_event_for_all_namespaces** @@ -6661,23 +7652,27 @@ list or watch objects of kind Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6687,11 +7682,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_event_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_event_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -6721,6 +7716,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_limit_range_for_all_namespaces** @@ -6732,23 +7733,27 @@ list or watch objects of kind LimitRange ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -6758,11 +7763,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_limit_range_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_limit_range_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_limit_range_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_limit_range_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -6792,6 +7797,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespace** @@ -6803,23 +7814,27 @@ list or watch objects of kind Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException -from pprint import pprint - -# Configure API key authorization: BearerToken +from pprint import pprint configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -6829,11 +7844,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespace(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespace: %s\n" % e) + try: + api_response = api_instance.list_namespace(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespace: %s\n" % e) ``` ### Parameters @@ -6863,6 +7878,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_config_map** @@ -6874,23 +7895,27 @@ list or watch objects of kind ConfigMap ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -6901,11 +7926,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_config_map: %s\n" % e) + try: + api_response = api_instance.list_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_config_map: %s\n" % e) ``` ### Parameters @@ -6936,6 +7961,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_endpoints** @@ -6947,23 +7978,27 @@ list or watch objects of kind Endpoints ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -6974,11 +8009,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_endpoints: %s\n" % e) + try: + api_response = api_instance.list_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_endpoints: %s\n" % e) ``` ### Parameters @@ -7009,6 +8044,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_event** @@ -7020,23 +8061,27 @@ list or watch objects of kind Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7047,11 +8092,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_event: %s\n" % e) + try: + api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_event: %s\n" % e) ``` ### Parameters @@ -7082,6 +8127,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_limit_range** @@ -7093,23 +8144,27 @@ list or watch objects of kind LimitRange ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7120,11 +8175,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_limit_range: %s\n" % e) + try: + api_response = api_instance.list_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_limit_range: %s\n" % e) ``` ### Parameters @@ -7155,6 +8210,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_persistent_volume_claim** @@ -7166,23 +8227,27 @@ list or watch objects of kind PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7193,11 +8258,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_persistent_volume_claim: %s\n" % e) + try: + api_response = api_instance.list_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters @@ -7228,6 +8293,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod** @@ -7239,23 +8310,27 @@ list or watch objects of kind Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7266,11 +8341,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_pod: %s\n" % e) + try: + api_response = api_instance.list_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -7301,6 +8376,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod_template** @@ -7312,23 +8393,27 @@ list or watch objects of kind PodTemplate ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7339,11 +8424,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_pod_template: %s\n" % e) + try: + api_response = api_instance.list_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_pod_template: %s\n" % e) ``` ### Parameters @@ -7374,6 +8459,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_replication_controller** @@ -7385,23 +8476,27 @@ list or watch objects of kind ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7412,11 +8507,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_replication_controller: %s\n" % e) + try: + api_response = api_instance.list_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_replication_controller: %s\n" % e) ``` ### Parameters @@ -7447,6 +8542,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_resource_quota** @@ -7458,23 +8559,27 @@ list or watch objects of kind ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7485,11 +8590,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_resource_quota: %s\n" % e) + try: + api_response = api_instance.list_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_resource_quota: %s\n" % e) ``` ### Parameters @@ -7520,6 +8625,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_secret** @@ -7531,23 +8642,27 @@ list or watch objects of kind Secret ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7558,11 +8673,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_secret: %s\n" % e) + try: + api_response = api_instance.list_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_secret: %s\n" % e) ``` ### Parameters @@ -7593,6 +8708,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_service** @@ -7604,23 +8725,27 @@ list or watch objects of kind Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7631,11 +8756,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_service(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_service: %s\n" % e) + try: + api_response = api_instance.list_namespaced_service(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_service: %s\n" % e) ``` ### Parameters @@ -7666,6 +8791,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_service_account** @@ -7677,23 +8808,27 @@ list or watch objects of kind ServiceAccount ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -7704,11 +8839,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_namespaced_service_account: %s\n" % e) + try: + api_response = api_instance.list_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_namespaced_service_account: %s\n" % e) ``` ### Parameters @@ -7739,6 +8874,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_node** @@ -7750,23 +8891,27 @@ list or watch objects of kind Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -7776,11 +8921,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_node: %s\n" % e) + try: + api_response = api_instance.list_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_node: %s\n" % e) ``` ### Parameters @@ -7810,6 +8955,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_persistent_volume** @@ -7821,23 +8972,27 @@ list or watch objects of kind PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -7847,11 +9002,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_persistent_volume: %s\n" % e) + try: + api_response = api_instance.list_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_persistent_volume: %s\n" % e) ``` ### Parameters @@ -7881,6 +9036,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_persistent_volume_claim_for_all_namespaces** @@ -7892,23 +9053,27 @@ list or watch objects of kind PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7918,11 +9083,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_persistent_volume_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_persistent_volume_claim_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_persistent_volume_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_persistent_volume_claim_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -7952,6 +9117,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_for_all_namespaces** @@ -7963,23 +9134,27 @@ list or watch objects of kind Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -7989,11 +9164,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_pod_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_pod_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_pod_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -8023,6 +9198,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_template_for_all_namespaces** @@ -8034,23 +9215,27 @@ list or watch objects of kind PodTemplate ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -8060,11 +9245,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_pod_template_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_pod_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_pod_template_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -8094,6 +9279,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_replication_controller_for_all_namespaces** @@ -8105,23 +9296,27 @@ list or watch objects of kind ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -8131,11 +9326,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_replication_controller_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_replication_controller_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_replication_controller_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_replication_controller_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -8165,6 +9360,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_resource_quota_for_all_namespaces** @@ -8176,23 +9377,27 @@ list or watch objects of kind ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -8202,11 +9407,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_resource_quota_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_resource_quota_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_resource_quota_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_resource_quota_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -8236,6 +9441,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_secret_for_all_namespaces** @@ -8247,23 +9458,27 @@ list or watch objects of kind Secret ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -8273,11 +9488,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_secret_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_secret_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_secret_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_secret_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -8307,6 +9522,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_service_account_for_all_namespaces** @@ -8318,23 +9539,27 @@ list or watch objects of kind ServiceAccount ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -8344,11 +9569,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_service_account_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_service_account_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_service_account_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_service_account_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -8378,6 +9603,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_service_for_all_namespaces** @@ -8389,23 +9620,27 @@ list or watch objects of kind Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -8415,11 +9650,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_service_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->list_service_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_service_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->list_service_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -8449,6 +9684,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespace** @@ -8460,34 +9701,38 @@ partially update the specified Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Namespace -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Namespace +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespace: %s\n" % e) + try: + api_response = api_instance.patch_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespace: %s\n" % e) ``` ### Parameters @@ -8495,7 +9740,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -8514,6 +9759,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespace_status** @@ -8525,34 +9776,38 @@ partially update status of the specified Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Namespace -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Namespace +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespace_status: %s\n" % e) + try: + api_response = api_instance.patch_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespace_status: %s\n" % e) ``` ### Parameters @@ -8560,7 +9815,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -8579,6 +9834,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_config_map** @@ -8590,35 +9851,39 @@ partially update the specified ConfigMap ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ConfigMap +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_config_map: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_config_map: %s\n" % e) ``` ### Parameters @@ -8627,7 +9892,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ConfigMap | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -8646,6 +9911,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_endpoints** @@ -8657,35 +9928,39 @@ partially update the specified Endpoints ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Endpoints +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_endpoints: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_endpoints: %s\n" % e) ``` ### Parameters @@ -8694,7 +9969,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Endpoints | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -8713,6 +9988,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_event** @@ -8724,35 +10005,39 @@ partially update the specified Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Event +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_event: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_event: %s\n" % e) ``` ### Parameters @@ -8761,7 +10046,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Event | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -8780,6 +10065,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_limit_range** @@ -8791,35 +10082,39 @@ partially update the specified LimitRange ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the LimitRange +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_limit_range: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_limit_range: %s\n" % e) ``` ### Parameters @@ -8828,7 +10123,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the LimitRange | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -8847,6 +10142,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_persistent_volume_claim** @@ -8858,35 +10159,39 @@ partially update the specified PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolumeClaim +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters @@ -8895,7 +10200,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -8914,6 +10219,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_persistent_volume_claim_status** @@ -8925,35 +10236,39 @@ partially update status of the specified PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolumeClaim +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim_status: %s\n" % e) ``` ### Parameters @@ -8962,7 +10277,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -8981,6 +10296,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod** @@ -8992,35 +10313,39 @@ partially update the specified Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Pod +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_pod: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -9029,7 +10354,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9048,6 +10373,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod_status** @@ -9059,35 +10390,39 @@ partially update status of the specified Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Pod +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_pod_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_pod_status: %s\n" % e) ``` ### Parameters @@ -9096,7 +10431,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9115,6 +10450,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod_template** @@ -9126,35 +10467,39 @@ partially update the specified PodTemplate ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodTemplate +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_pod_template: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_pod_template: %s\n" % e) ``` ### Parameters @@ -9163,7 +10508,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodTemplate | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9182,6 +10527,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replication_controller** @@ -9193,35 +10544,39 @@ partially update the specified ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicationController +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_replication_controller: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_replication_controller: %s\n" % e) ``` ### Parameters @@ -9230,7 +10585,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9249,6 +10604,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replication_controller_scale** @@ -9260,35 +10621,39 @@ partially update scale of the specified ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_replication_controller_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_replication_controller_scale: %s\n" % e) ``` ### Parameters @@ -9297,7 +10662,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9316,6 +10681,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replication_controller_status** @@ -9327,35 +10698,39 @@ partially update status of the specified ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicationController +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_replication_controller_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_replication_controller_status: %s\n" % e) ``` ### Parameters @@ -9364,7 +10739,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9383,6 +10758,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_resource_quota** @@ -9394,35 +10775,39 @@ partially update the specified ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ResourceQuota +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_resource_quota: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_resource_quota: %s\n" % e) ``` ### Parameters @@ -9431,7 +10816,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9450,6 +10835,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_resource_quota_status** @@ -9461,35 +10852,39 @@ partially update status of the specified ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ResourceQuota +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_resource_quota_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_resource_quota_status: %s\n" % e) ``` ### Parameters @@ -9498,7 +10893,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9517,6 +10912,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_secret** @@ -9528,35 +10929,39 @@ partially update the specified Secret ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Secret +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_secret: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_secret: %s\n" % e) ``` ### Parameters @@ -9565,7 +10970,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Secret | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9584,6 +10989,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_service** @@ -9595,35 +11006,39 @@ partially update the specified Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Service +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_service: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_service: %s\n" % e) ``` ### Parameters @@ -9632,7 +11047,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Service | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9651,6 +11066,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_service_account** @@ -9662,35 +11083,39 @@ partially update the specified ServiceAccount ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceAccount +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_service_account: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_service_account: %s\n" % e) ``` ### Parameters @@ -9699,7 +11124,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ServiceAccount | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9718,6 +11143,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_service_status** @@ -9729,35 +11160,39 @@ partially update status of the specified Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Service +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_namespaced_service_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_namespaced_service_status: %s\n" % e) ``` ### Parameters @@ -9766,7 +11201,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Service | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9785,6 +11220,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_node** @@ -9796,34 +11237,38 @@ partially update the specified Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Node -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Node +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_node: %s\n" % e) + try: + api_response = api_instance.patch_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_node: %s\n" % e) ``` ### Parameters @@ -9831,7 +11276,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9850,6 +11295,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_node_status** @@ -9861,34 +11312,38 @@ partially update status of the specified Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Node -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Node +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_node_status: %s\n" % e) + try: + api_response = api_instance.patch_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_node_status: %s\n" % e) ``` ### Parameters @@ -9896,7 +11351,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9915,6 +11370,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_persistent_volume** @@ -9926,34 +11387,38 @@ partially update the specified PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolume -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolume +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_persistent_volume: %s\n" % e) + try: + api_response = api_instance.patch_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_persistent_volume: %s\n" % e) ``` ### Parameters @@ -9961,7 +11426,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -9980,6 +11445,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_persistent_volume_status** @@ -9991,34 +11462,38 @@ partially update status of the specified PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolume -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolume +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->patch_persistent_volume_status: %s\n" % e) + try: + api_response = api_instance.patch_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->patch_persistent_volume_status: %s\n" % e) ``` ### Parameters @@ -10026,7 +11501,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -10045,6 +11520,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_component_status** @@ -10056,30 +11537,34 @@ read the specified ComponentStatus ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ComponentStatus +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ComponentStatus pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_component_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_component_status: %s\n" % e) + try: + api_response = api_instance.read_component_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_component_status: %s\n" % e) ``` ### Parameters @@ -10102,6 +11587,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespace** @@ -10113,32 +11604,36 @@ read the specified Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Namespace +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespace(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespace: %s\n" % e) + try: + api_response = api_instance.read_namespace(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespace: %s\n" % e) ``` ### Parameters @@ -10163,6 +11658,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespace_status** @@ -10174,30 +11675,34 @@ read status of the specified Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Namespace +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespace_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespace_status: %s\n" % e) + try: + api_response = api_instance.read_namespace_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespace_status: %s\n" % e) ``` ### Parameters @@ -10220,6 +11725,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_config_map** @@ -10231,33 +11742,37 @@ read the specified ConfigMap ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ConfigMap +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_config_map(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_config_map: %s\n" % e) + try: + api_response = api_instance.read_namespaced_config_map(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_config_map: %s\n" % e) ``` ### Parameters @@ -10283,6 +11798,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_endpoints** @@ -10294,33 +11815,37 @@ read the specified Endpoints ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Endpoints +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_endpoints(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_endpoints: %s\n" % e) + try: + api_response = api_instance.read_namespaced_endpoints(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_endpoints: %s\n" % e) ``` ### Parameters @@ -10346,6 +11871,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_event** @@ -10357,33 +11888,37 @@ read the specified Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Event +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_event: %s\n" % e) + try: + api_response = api_instance.read_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_event: %s\n" % e) ``` ### Parameters @@ -10409,6 +11944,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_limit_range** @@ -10420,33 +11961,37 @@ read the specified LimitRange ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the LimitRange +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_limit_range(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_limit_range: %s\n" % e) + try: + api_response = api_instance.read_namespaced_limit_range(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_limit_range: %s\n" % e) ``` ### Parameters @@ -10472,6 +12017,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_persistent_volume_claim** @@ -10483,33 +12034,37 @@ read the specified PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolumeClaim +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_persistent_volume_claim: %s\n" % e) + try: + api_response = api_instance.read_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters @@ -10535,6 +12090,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_persistent_volume_claim_status** @@ -10546,31 +12107,35 @@ read status of the specified PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolumeClaim +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_persistent_volume_claim_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_persistent_volume_claim_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_persistent_volume_claim_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_persistent_volume_claim_status: %s\n" % e) ``` ### Parameters @@ -10594,6 +12159,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod** @@ -10605,33 +12176,37 @@ read the specified Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Pod +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_pod(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_pod: %s\n" % e) + try: + api_response = api_instance.read_namespaced_pod(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -10657,6 +12232,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_log** @@ -10668,23 +12249,27 @@ read log of the specified Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Pod +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects container = 'container_example' # str | The container for which to stream logs. Defaults to only container if there is one container in the pod. (optional) follow = True # bool | Follow the log stream of the pod. Defaults to false. (optional) @@ -10695,11 +12280,11 @@ since_seconds = 56 # int | A relative time in seconds before the current time fr tail_lines = 56 # int | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) timestamps = True # bool | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) -try: - api_response = api_instance.read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, tail_lines=tail_lines, timestamps=timestamps) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_pod_log: %s\n" % e) + try: + api_response = api_instance.read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, tail_lines=tail_lines, timestamps=timestamps) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_pod_log: %s\n" % e) ``` ### Parameters @@ -10730,6 +12315,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: text/plain, application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_status** @@ -10741,31 +12332,35 @@ read status of the specified Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Pod +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_pod_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_pod_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_pod_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_pod_status: %s\n" % e) ``` ### Parameters @@ -10789,6 +12384,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_template** @@ -10800,33 +12401,37 @@ read the specified PodTemplate ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodTemplate +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_pod_template(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_pod_template: %s\n" % e) + try: + api_response = api_instance.read_namespaced_pod_template(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_pod_template: %s\n" % e) ``` ### Parameters @@ -10852,6 +12457,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replication_controller** @@ -10863,33 +12474,37 @@ read the specified ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicationController +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_replication_controller(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_replication_controller: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replication_controller(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_replication_controller: %s\n" % e) ``` ### Parameters @@ -10915,6 +12530,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replication_controller_scale** @@ -10926,31 +12547,35 @@ read scale of the specified ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_replication_controller_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_replication_controller_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replication_controller_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_replication_controller_scale: %s\n" % e) ``` ### Parameters @@ -10974,6 +12599,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replication_controller_status** @@ -10985,31 +12616,35 @@ read status of the specified ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicationController +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_replication_controller_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_replication_controller_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replication_controller_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_replication_controller_status: %s\n" % e) ``` ### Parameters @@ -11033,6 +12668,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_resource_quota** @@ -11044,33 +12685,37 @@ read the specified ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ResourceQuota +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_resource_quota(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_resource_quota: %s\n" % e) + try: + api_response = api_instance.read_namespaced_resource_quota(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_resource_quota: %s\n" % e) ``` ### Parameters @@ -11096,6 +12741,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_resource_quota_status** @@ -11107,31 +12758,35 @@ read status of the specified ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ResourceQuota +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_resource_quota_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_resource_quota_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_resource_quota_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_resource_quota_status: %s\n" % e) ``` ### Parameters @@ -11155,6 +12810,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_secret** @@ -11166,33 +12827,37 @@ read the specified Secret ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Secret +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_secret(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_secret: %s\n" % e) + try: + api_response = api_instance.read_namespaced_secret(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_secret: %s\n" % e) ``` ### Parameters @@ -11218,6 +12883,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_service** @@ -11229,33 +12900,37 @@ read the specified Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Service +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_service(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_service: %s\n" % e) + try: + api_response = api_instance.read_namespaced_service(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_service: %s\n" % e) ``` ### Parameters @@ -11281,6 +12956,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_service_account** @@ -11292,33 +12973,37 @@ read the specified ServiceAccount ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceAccount +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_service_account(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_service_account: %s\n" % e) + try: + api_response = api_instance.read_namespaced_service_account(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_service_account: %s\n" % e) ``` ### Parameters @@ -11344,6 +13029,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_service_status** @@ -11355,31 +13046,35 @@ read status of the specified Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Service +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_service_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_namespaced_service_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_service_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_namespaced_service_status: %s\n" % e) ``` ### Parameters @@ -11403,6 +13098,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_node** @@ -11414,32 +13115,36 @@ read the specified Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Node +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_node(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_node: %s\n" % e) + try: + api_response = api_instance.read_node(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_node: %s\n" % e) ``` ### Parameters @@ -11464,6 +13169,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_node_status** @@ -11475,30 +13186,34 @@ read status of the specified Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Node +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_node_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_node_status: %s\n" % e) + try: + api_response = api_instance.read_node_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_node_status: %s\n" % e) ``` ### Parameters @@ -11521,6 +13236,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_persistent_volume** @@ -11532,32 +13253,36 @@ read the specified PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolume +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_persistent_volume(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_persistent_volume: %s\n" % e) + try: + api_response = api_instance.read_persistent_volume(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_persistent_volume: %s\n" % e) ``` ### Parameters @@ -11582,6 +13307,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_persistent_volume_status** @@ -11593,30 +13324,34 @@ read status of the specified PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolume +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_persistent_volume_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->read_persistent_volume_status: %s\n" % e) + try: + api_response = api_instance.read_persistent_volume_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->read_persistent_volume_status: %s\n" % e) ``` ### Parameters @@ -11639,6 +13374,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespace** @@ -11650,33 +13391,37 @@ replace the specified Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Namespace +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Namespace body = kubernetes.client.V1Namespace() # V1Namespace | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespace: %s\n" % e) + try: + api_response = api_instance.replace_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespace: %s\n" % e) ``` ### Parameters @@ -11702,6 +13447,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespace_finalize** @@ -11713,33 +13465,37 @@ replace finalize of the specified Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Namespace +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Namespace body = kubernetes.client.V1Namespace() # V1Namespace | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.replace_namespace_finalize(name, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespace_finalize: %s\n" % e) + try: + api_response = api_instance.replace_namespace_finalize(name, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespace_finalize: %s\n" % e) ``` ### Parameters @@ -11765,6 +13521,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespace_status** @@ -11776,33 +13539,37 @@ replace status of the specified Namespace ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Namespace +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Namespace body = kubernetes.client.V1Namespace() # V1Namespace | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespace_status: %s\n" % e) + try: + api_response = api_instance.replace_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespace_status: %s\n" % e) ``` ### Parameters @@ -11828,6 +13595,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_config_map** @@ -11839,34 +13613,38 @@ replace the specified ConfigMap ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ConfigMap +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ConfigMap() # V1ConfigMap | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_config_map: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_config_map: %s\n" % e) ``` ### Parameters @@ -11893,6 +13671,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_endpoints** @@ -11904,34 +13689,38 @@ replace the specified Endpoints ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Endpoints +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Endpoints() # V1Endpoints | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_endpoints: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_endpoints: %s\n" % e) ``` ### Parameters @@ -11958,6 +13747,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_event** @@ -11969,34 +13765,38 @@ replace the specified Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Event +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Event() # V1Event | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_event: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_event: %s\n" % e) ``` ### Parameters @@ -12023,6 +13823,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_limit_range** @@ -12034,34 +13841,38 @@ replace the specified LimitRange ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the LimitRange +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1LimitRange() # V1LimitRange | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_limit_range: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_limit_range: %s\n" % e) ``` ### Parameters @@ -12088,6 +13899,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_persistent_volume_claim** @@ -12099,34 +13917,38 @@ replace the specified PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolumeClaim +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_persistent_volume_claim: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_persistent_volume_claim: %s\n" % e) ``` ### Parameters @@ -12153,6 +13975,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_persistent_volume_claim_status** @@ -12164,34 +13993,38 @@ replace status of the specified PersistentVolumeClaim ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolumeClaim +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_persistent_volume_claim_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_persistent_volume_claim_status: %s\n" % e) ``` ### Parameters @@ -12218,6 +14051,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod** @@ -12229,34 +14069,38 @@ replace the specified Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Pod +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Pod() # V1Pod | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_pod: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_pod: %s\n" % e) ``` ### Parameters @@ -12283,6 +14127,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod_status** @@ -12294,34 +14145,38 @@ replace status of the specified Pod ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Pod +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Pod() # V1Pod | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_pod_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_pod_status: %s\n" % e) ``` ### Parameters @@ -12348,6 +14203,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod_template** @@ -12359,34 +14221,38 @@ replace the specified PodTemplate ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodTemplate +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PodTemplate() # V1PodTemplate | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_pod_template: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_pod_template: %s\n" % e) ``` ### Parameters @@ -12413,6 +14279,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replication_controller** @@ -12424,34 +14297,38 @@ replace the specified ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicationController +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ReplicationController() # V1ReplicationController | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_replication_controller: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_replication_controller: %s\n" % e) ``` ### Parameters @@ -12478,6 +14355,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replication_controller_scale** @@ -12489,34 +14373,38 @@ replace scale of the specified ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Scale() # V1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_replication_controller_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_replication_controller_scale: %s\n" % e) ``` ### Parameters @@ -12543,6 +14431,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replication_controller_status** @@ -12554,34 +14449,38 @@ replace status of the specified ReplicationController ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicationController +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ReplicationController() # V1ReplicationController | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_replication_controller_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_replication_controller_status: %s\n" % e) ``` ### Parameters @@ -12608,6 +14507,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_resource_quota** @@ -12619,34 +14525,38 @@ replace the specified ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ResourceQuota +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ResourceQuota() # V1ResourceQuota | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_resource_quota: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_resource_quota: %s\n" % e) ``` ### Parameters @@ -12673,6 +14583,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_resource_quota_status** @@ -12684,34 +14601,38 @@ replace status of the specified ResourceQuota ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ResourceQuota +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ResourceQuota() # V1ResourceQuota | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_resource_quota_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_resource_quota_status: %s\n" % e) ``` ### Parameters @@ -12738,6 +14659,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_secret** @@ -12749,34 +14677,38 @@ replace the specified Secret ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Secret +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Secret() # V1Secret | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_secret: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_secret: %s\n" % e) ``` ### Parameters @@ -12803,6 +14735,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_service** @@ -12814,34 +14753,38 @@ replace the specified Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Service +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Service() # V1Service | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_service: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_service: %s\n" % e) ``` ### Parameters @@ -12868,6 +14811,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_service_account** @@ -12879,34 +14829,38 @@ replace the specified ServiceAccount ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ServiceAccount +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ServiceAccount() # V1ServiceAccount | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_service_account: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_service_account: %s\n" % e) ``` ### Parameters @@ -12933,6 +14887,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_service_status** @@ -12944,34 +14905,38 @@ replace status of the specified Service ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Service +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Service() # V1Service | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_namespaced_service_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_namespaced_service_status: %s\n" % e) ``` ### Parameters @@ -12998,6 +14963,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_node** @@ -13009,33 +14981,37 @@ replace the specified Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Node +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Node body = kubernetes.client.V1Node() # V1Node | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_node: %s\n" % e) + try: + api_response = api_instance.replace_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_node: %s\n" % e) ``` ### Parameters @@ -13061,6 +15037,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_node_status** @@ -13072,33 +15055,37 @@ replace status of the specified Node ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Node +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the Node body = kubernetes.client.V1Node() # V1Node | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_node_status: %s\n" % e) + try: + api_response = api_instance.replace_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_node_status: %s\n" % e) ``` ### Parameters @@ -13124,6 +15111,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_persistent_volume** @@ -13135,33 +15129,37 @@ replace the specified PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolume +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolume body = kubernetes.client.V1PersistentVolume() # V1PersistentVolume | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_persistent_volume: %s\n" % e) + try: + api_response = api_instance.replace_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_persistent_volume: %s\n" % e) ``` ### Parameters @@ -13187,6 +15185,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_persistent_volume_status** @@ -13198,33 +15203,37 @@ replace status of the specified PersistentVolume ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CoreV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PersistentVolume +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CoreV1Api(api_client) + name = 'name_example' # str | name of the PersistentVolume body = kubernetes.client.V1PersistentVolume() # V1PersistentVolume | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling CoreV1Api->replace_persistent_volume_status: %s\n" % e) + try: + api_response = api_instance.replace_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CoreV1Api->replace_persistent_volume_status: %s\n" % e) ``` ### Parameters @@ -13250,5 +15259,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/CustomObjectsApi.md b/kubernetes/docs/CustomObjectsApi.md index e65e17a330..8e80e2d56d 100644 --- a/kubernetes/docs/CustomObjectsApi.md +++ b/kubernetes/docs/CustomObjectsApi.md @@ -6,10 +6,10 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**create_cluster_custom_object**](CustomObjectsApi.md#create_cluster_custom_object) | **POST** /apis/{group}/{version}/{plural} | [**create_namespaced_custom_object**](CustomObjectsApi.md#create_namespaced_custom_object) | **POST** /apis/{group}/{version}/namespaces/{namespace}/{plural} | -[**delete_cluster_custom_object**](CustomObjectsApi.md#delete_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural} | -[**delete_cluster_custom_object_0**](CustomObjectsApi.md#delete_cluster_custom_object_0) | **DELETE** /apis/{group}/{version}/{plural}/{name} | -[**delete_namespaced_custom_object**](CustomObjectsApi.md#delete_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | -[**delete_namespaced_custom_object_0**](CustomObjectsApi.md#delete_namespaced_custom_object_0) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | +[**delete_cluster_custom_object**](CustomObjectsApi.md#delete_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural}/{name} | +[**delete_collection_cluster_custom_object**](CustomObjectsApi.md#delete_collection_cluster_custom_object) | **DELETE** /apis/{group}/{version}/{plural} | +[**delete_collection_namespaced_custom_object**](CustomObjectsApi.md#delete_collection_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural} | +[**delete_namespaced_custom_object**](CustomObjectsApi.md#delete_namespaced_custom_object) | **DELETE** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name} | [**get_cluster_custom_object**](CustomObjectsApi.md#get_cluster_custom_object) | **GET** /apis/{group}/{version}/{plural}/{name} | [**get_cluster_custom_object_scale**](CustomObjectsApi.md#get_cluster_custom_object_scale) | **GET** /apis/{group}/{version}/{plural}/{name}/scale | [**get_cluster_custom_object_status**](CustomObjectsApi.md#get_cluster_custom_object_status) | **GET** /apis/{group}/{version}/{plural}/{name}/status | @@ -33,7 +33,7 @@ Method | HTTP request | Description # **create_cluster_custom_object** -> object create_cluster_custom_object(group, version, plural, body, pretty=pretty) +> object create_cluster_custom_object(group, version, plural, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) @@ -41,33 +41,39 @@ Creates a cluster scoped Custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | The custom resource's group name +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | The custom resource's group name version = 'version_example' # str | The custom resource's version plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to create. +body = None # object | The JSON schema of the Resource to create. pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_cluster_custom_object(group, version, plural, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->create_cluster_custom_object: %s\n" % e) +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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). (optional) + + try: + api_response = api_instance.create_cluster_custom_object(group, version, plural, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->create_cluster_custom_object: %s\n" % e) ``` ### Parameters @@ -77,8 +83,10 @@ Name | Type | Description | Notes **group** | **str**| The custom resource's group name | **version** | **str**| The custom resource's version | **plural** | **str**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to create. | + **body** | **object**| The JSON schema of the Resource to create. | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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). | [optional] ### Return type @@ -93,10 +101,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_custom_object** -> object create_namespaced_custom_object(group, version, namespace, plural, body, pretty=pretty) +> object create_namespaced_custom_object(group, version, namespace, plural, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) @@ -104,34 +118,40 @@ Creates a namespace scoped Custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | The custom resource's group name +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | The custom resource's group name version = 'version_example' # str | The custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to create. +body = None # object | The JSON schema of the Resource to create. pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) - -try: - api_response = api_instance.create_namespaced_custom_object(group, version, namespace, plural, body, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->create_namespaced_custom_object: %s\n" % e) +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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. (optional) + + try: + api_response = api_instance.create_namespaced_custom_object(group, version, namespace, plural, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->create_namespaced_custom_object: %s\n" % e) ``` ### Parameters @@ -142,8 +162,10 @@ Name | Type | Description | Notes **version** | **str**| The custom resource's version | **namespace** | **str**| The custom resource's namespace | **plural** | **str**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to create. | + **body** | **object**| The JSON schema of the Resource to create. | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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. | [optional] ### Return type @@ -158,10 +180,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_custom_object** -> object delete_cluster_custom_object(group, version, plural, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +> object delete_cluster_custom_object(group, version, plural, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, dry_run=dry_run, body=body) @@ -169,49 +197,55 @@ Deletes the specified cluster scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | The custom resource's group name -version = 'version_example' # str | The custom resource's version -plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group +version = 'version_example' # str | the custom resource's version +plural = 'plural_example' # str | the custom object's plural name. For TPRs this would be lowercase plural kind. +name = 'name_example' # str | the custom object's name grace_period_seconds = 56 # int | 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. (optional) orphan_dependents = True # bool | 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. (optional) propagation_policy = 'propagation_policy_example' # str | 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. (optional) +dry_run = 'dry_run_example' # str | 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 (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_custom_object(group, version, plural, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->delete_cluster_custom_object: %s\n" % e) + try: + api_response = api_instance.delete_cluster_custom_object(group, version, plural, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, dry_run=dry_run, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->delete_cluster_custom_object: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group** | **str**| The custom resource's group name | - **version** | **str**| The custom resource's version | - **plural** | **str**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | - **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] + **group** | **str**| the custom resource's group | + **version** | **str**| the custom resource's version | + **plural** | **str**| the custom object's plural name. For TPRs this would be lowercase plural kind. | + **name** | **str**| the custom object's name | **grace_period_seconds** | **int**| 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. | [optional] **orphan_dependents** | **bool**| 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. | [optional] **propagation_policy** | **str**| 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. | [optional] + **dry_run** | **str**| 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 | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -227,60 +261,72 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_cluster_custom_object_0** -> object delete_cluster_custom_object_0(group, version, plural, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_collection_cluster_custom_object** +> object delete_collection_cluster_custom_object(group, version, plural, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, dry_run=dry_run, body=body) -Deletes the specified cluster scoped custom object +Delete collection of cluster scoped custom objects ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group -version = 'version_example' # str | the custom resource's version -plural = 'plural_example' # str | the custom object's plural name. For TPRs this would be lowercase plural kind. -name = 'name_example' # str | the custom object's name +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | The custom resource's group name +version = 'version_example' # str | The custom resource's version +plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. +pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) grace_period_seconds = 56 # int | 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. (optional) orphan_dependents = True # bool | 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. (optional) propagation_policy = 'propagation_policy_example' # str | 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. (optional) +dry_run = 'dry_run_example' # str | 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 (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_custom_object_0(group, version, plural, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->delete_cluster_custom_object_0: %s\n" % e) + try: + api_response = api_instance.delete_collection_cluster_custom_object(group, version, plural, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, dry_run=dry_run, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->delete_collection_cluster_custom_object: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **group** | **str**| the custom resource's group | - **version** | **str**| the custom resource's version | - **plural** | **str**| the custom object's plural name. For TPRs this would be lowercase plural kind. | - **name** | **str**| the custom object's name | + **group** | **str**| The custom resource's group name | + **version** | **str**| The custom resource's version | + **plural** | **str**| The custom resource's plural name. For TPRs this would be lowercase plural kind. | + **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **grace_period_seconds** | **int**| 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. | [optional] **orphan_dependents** | **bool**| 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. | [optional] **propagation_policy** | **str**| 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. | [optional] + **dry_run** | **str**| 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 | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -296,34 +342,44 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_custom_object** -> object delete_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_collection_namespaced_custom_object** +> object delete_collection_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, dry_run=dry_run, body=body) -Deletes the specified namespace scoped custom object +Delete collection of namespace scoped custom objects ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | The custom resource's group name +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | The custom resource's group name version = 'version_example' # str | The custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. @@ -331,13 +387,14 @@ pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. grace_period_seconds = 56 # int | 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. (optional) orphan_dependents = True # bool | 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. (optional) propagation_policy = 'propagation_policy_example' # str | 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. (optional) +dry_run = 'dry_run_example' # str | 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 (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->delete_namespaced_custom_object: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, dry_run=dry_run, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->delete_collection_namespaced_custom_object: %s\n" % e) ``` ### Parameters @@ -352,6 +409,7 @@ Name | Type | Description | Notes **grace_period_seconds** | **int**| 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. | [optional] **orphan_dependents** | **bool**| 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. | [optional] **propagation_policy** | **str**| 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. | [optional] + **dry_run** | **str**| 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 | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -367,10 +425,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **delete_namespaced_custom_object_0** -> object delete_namespaced_custom_object_0(group, version, namespace, plural, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) +# **delete_namespaced_custom_object** +> object delete_namespaced_custom_object(group, version, namespace, plural, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, dry_run=dry_run, body=body) @@ -378,23 +442,27 @@ Deletes the specified namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. @@ -402,13 +470,14 @@ name = 'name_example' # str | the custom object's name grace_period_seconds = 56 # int | 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. (optional) orphan_dependents = True # bool | 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. (optional) propagation_policy = 'propagation_policy_example' # str | 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. (optional) +dry_run = 'dry_run_example' # str | 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 (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_custom_object_0(group, version, namespace, plural, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->delete_namespaced_custom_object_0: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_custom_object(group, version, namespace, plural, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, dry_run=dry_run, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->delete_namespaced_custom_object: %s\n" % e) ``` ### Parameters @@ -423,6 +492,7 @@ Name | Type | Description | Notes **grace_period_seconds** | **int**| 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. | [optional] **orphan_dependents** | **bool**| 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. | [optional] **propagation_policy** | **str**| 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. | [optional] + **dry_run** | **str**| 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 | [optional] **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -438,6 +508,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_cluster_custom_object** @@ -449,32 +525,36 @@ Returns a cluster scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom object's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: - api_response = api_instance.get_cluster_custom_object(group, version, plural, name) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->get_cluster_custom_object: %s\n" % e) + try: + api_response = api_instance.get_cluster_custom_object(group, version, plural, name) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->get_cluster_custom_object: %s\n" % e) ``` ### Parameters @@ -499,6 +579,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A single Resource | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_cluster_custom_object_scale** @@ -510,32 +596,36 @@ read scale of the specified custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: - api_response = api_instance.get_cluster_custom_object_scale(group, version, plural, name) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->get_cluster_custom_object_scale: %s\n" % e) + try: + api_response = api_instance.get_cluster_custom_object_scale(group, version, plural, name) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->get_cluster_custom_object_scale: %s\n" % e) ``` ### Parameters @@ -560,6 +650,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_cluster_custom_object_status** @@ -571,32 +667,36 @@ read status of the specified cluster scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: - api_response = api_instance.get_cluster_custom_object_status(group, version, plural, name) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->get_cluster_custom_object_status: %s\n" % e) + try: + api_response = api_instance.get_cluster_custom_object_status(group, version, plural, name) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->get_cluster_custom_object_status: %s\n" % e) ``` ### Parameters @@ -621,6 +721,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_namespaced_custom_object** @@ -632,33 +738,37 @@ Returns a namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: - api_response = api_instance.get_namespaced_custom_object(group, version, namespace, plural, name) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->get_namespaced_custom_object: %s\n" % e) + try: + api_response = api_instance.get_namespaced_custom_object(group, version, namespace, plural, name) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->get_namespaced_custom_object: %s\n" % e) ``` ### Parameters @@ -684,6 +794,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A single Resource | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_namespaced_custom_object_scale** @@ -695,33 +811,37 @@ read scale of the specified namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: - api_response = api_instance.get_namespaced_custom_object_scale(group, version, namespace, plural, name) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->get_namespaced_custom_object_scale: %s\n" % e) + try: + api_response = api_instance.get_namespaced_custom_object_scale(group, version, namespace, plural, name) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->get_namespaced_custom_object_scale: %s\n" % e) ``` ### Parameters @@ -747,6 +867,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_namespaced_custom_object_status** @@ -758,33 +884,37 @@ read status of the specified namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -try: - api_response = api_instance.get_namespaced_custom_object_status(group, version, namespace, plural, name) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->get_namespaced_custom_object_status: %s\n" % e) + try: + api_response = api_instance.get_namespaced_custom_object_status(group, version, namespace, plural, name) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->get_namespaced_custom_object_status: %s\n" % e) ``` ### Parameters @@ -810,6 +940,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_custom_object** @@ -821,23 +957,27 @@ list or watch cluster scoped custom objects ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | The custom resource's group name +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | The custom resource's group name version = 'version_example' # str | The custom resource's version plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) @@ -849,11 +989,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) -try: - api_response = api_instance.list_cluster_custom_object(group, version, plural, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->list_cluster_custom_object: %s\n" % e) + try: + api_response = api_instance.list_cluster_custom_object(group, version, plural, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->list_cluster_custom_object: %s\n" % e) ``` ### Parameters @@ -885,6 +1025,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/json;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_custom_object** @@ -896,23 +1042,27 @@ list or watch namespace scoped custom objects ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | The custom resource's group name +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | The custom resource's group name version = 'version_example' # str | The custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | The custom resource's plural name. For TPRs this would be lowercase plural kind. @@ -925,11 +1075,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) -try: - api_response = api_instance.list_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->list_namespaced_custom_object: %s\n" % e) + try: + api_response = api_instance.list_namespaced_custom_object(group, version, namespace, plural, pretty=pretty, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->list_namespaced_custom_object: %s\n" % e) ``` ### Parameters @@ -962,10 +1112,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/json;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_cluster_custom_object** -> object patch_cluster_custom_object(group, version, plural, name, body) +> object patch_cluster_custom_object(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) @@ -973,33 +1129,40 @@ patch the specified cluster scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom object's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to patch. - -try: - api_response = api_instance.patch_cluster_custom_object(group, version, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->patch_cluster_custom_object: %s\n" % e) +body = None # object | The JSON schema of the Resource to patch. +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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). (optional) +force = True # bool | 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. (optional) + + try: + api_response = api_instance.patch_cluster_custom_object(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->patch_cluster_custom_object: %s\n" % e) ``` ### Parameters @@ -1010,7 +1173,10 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom object's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to patch. | + **body** | **object**| The JSON schema of the Resource to patch. | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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). | [optional] + **force** | **bool**| 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. | [optional] ### Return type @@ -1025,10 +1191,16 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_cluster_custom_object_scale** -> object patch_cluster_custom_object_scale(group, version, plural, name, body) +> object patch_cluster_custom_object_scale(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) @@ -1036,33 +1208,40 @@ partially update scale of the specified cluster scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | - -try: - api_response = api_instance.patch_cluster_custom_object_scale(group, version, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->patch_cluster_custom_object_scale: %s\n" % e) +body = None # object | +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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). (optional) +force = True # bool | 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. (optional) + + try: + api_response = api_instance.patch_cluster_custom_object_scale(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->patch_cluster_custom_object_scale: %s\n" % e) ``` ### Parameters @@ -1073,7 +1252,10 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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). | [optional] + **force** | **bool**| 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. | [optional] ### Return type @@ -1088,10 +1270,16 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_cluster_custom_object_status** -> object patch_cluster_custom_object_status(group, version, plural, name, body) +> object patch_cluster_custom_object_status(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) @@ -1099,33 +1287,40 @@ partially update status of the specified cluster scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | - -try: - api_response = api_instance.patch_cluster_custom_object_status(group, version, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->patch_cluster_custom_object_status: %s\n" % e) +body = None # object | +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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). (optional) +force = True # bool | 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. (optional) + + try: + api_response = api_instance.patch_cluster_custom_object_status(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->patch_cluster_custom_object_status: %s\n" % e) ``` ### Parameters @@ -1136,7 +1331,10 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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). | [optional] + **force** | **bool**| 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. | [optional] ### Return type @@ -1151,10 +1349,16 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_custom_object** -> object patch_namespaced_custom_object(group, version, namespace, plural, name, body) +> object patch_namespaced_custom_object(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) @@ -1162,34 +1366,41 @@ patch the specified namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to patch. - -try: - api_response = api_instance.patch_namespaced_custom_object(group, version, namespace, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->patch_namespaced_custom_object: %s\n" % e) +body = None # object | The JSON schema of the Resource to patch. +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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). (optional) +force = True # bool | 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. (optional) + + try: + api_response = api_instance.patch_namespaced_custom_object(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->patch_namespaced_custom_object: %s\n" % e) ``` ### Parameters @@ -1201,7 +1412,10 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to patch. | + **body** | **object**| The JSON schema of the Resource to patch. | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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). | [optional] + **force** | **bool**| 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. | [optional] ### Return type @@ -1216,10 +1430,16 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_custom_object_scale** -> object patch_namespaced_custom_object_scale(group, version, namespace, plural, name, body) +> object patch_namespaced_custom_object_scale(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) @@ -1227,34 +1447,41 @@ partially update scale of the specified namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | - -try: - api_response = api_instance.patch_namespaced_custom_object_scale(group, version, namespace, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->patch_namespaced_custom_object_scale: %s\n" % e) +body = None # object | +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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). (optional) +force = True # bool | 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. (optional) + + try: + api_response = api_instance.patch_namespaced_custom_object_scale(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->patch_namespaced_custom_object_scale: %s\n" % e) ``` ### Parameters @@ -1266,7 +1493,10 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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). | [optional] + **force** | **bool**| 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. | [optional] ### Return type @@ -1278,13 +1508,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_custom_object_status** -> object patch_namespaced_custom_object_status(group, version, namespace, plural, name, body) +> object patch_namespaced_custom_object_status(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) @@ -1292,34 +1528,41 @@ partially update status of the specified namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | - -try: - api_response = api_instance.patch_namespaced_custom_object_status(group, version, namespace, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->patch_namespaced_custom_object_status: %s\n" % e) +body = None # object | +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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). (optional) +force = True # bool | 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. (optional) + + try: + api_response = api_instance.patch_namespaced_custom_object_status(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->patch_namespaced_custom_object_status: %s\n" % e) ``` ### Parameters @@ -1331,7 +1574,10 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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). | [optional] + **force** | **bool**| 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. | [optional] ### Return type @@ -1343,13 +1589,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_cluster_custom_object** -> object replace_cluster_custom_object(group, version, plural, name, body) +> object replace_cluster_custom_object(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager) @@ -1357,33 +1609,39 @@ replace the specified cluster scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom object's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to replace. - -try: - api_response = api_instance.replace_cluster_custom_object(group, version, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->replace_cluster_custom_object: %s\n" % e) +body = None # object | The JSON schema of the Resource to replace. +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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. (optional) + + try: + api_response = api_instance.replace_cluster_custom_object(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->replace_cluster_custom_object: %s\n" % e) ``` ### Parameters @@ -1394,7 +1652,9 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom object's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to replace. | + **body** | **object**| The JSON schema of the Resource to replace. | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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. | [optional] ### Return type @@ -1409,10 +1669,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_cluster_custom_object_scale** -> object replace_cluster_custom_object_scale(group, version, plural, name, body) +> object replace_cluster_custom_object_scale(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager) @@ -1420,33 +1686,39 @@ replace scale of the specified cluster scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | - -try: - api_response = api_instance.replace_cluster_custom_object_scale(group, version, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->replace_cluster_custom_object_scale: %s\n" % e) +body = None # object | +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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. (optional) + + try: + api_response = api_instance.replace_cluster_custom_object_scale(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->replace_cluster_custom_object_scale: %s\n" % e) ``` ### Parameters @@ -1457,7 +1729,9 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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. | [optional] ### Return type @@ -1472,10 +1746,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_cluster_custom_object_status** -> object replace_cluster_custom_object_status(group, version, plural, name, body) +> object replace_cluster_custom_object_status(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager) @@ -1483,33 +1764,39 @@ replace status of the cluster scoped specified custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | - -try: - api_response = api_instance.replace_cluster_custom_object_status(group, version, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->replace_cluster_custom_object_status: %s\n" % e) +body = None # object | +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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. (optional) + + try: + api_response = api_instance.replace_cluster_custom_object_status(group, version, plural, name, body, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->replace_cluster_custom_object_status: %s\n" % e) ``` ### Parameters @@ -1520,7 +1807,9 @@ Name | Type | Description | Notes **version** | **str**| the custom resource's version | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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. | [optional] ### Return type @@ -1535,10 +1824,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_custom_object** -> object replace_namespaced_custom_object(group, version, namespace, plural, name, body) +> object replace_namespaced_custom_object(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager) @@ -1546,34 +1842,40 @@ replace the specified namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | The JSON schema of the Resource to replace. - -try: - api_response = api_instance.replace_namespaced_custom_object(group, version, namespace, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->replace_namespaced_custom_object: %s\n" % e) +body = None # object | The JSON schema of the Resource to replace. +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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. (optional) + + try: + api_response = api_instance.replace_namespaced_custom_object(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->replace_namespaced_custom_object: %s\n" % e) ``` ### Parameters @@ -1585,7 +1887,9 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| The JSON schema of the Resource to replace. | + **body** | **object**| The JSON schema of the Resource to replace. | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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. | [optional] ### Return type @@ -1600,10 +1904,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_custom_object_scale** -> object replace_namespaced_custom_object_scale(group, version, namespace, plural, name, body) +> object replace_namespaced_custom_object_scale(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager) @@ -1611,34 +1921,40 @@ replace scale of the specified namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | - -try: - api_response = api_instance.replace_namespaced_custom_object_scale(group, version, namespace, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->replace_namespaced_custom_object_scale: %s\n" % e) +body = None # object | +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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. (optional) + + try: + api_response = api_instance.replace_namespaced_custom_object_scale(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->replace_namespaced_custom_object_scale: %s\n" % e) ``` ### Parameters @@ -1650,7 +1966,9 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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. | [optional] ### Return type @@ -1665,10 +1983,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_custom_object_status** -> object replace_namespaced_custom_object_status(group, version, namespace, plural, name, body) +> object replace_namespaced_custom_object_status(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager) @@ -1676,34 +2001,40 @@ replace status of the specified namespace scoped custom object ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.CustomObjectsApi(kubernetes.client.ApiClient(configuration)) -group = 'group_example' # str | the custom resource's group +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.CustomObjectsApi(api_client) + group = 'group_example' # str | the custom resource's group version = 'version_example' # str | the custom resource's version namespace = 'namespace_example' # str | The custom resource's namespace plural = 'plural_example' # str | the custom resource's plural name. For TPRs this would be lowercase plural kind. name = 'name_example' # str | the custom object's name -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | - -try: - api_response = api_instance.replace_namespaced_custom_object_status(group, version, namespace, plural, name, body) - pprint(api_response) -except ApiException as e: - print("Exception when calling CustomObjectsApi->replace_namespaced_custom_object_status: %s\n" % e) +body = None # object | +dry_run = 'dry_run_example' # str | 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 (optional) +field_manager = 'field_manager_example' # str | 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. (optional) + + try: + api_response = api_instance.replace_namespaced_custom_object_status(group, version, namespace, plural, name, body, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling CustomObjectsApi->replace_namespaced_custom_object_status: %s\n" % e) ``` ### Parameters @@ -1715,7 +2046,9 @@ Name | Type | Description | Notes **namespace** | **str**| The custom resource's namespace | **plural** | **str**| the custom resource's plural name. For TPRs this would be lowercase plural kind. | **name** | **str**| the custom object's name | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | + **dry_run** | **str**| 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 | [optional] + **field_manager** | **str**| 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. | [optional] ### Return type @@ -1730,5 +2063,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/DiscoveryApi.md b/kubernetes/docs/DiscoveryApi.md index 1859bada29..4d09ae143a 100644 --- a/kubernetes/docs/DiscoveryApi.md +++ b/kubernetes/docs/DiscoveryApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/DiscoveryV1alpha1Api.md b/kubernetes/docs/DiscoveryV1alpha1Api.md index 3e34d1ae09..5b934d7167 100644 --- a/kubernetes/docs/DiscoveryV1alpha1Api.md +++ b/kubernetes/docs/DiscoveryV1alpha1Api.md @@ -24,33 +24,37 @@ create an EndpointSlice ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1alpha1EndpointSlice() # V1alpha1EndpointSlice | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_endpoint_slice(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryV1alpha1Api->create_namespaced_endpoint_slice: %s\n" % e) + try: + api_response = api_instance.create_namespaced_endpoint_slice(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryV1alpha1Api->create_namespaced_endpoint_slice: %s\n" % e) ``` ### Parameters @@ -76,10 +80,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_endpoint_slice** -> V1Status delete_collection_namespaced_endpoint_slice(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_endpoint_slice(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -87,25 +99,28 @@ delete collection of EndpointSlice ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -116,14 +131,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_endpoint_slice(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryV1alpha1Api->delete_collection_namespaced_endpoint_slice: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_endpoint_slice(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryV1alpha1Api->delete_collection_namespaced_endpoint_slice: %s\n" % e) ``` ### Parameters @@ -132,7 +146,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -143,8 +156,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -159,6 +171,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_endpoint_slice** @@ -170,23 +188,27 @@ delete an EndpointSlice ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the EndpointSlice +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryV1alpha1Api(api_client) + name = 'name_example' # str | name of the EndpointSlice namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -195,11 +217,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_endpoint_slice(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryV1alpha1Api->delete_namespaced_endpoint_slice: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_endpoint_slice(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryV1alpha1Api->delete_namespaced_endpoint_slice: %s\n" % e) ``` ### Parameters @@ -228,6 +250,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -239,28 +268,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryV1alpha1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryV1alpha1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryV1alpha1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryV1alpha1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -279,6 +312,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_endpoint_slice_for_all_namespaces** @@ -290,23 +329,27 @@ list or watch objects of kind EndpointSlice ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryV1alpha1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryV1alpha1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -316,11 +359,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_endpoint_slice_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryV1alpha1Api->list_endpoint_slice_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_endpoint_slice_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryV1alpha1Api->list_endpoint_slice_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -350,6 +393,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_endpoint_slice** @@ -361,23 +410,27 @@ list or watch objects of kind EndpointSlice ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -388,11 +441,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_endpoint_slice(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryV1alpha1Api->list_namespaced_endpoint_slice: %s\n" % e) + try: + api_response = api_instance.list_namespaced_endpoint_slice(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryV1alpha1Api->list_namespaced_endpoint_slice: %s\n" % e) ``` ### Parameters @@ -423,6 +476,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_endpoint_slice** @@ -434,35 +493,39 @@ partially update the specified EndpointSlice ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the EndpointSlice +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryV1alpha1Api(api_client) + name = 'name_example' # str | name of the EndpointSlice namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_endpoint_slice(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryV1alpha1Api->patch_namespaced_endpoint_slice: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_endpoint_slice(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryV1alpha1Api->patch_namespaced_endpoint_slice: %s\n" % e) ``` ### Parameters @@ -471,7 +534,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the EndpointSlice | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -490,6 +553,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_endpoint_slice** @@ -501,33 +570,37 @@ read the specified EndpointSlice ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the EndpointSlice +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryV1alpha1Api(api_client) + name = 'name_example' # str | name of the EndpointSlice namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_endpoint_slice(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryV1alpha1Api->read_namespaced_endpoint_slice: %s\n" % e) + try: + api_response = api_instance.read_namespaced_endpoint_slice(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryV1alpha1Api->read_namespaced_endpoint_slice: %s\n" % e) ``` ### Parameters @@ -553,6 +626,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_endpoint_slice** @@ -564,34 +643,38 @@ replace the specified EndpointSlice ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.DiscoveryV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the EndpointSlice +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.DiscoveryV1alpha1Api(api_client) + name = 'name_example' # str | name of the EndpointSlice namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1alpha1EndpointSlice() # V1alpha1EndpointSlice | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_endpoint_slice(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling DiscoveryV1alpha1Api->replace_namespaced_endpoint_slice: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_endpoint_slice(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling DiscoveryV1alpha1Api->replace_namespaced_endpoint_slice: %s\n" % e) ``` ### Parameters @@ -618,5 +701,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/EventsApi.md b/kubernetes/docs/EventsApi.md index 7f7b130c37..a0ec897972 100644 --- a/kubernetes/docs/EventsApi.md +++ b/kubernetes/docs/EventsApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/EventsV1beta1Api.md b/kubernetes/docs/EventsV1beta1Api.md index b4942cb037..25a310332a 100644 --- a/kubernetes/docs/EventsV1beta1Api.md +++ b/kubernetes/docs/EventsV1beta1Api.md @@ -24,33 +24,37 @@ create an Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1Event() # V1beta1Event | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_event(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsV1beta1Api->create_namespaced_event: %s\n" % e) + try: + api_response = api_instance.create_namespaced_event(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsV1beta1Api->create_namespaced_event: %s\n" % e) ``` ### Parameters @@ -76,10 +80,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_event** -> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_event(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -87,25 +99,28 @@ delete collection of Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -116,14 +131,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsV1beta1Api->delete_collection_namespaced_event: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_event(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsV1beta1Api->delete_collection_namespaced_event: %s\n" % e) ``` ### Parameters @@ -132,7 +146,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -143,8 +156,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -159,6 +171,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_event** @@ -170,23 +188,27 @@ delete an Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Event +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsV1beta1Api(api_client) + name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -195,11 +217,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsV1beta1Api->delete_namespaced_event: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsV1beta1Api->delete_namespaced_event: %s\n" % e) ``` ### Parameters @@ -228,6 +250,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -239,28 +268,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -279,6 +312,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_event_for_all_namespaces** @@ -290,23 +329,27 @@ list or watch objects of kind Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -316,11 +359,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsV1beta1Api->list_event_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsV1beta1Api->list_event_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -350,6 +393,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_event** @@ -361,23 +410,27 @@ list or watch objects of kind Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -388,11 +441,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsV1beta1Api->list_namespaced_event: %s\n" % e) + try: + api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsV1beta1Api->list_namespaced_event: %s\n" % e) ``` ### Parameters @@ -423,6 +476,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_event** @@ -434,35 +493,39 @@ partially update the specified Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Event +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsV1beta1Api(api_client) + name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsV1beta1Api->patch_namespaced_event: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsV1beta1Api->patch_namespaced_event: %s\n" % e) ``` ### Parameters @@ -471,7 +534,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Event | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -490,6 +553,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_event** @@ -501,33 +570,37 @@ read the specified Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Event +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsV1beta1Api(api_client) + name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsV1beta1Api->read_namespaced_event: %s\n" % e) + try: + api_response = api_instance.read_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsV1beta1Api->read_namespaced_event: %s\n" % e) ``` ### Parameters @@ -553,6 +626,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_event** @@ -564,34 +643,38 @@ replace the specified Event ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.EventsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Event +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.EventsV1beta1Api(api_client) + name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1Event() # V1beta1Event | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling EventsV1beta1Api->replace_namespaced_event: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling EventsV1beta1Api->replace_namespaced_event: %s\n" % e) ``` ### Parameters @@ -618,5 +701,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsApi.md b/kubernetes/docs/ExtensionsApi.md index 2839adb8d1..cf35929faf 100644 --- a/kubernetes/docs/ExtensionsApi.md +++ b/kubernetes/docs/ExtensionsApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1AllowedCSIDriver.md b/kubernetes/docs/ExtensionsV1beta1AllowedCSIDriver.md index ac24501c55..22c8d44284 100644 --- a/kubernetes/docs/ExtensionsV1beta1AllowedCSIDriver.md +++ b/kubernetes/docs/ExtensionsV1beta1AllowedCSIDriver.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1AllowedCSIDriver +AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1AllowedFlexVolume.md b/kubernetes/docs/ExtensionsV1beta1AllowedFlexVolume.md index 3a6a81d7d2..0d09a3d3cf 100644 --- a/kubernetes/docs/ExtensionsV1beta1AllowedFlexVolume.md +++ b/kubernetes/docs/ExtensionsV1beta1AllowedFlexVolume.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1AllowedFlexVolume +AllowedFlexVolume represents a single Flexvolume that is allowed to be used. Deprecated: use AllowedFlexVolume from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1AllowedHostPath.md b/kubernetes/docs/ExtensionsV1beta1AllowedHostPath.md index 30d94f1624..90fcb9f9f8 100644 --- a/kubernetes/docs/ExtensionsV1beta1AllowedHostPath.md +++ b/kubernetes/docs/ExtensionsV1beta1AllowedHostPath.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1AllowedHostPath +AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. Deprecated: use AllowedHostPath from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1Api.md b/kubernetes/docs/ExtensionsV1beta1Api.md index bf3c0eaab0..09fcb47841 100644 --- a/kubernetes/docs/ExtensionsV1beta1Api.md +++ b/kubernetes/docs/ExtensionsV1beta1Api.md @@ -85,33 +85,37 @@ create a DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1DaemonSet() # V1beta1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.create_namespaced_daemon_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -137,6 +141,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_deployment** @@ -148,33 +160,37 @@ create a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1Deployment() # ExtensionsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.create_namespaced_deployment(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -200,6 +216,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_deployment_rollback** @@ -211,34 +235,38 @@ create rollback of a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DeploymentRollback +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the DeploymentRollback namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1DeploymentRollback() # ExtensionsV1beta1DeploymentRollback | dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.create_namespaced_deployment_rollback(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_deployment_rollback: %s\n" % e) + try: + api_response = api_instance.create_namespaced_deployment_rollback(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_deployment_rollback: %s\n" % e) ``` ### Parameters @@ -265,6 +293,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_ingress** @@ -276,33 +312,37 @@ create an Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1Ingress() # ExtensionsV1beta1Ingress | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_ingress(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.create_namespaced_ingress(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -328,6 +368,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_network_policy** @@ -339,33 +387,37 @@ create a NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1NetworkPolicy() # V1beta1NetworkPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_network_policy(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.create_namespaced_network_policy(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -391,6 +443,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_replica_set** @@ -402,33 +462,37 @@ create a ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1ReplicaSet() # V1beta1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.create_namespaced_replica_set(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -454,6 +518,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_pod_security_policy** @@ -465,32 +537,36 @@ create a PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.ExtensionsV1beta1PodSecurityPolicy() # ExtensionsV1beta1PodSecurityPolicy | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + body = kubernetes.client.ExtensionsV1beta1PodSecurityPolicy() # ExtensionsV1beta1PodSecurityPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_pod_security_policy(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->create_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.create_pod_security_policy(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->create_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -515,10 +591,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_daemon_set** -> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -526,25 +610,28 @@ delete collection of DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -555,14 +642,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_daemon_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -571,7 +657,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -582,8 +667,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -598,10 +682,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_deployment** -> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -609,25 +699,28 @@ delete collection of Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -638,14 +731,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_deployment(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -654,7 +746,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -665,8 +756,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -681,10 +771,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_ingress** -> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -692,25 +788,28 @@ delete collection of Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -721,14 +820,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -737,7 +835,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -748,8 +845,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -764,10 +860,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_network_policy** -> V1Status delete_collection_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -775,25 +877,28 @@ delete collection of NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -804,14 +909,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -820,7 +924,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -831,8 +934,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -847,10 +949,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_replica_set** -> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -858,25 +966,28 @@ delete collection of ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -887,14 +998,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_replica_set(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_collection_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -903,7 +1013,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -914,8 +1023,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -930,10 +1038,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_pod_security_policy** -> V1Status delete_collection_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_pod_security_policy(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -941,24 +1055,27 @@ delete collection of PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -969,14 +1086,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_collection_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_collection_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -984,7 +1100,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -995,8 +1110,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1011,6 +1125,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_daemon_set** @@ -1022,23 +1142,27 @@ delete a DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -1047,11 +1171,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_daemon_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -1080,6 +1204,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_deployment** @@ -1091,23 +1222,27 @@ delete a Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -1116,11 +1251,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_deployment(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -1149,6 +1284,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_ingress** @@ -1160,23 +1302,27 @@ delete an Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -1185,11 +1331,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_ingress(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_ingress(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -1218,6 +1364,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_network_policy** @@ -1229,23 +1382,27 @@ delete a NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NetworkPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -1254,11 +1411,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_network_policy(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_network_policy(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -1287,6 +1444,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_replica_set** @@ -1298,23 +1462,27 @@ delete a ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -1323,11 +1491,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_replica_set(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -1356,6 +1524,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_pod_security_policy** @@ -1367,23 +1542,27 @@ delete a PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodSecurityPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the PodSecurityPolicy pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -1391,11 +1570,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_pod_security_policy(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->delete_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.delete_pod_security_policy(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->delete_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -1423,6 +1602,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -1434,28 +1620,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -1474,6 +1664,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_daemon_set_for_all_namespaces** @@ -1485,23 +1681,27 @@ list or watch objects of kind DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1511,11 +1711,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_daemon_set_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_daemon_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_daemon_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1545,6 +1745,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_deployment_for_all_namespaces** @@ -1556,23 +1762,27 @@ list or watch objects of kind Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1582,11 +1792,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_deployment_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_deployment_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_deployment_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1616,6 +1826,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_ingress_for_all_namespaces** @@ -1627,23 +1843,27 @@ list or watch objects of kind Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1653,11 +1873,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_ingress_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_ingress_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_ingress_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_ingress_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1687,6 +1907,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_daemon_set** @@ -1698,23 +1924,27 @@ list or watch objects of kind DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1725,11 +1955,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.list_namespaced_daemon_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -1760,6 +1990,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_deployment** @@ -1771,23 +2007,27 @@ list or watch objects of kind Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1798,11 +2038,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.list_namespaced_deployment(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -1833,6 +2073,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_ingress** @@ -1844,23 +2090,27 @@ list or watch objects of kind Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1871,11 +2121,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -1906,6 +2156,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_network_policy** @@ -1917,23 +2173,27 @@ list or watch objects of kind NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1944,11 +2204,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -1979,6 +2239,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_replica_set** @@ -1990,23 +2256,27 @@ list or watch objects of kind ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -2017,11 +2287,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.list_namespaced_replica_set(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -2052,6 +2322,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_network_policy_for_all_namespaces** @@ -2063,23 +2339,27 @@ list or watch objects of kind NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2089,11 +2369,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_network_policy_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_network_policy_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_network_policy_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_network_policy_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -2123,6 +2403,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_security_policy** @@ -2134,23 +2420,27 @@ list or watch objects of kind PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -2160,11 +2450,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.list_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -2194,6 +2484,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_replica_set_for_all_namespaces** @@ -2205,23 +2501,27 @@ list or watch objects of kind ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2231,11 +2531,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->list_replica_set_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_replica_set_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->list_replica_set_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -2265,6 +2565,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_daemon_set** @@ -2276,35 +2582,39 @@ partially update the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -2313,7 +2623,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2332,6 +2642,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_daemon_set_status** @@ -2343,35 +2659,39 @@ partially update status of the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_daemon_set_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters @@ -2380,7 +2700,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2399,6 +2719,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment** @@ -2410,35 +2736,39 @@ partially update the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -2447,7 +2777,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2466,6 +2796,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment_scale** @@ -2477,35 +2813,39 @@ partially update scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -2514,7 +2854,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2533,6 +2873,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_deployment_status** @@ -2544,35 +2890,39 @@ partially update status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -2581,7 +2931,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Deployment | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2600,6 +2950,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_ingress** @@ -2611,35 +2967,39 @@ partially update the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -2648,7 +3008,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2667,6 +3027,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_ingress_status** @@ -2678,35 +3044,39 @@ partially update status of the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_ingress_status: %s\n" % e) ``` ### Parameters @@ -2715,7 +3085,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2734,6 +3104,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_network_policy** @@ -2745,35 +3121,39 @@ partially update the specified NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NetworkPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -2782,7 +3162,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2801,6 +3181,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replica_set** @@ -2812,35 +3198,39 @@ partially update the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -2849,7 +3239,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2868,6 +3258,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replica_set_scale** @@ -2879,35 +3275,39 @@ partially update scale of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set_scale: %s\n" % e) ``` ### Parameters @@ -2916,7 +3316,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -2935,6 +3335,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replica_set_status** @@ -2946,35 +3352,39 @@ partially update status of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -2983,7 +3393,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicaSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -3002,6 +3412,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_replication_controller_dummy_scale** @@ -3013,35 +3429,39 @@ partially update scale of the specified ReplicationControllerDummy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_replication_controller_dummy_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replication_controller_dummy_scale: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_replication_controller_dummy_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_namespaced_replication_controller_dummy_scale: %s\n" % e) ``` ### Parameters @@ -3050,7 +3470,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -3069,6 +3489,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_pod_security_policy** @@ -3080,34 +3506,38 @@ partially update the specified PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodSecurityPolicy -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the PodSecurityPolicy +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->patch_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.patch_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->patch_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -3115,7 +3545,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodSecurityPolicy | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -3134,6 +3564,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_daemon_set** @@ -3145,33 +3581,37 @@ read the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.read_namespaced_daemon_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -3197,6 +3637,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_daemon_set_status** @@ -3208,31 +3654,35 @@ read status of the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_daemon_set_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters @@ -3256,6 +3706,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment** @@ -3267,33 +3723,37 @@ read the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -3319,6 +3779,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment_scale** @@ -3330,31 +3796,35 @@ read scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -3378,6 +3848,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_deployment_status** @@ -3389,31 +3865,35 @@ read status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_deployment_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -3437,6 +3917,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_ingress** @@ -3448,33 +3934,37 @@ read the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -3500,6 +3990,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_ingress_status** @@ -3511,31 +4007,35 @@ read status of the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_ingress_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_ingress_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_ingress_status: %s\n" % e) ``` ### Parameters @@ -3559,6 +4059,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_network_policy** @@ -3570,33 +4076,37 @@ read the specified NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NetworkPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.read_namespaced_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -3622,6 +4132,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replica_set** @@ -3633,33 +4149,37 @@ read the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replica_set(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -3685,6 +4205,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replica_set_scale** @@ -3696,31 +4222,35 @@ read scale of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_replica_set_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_replica_set_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replica_set_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_replica_set_scale: %s\n" % e) ``` ### Parameters @@ -3744,6 +4274,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replica_set_status** @@ -3755,31 +4291,35 @@ read status of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_replica_set_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_replica_set_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replica_set_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -3803,6 +4343,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_replication_controller_dummy_scale** @@ -3814,31 +4360,35 @@ read scale of the specified ReplicationControllerDummy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_replication_controller_dummy_scale(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_namespaced_replication_controller_dummy_scale: %s\n" % e) + try: + api_response = api_instance.read_namespaced_replication_controller_dummy_scale(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_namespaced_replication_controller_dummy_scale: %s\n" % e) ``` ### Parameters @@ -3862,6 +4412,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_pod_security_policy** @@ -3873,32 +4429,36 @@ read the specified PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodSecurityPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the PodSecurityPolicy pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_pod_security_policy(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->read_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.read_pod_security_policy(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->read_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -3923,6 +4483,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_daemon_set** @@ -3934,34 +4500,38 @@ replace the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1DaemonSet() # V1beta1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_daemon_set: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_daemon_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_daemon_set: %s\n" % e) ``` ### Parameters @@ -3988,6 +4558,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_daemon_set_status** @@ -3999,34 +4576,38 @@ replace status of the specified DaemonSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the DaemonSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1DaemonSet() # V1beta1DaemonSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_daemon_set_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_daemon_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_daemon_set_status: %s\n" % e) ``` ### Parameters @@ -4053,6 +4634,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment** @@ -4064,34 +4652,38 @@ replace the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1Deployment() # ExtensionsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment: %s\n" % e) ``` ### Parameters @@ -4118,6 +4710,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment_scale** @@ -4129,34 +4728,38 @@ replace scale of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1Scale() # ExtensionsV1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment_scale: %s\n" % e) ``` ### Parameters @@ -4183,6 +4786,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_deployment_status** @@ -4194,34 +4804,38 @@ replace status of the specified Deployment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Deployment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1Deployment() # ExtensionsV1beta1Deployment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_deployment_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_deployment_status: %s\n" % e) ``` ### Parameters @@ -4248,6 +4862,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_ingress** @@ -4259,34 +4880,38 @@ replace the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1Ingress() # ExtensionsV1beta1Ingress | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -4313,6 +4938,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_ingress_status** @@ -4324,34 +4956,38 @@ replace status of the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1Ingress() # ExtensionsV1beta1Ingress | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_ingress_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_ingress_status: %s\n" % e) ``` ### Parameters @@ -4378,6 +5014,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_network_policy** @@ -4389,34 +5032,38 @@ replace the specified NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NetworkPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1NetworkPolicy() # V1beta1NetworkPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -4443,6 +5090,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replica_set** @@ -4454,34 +5108,38 @@ replace the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1ReplicaSet() # V1beta1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replica_set(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set: %s\n" % e) ``` ### Parameters @@ -4508,6 +5166,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replica_set_scale** @@ -4519,34 +5184,38 @@ replace scale of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1Scale() # ExtensionsV1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replica_set_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set_scale: %s\n" % e) ``` ### Parameters @@ -4573,6 +5242,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replica_set_status** @@ -4584,34 +5260,38 @@ replace status of the specified ReplicaSet ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ReplicaSet +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1ReplicaSet() # V1beta1ReplicaSet | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replica_set_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replica_set_status: %s\n" % e) ``` ### Parameters @@ -4638,6 +5318,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_replication_controller_dummy_scale** @@ -4649,34 +5336,38 @@ replace scale of the specified ReplicationControllerDummy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Scale +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.ExtensionsV1beta1Scale() # ExtensionsV1beta1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_replication_controller_dummy_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replication_controller_dummy_scale: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_replication_controller_dummy_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_namespaced_replication_controller_dummy_scale: %s\n" % e) ``` ### Parameters @@ -4703,6 +5394,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_pod_security_policy** @@ -4714,33 +5412,37 @@ replace the specified PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.ExtensionsV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodSecurityPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.ExtensionsV1beta1Api(api_client) + name = 'name_example' # str | name of the PodSecurityPolicy body = kubernetes.client.ExtensionsV1beta1PodSecurityPolicy() # ExtensionsV1beta1PodSecurityPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling ExtensionsV1beta1Api->replace_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.replace_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling ExtensionsV1beta1Api->replace_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -4766,5 +5468,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/ExtensionsV1beta1Deployment.md b/kubernetes/docs/ExtensionsV1beta1Deployment.md index 3e29922726..ded2371252 100644 --- a/kubernetes/docs/ExtensionsV1beta1Deployment.md +++ b/kubernetes/docs/ExtensionsV1beta1Deployment.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1Deployment +DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md index 8a1e61f582..f64303406a 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1DeploymentCondition +DeploymentCondition describes the state of a deployment at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md index 101601517b..7fee6db092 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1DeploymentList +DeploymentList is a list of Deployments. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md index 079d7f9488..47fb149587 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1DeploymentRollback +DEPRECATED. DeploymentRollback stores the information required to rollback a deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md index a2c70b9c98..35b1935433 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1DeploymentSpec +DeploymentSpec is the specification of the desired behavior of the Deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md index a3865ca5f6..1d13625509 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1DeploymentStatus +DeploymentStatus is the most recently observed status of the Deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md index 8d0c545ff5..3f72fcea9a 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1DeploymentStrategy +DeploymentStrategy describes how to replace existing pods with new ones. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1FSGroupStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1FSGroupStrategyOptions.md index a4df652f93..a590663985 100644 --- a/kubernetes/docs/ExtensionsV1beta1FSGroupStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1FSGroupStrategyOptions.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1FSGroupStrategyOptions +FSGroupStrategyOptions defines the strategy type and options used to create the strategy. Deprecated: use FSGroupStrategyOptions from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md b/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md index 4964d38e36..8abb60c37f 100644 --- a/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md +++ b/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1HTTPIngressPath +HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1HTTPIngressRuleValue.md b/kubernetes/docs/ExtensionsV1beta1HTTPIngressRuleValue.md index 3a55677f1b..6b3e981d37 100644 --- a/kubernetes/docs/ExtensionsV1beta1HTTPIngressRuleValue.md +++ b/kubernetes/docs/ExtensionsV1beta1HTTPIngressRuleValue.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1HTTPIngressRuleValue +HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1HostPortRange.md b/kubernetes/docs/ExtensionsV1beta1HostPortRange.md index 3f67af9778..4a4658d62e 100644 --- a/kubernetes/docs/ExtensionsV1beta1HostPortRange.md +++ b/kubernetes/docs/ExtensionsV1beta1HostPortRange.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1HostPortRange +HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. Deprecated: use HostPortRange from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1IDRange.md b/kubernetes/docs/ExtensionsV1beta1IDRange.md index 2d65079b00..32b9d485f4 100644 --- a/kubernetes/docs/ExtensionsV1beta1IDRange.md +++ b/kubernetes/docs/ExtensionsV1beta1IDRange.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1IDRange +IDRange provides a min/max of an allowed range of IDs. Deprecated: use IDRange from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1Ingress.md b/kubernetes/docs/ExtensionsV1beta1Ingress.md index 8022802ba8..fdcb364018 100644 --- a/kubernetes/docs/ExtensionsV1beta1Ingress.md +++ b/kubernetes/docs/ExtensionsV1beta1Ingress.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1Ingress +Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1IngressBackend.md b/kubernetes/docs/ExtensionsV1beta1IngressBackend.md index 5995338d83..f7d1e61dce 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressBackend.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressBackend.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1IngressBackend +IngressBackend describes all endpoints for a given service and port. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1IngressList.md b/kubernetes/docs/ExtensionsV1beta1IngressList.md index f78566d2b1..34dc1c9b48 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressList.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressList.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1IngressList +IngressList is a collection of Ingress. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1IngressRule.md b/kubernetes/docs/ExtensionsV1beta1IngressRule.md index 55144f5154..1ea75a1f8d 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressRule.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressRule.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1IngressRule +IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1IngressSpec.md b/kubernetes/docs/ExtensionsV1beta1IngressSpec.md index 4f1184128d..c4389154c3 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressSpec.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressSpec.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1IngressSpec +IngressSpec describes the Ingress the user wishes to exist. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1IngressStatus.md b/kubernetes/docs/ExtensionsV1beta1IngressStatus.md index ee3614573d..019407218a 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressStatus.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressStatus.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1IngressStatus +IngressStatus describe the current state of the Ingress. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1IngressTLS.md b/kubernetes/docs/ExtensionsV1beta1IngressTLS.md index fa7dbf1c04..b1dd6cabfe 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressTLS.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressTLS.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1IngressTLS +IngressTLS describes the transport layer security associated with an Ingress. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md index 7328ac09eb..e276f875f9 100644 --- a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md +++ b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1PodSecurityPolicy +PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md index ce81f5134f..6f638f0322 100644 --- a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md +++ b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1PodSecurityPolicyList +PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use PodSecurityPolicyList from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md index 88d50ce146..3ef3e27864 100644 --- a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md +++ b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1PodSecurityPolicySpec +PodSecurityPolicySpec defines the policy enforced. Deprecated: use PodSecurityPolicySpec from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md b/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md index 8079d0f9fd..b1b8b7676f 100644 --- a/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md +++ b/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1RollbackConfig +DEPRECATED. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md index 80390426fc..463148367c 100644 --- a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md +++ b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1RollingUpdateDeployment +Spec to control the desired behavior of rolling update. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md index 5a215b246a..c04647df6f 100644 --- a/kubernetes/docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1RunAsGroupStrategyOptions +RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use RunAsGroupStrategyOptions from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1RunAsUserStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1RunAsUserStrategyOptions.md index 6139266c69..a193199a9d 100644 --- a/kubernetes/docs/ExtensionsV1beta1RunAsUserStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1RunAsUserStrategyOptions.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1RunAsUserStrategyOptions +RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use RunAsUserStrategyOptions from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md index 4243834d14..9cc097f59c 100644 --- a/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1RuntimeClassStrategyOptions +RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md index 61ea24e604..89c68d7103 100644 --- a/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1SELinuxStrategyOptions +SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use SELinuxStrategyOptions from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1Scale.md b/kubernetes/docs/ExtensionsV1beta1Scale.md index 7eb1d8ec28..175491e2ef 100644 --- a/kubernetes/docs/ExtensionsV1beta1Scale.md +++ b/kubernetes/docs/ExtensionsV1beta1Scale.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1Scale +represents a scaling request for a resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md b/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md index 832e3a2db8..7959391ce8 100644 --- a/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md +++ b/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1ScaleSpec +describes the attributes of a scale subresource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md b/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md index 893a06c795..933888610f 100644 --- a/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md +++ b/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1ScaleStatus +represents the current status of a scale subresource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/ExtensionsV1beta1SupplementalGroupsStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1SupplementalGroupsStrategyOptions.md index 34158319c0..81ea419b9a 100644 --- a/kubernetes/docs/ExtensionsV1beta1SupplementalGroupsStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1SupplementalGroupsStrategyOptions.md @@ -1,5 +1,6 @@ # ExtensionsV1beta1SupplementalGroupsStrategyOptions +SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. Deprecated: use SupplementalGroupsStrategyOptions from policy API Group instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/LogsApi.md b/kubernetes/docs/LogsApi.md index a58358c714..f78308ae4c 100644 --- a/kubernetes/docs/LogsApi.md +++ b/kubernetes/docs/LogsApi.md @@ -15,28 +15,32 @@ Method | HTTP request | Description ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.LogsApi(kubernetes.client.ApiClient(configuration)) -logpath = 'logpath_example' # str | path to the log +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" -try: - api_instance.log_file_handler(logpath) -except ApiException as e: - print("Exception when calling LogsApi->log_file_handler: %s\n" % e) +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.LogsApi(api_client) + logpath = 'logpath_example' # str | path to the log + + try: + api_instance.log_file_handler(logpath) + except ApiException as e: + print("Exception when calling LogsApi->log_file_handler: %s\n" % e) ``` ### Parameters @@ -58,6 +62,11 @@ void (empty response body) - **Content-Type**: Not defined - **Accept**: Not defined +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **log_file_list_handler** @@ -67,27 +76,31 @@ void (empty response body) ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.LogsApi(kubernetes.client.ApiClient(configuration)) - -try: - api_instance.log_file_list_handler() -except ApiException as e: - print("Exception when calling LogsApi->log_file_list_handler: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.LogsApi(api_client) + + try: + api_instance.log_file_list_handler() + except ApiException as e: + print("Exception when calling LogsApi->log_file_list_handler: %s\n" % e) ``` ### Parameters @@ -106,5 +119,10 @@ void (empty response body) - **Content-Type**: Not defined - **Accept**: Not defined +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingApi.md b/kubernetes/docs/NetworkingApi.md index 097b6ee324..9c2719df4a 100644 --- a/kubernetes/docs/NetworkingApi.md +++ b/kubernetes/docs/NetworkingApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1Api.md b/kubernetes/docs/NetworkingV1Api.md index 867980b8b7..e367914b5f 100644 --- a/kubernetes/docs/NetworkingV1Api.md +++ b/kubernetes/docs/NetworkingV1Api.md @@ -24,33 +24,37 @@ create a NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1NetworkPolicy() # V1NetworkPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_network_policy(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1Api->create_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.create_namespaced_network_policy(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1Api->create_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -76,10 +80,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_network_policy** -> V1Status delete_collection_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -87,25 +99,28 @@ delete collection of NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -116,14 +131,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1Api->delete_collection_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_network_policy(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1Api->delete_collection_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -132,7 +146,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -143,8 +156,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -159,6 +171,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_network_policy** @@ -170,23 +188,27 @@ delete a NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NetworkPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1Api(api_client) + name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -195,11 +217,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_network_policy(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1Api->delete_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_network_policy(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1Api->delete_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -228,6 +250,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -239,28 +268,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -279,6 +312,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_network_policy** @@ -290,23 +329,27 @@ list or watch objects of kind NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -317,11 +360,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1Api->list_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.list_namespaced_network_policy(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1Api->list_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -352,6 +395,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_network_policy_for_all_namespaces** @@ -363,23 +412,27 @@ list or watch objects of kind NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -389,11 +442,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_network_policy_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1Api->list_network_policy_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_network_policy_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1Api->list_network_policy_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -423,6 +476,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_network_policy** @@ -434,35 +493,39 @@ partially update the specified NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NetworkPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1Api(api_client) + name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1Api->patch_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1Api->patch_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -471,7 +534,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the NetworkPolicy | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -490,6 +553,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_network_policy** @@ -501,33 +570,37 @@ read the specified NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NetworkPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1Api(api_client) + name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1Api->read_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.read_namespaced_network_policy(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1Api->read_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -553,6 +626,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_network_policy** @@ -564,34 +643,38 @@ replace the specified NetworkPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the NetworkPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1Api(api_client) + name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1NetworkPolicy() # V1NetworkPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1Api->replace_namespaced_network_policy: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_network_policy(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1Api->replace_namespaced_network_policy: %s\n" % e) ``` ### Parameters @@ -618,5 +701,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1beta1Api.md b/kubernetes/docs/NetworkingV1beta1Api.md index 8e883ca77b..91ccfe0b93 100644 --- a/kubernetes/docs/NetworkingV1beta1Api.md +++ b/kubernetes/docs/NetworkingV1beta1Api.md @@ -27,33 +27,37 @@ create an Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.NetworkingV1beta1Ingress() # NetworkingV1beta1Ingress | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_ingress(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->create_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.create_namespaced_ingress(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->create_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -79,10 +83,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_ingress** -> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -90,25 +102,28 @@ delete collection of Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -119,14 +134,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->delete_collection_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_ingress(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->delete_collection_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -135,7 +149,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -146,8 +159,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -162,6 +174,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_ingress** @@ -173,23 +191,27 @@ delete an Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -198,11 +220,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_ingress(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->delete_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_ingress(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->delete_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -231,6 +253,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -242,28 +271,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -282,6 +315,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_ingress_for_all_namespaces** @@ -293,23 +332,27 @@ list or watch objects of kind Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -319,11 +362,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_ingress_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->list_ingress_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_ingress_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->list_ingress_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -353,6 +396,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_ingress** @@ -364,23 +413,27 @@ list or watch objects of kind Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -391,11 +444,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->list_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.list_namespaced_ingress(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->list_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -426,6 +479,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_ingress** @@ -437,35 +496,39 @@ partially update the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->patch_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->patch_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -474,7 +537,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -493,6 +556,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_ingress_status** @@ -504,35 +573,39 @@ partially update status of the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->patch_namespaced_ingress_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->patch_namespaced_ingress_status: %s\n" % e) ``` ### Parameters @@ -541,7 +614,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Ingress | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -560,6 +633,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_ingress** @@ -571,33 +650,37 @@ read the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->read_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.read_namespaced_ingress(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->read_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -623,6 +706,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_ingress_status** @@ -634,31 +723,35 @@ read status of the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_ingress_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->read_namespaced_ingress_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_ingress_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->read_namespaced_ingress_status: %s\n" % e) ``` ### Parameters @@ -682,6 +775,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_ingress** @@ -693,34 +792,38 @@ replace the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.NetworkingV1beta1Ingress() # NetworkingV1beta1Ingress | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->replace_namespaced_ingress: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_ingress(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->replace_namespaced_ingress: %s\n" % e) ``` ### Parameters @@ -747,6 +850,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_ingress_status** @@ -758,34 +868,38 @@ replace status of the specified Ingress ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NetworkingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Ingress +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NetworkingV1beta1Api(api_client) + name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.NetworkingV1beta1Ingress() # NetworkingV1beta1Ingress | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling NetworkingV1beta1Api->replace_namespaced_ingress_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_ingress_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling NetworkingV1beta1Api->replace_namespaced_ingress_status: %s\n" % e) ``` ### Parameters @@ -812,5 +926,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md b/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md index 1b20801faa..9fb9b8099a 100644 --- a/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md +++ b/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md @@ -1,5 +1,6 @@ # NetworkingV1beta1HTTPIngressPath +HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/NetworkingV1beta1HTTPIngressRuleValue.md b/kubernetes/docs/NetworkingV1beta1HTTPIngressRuleValue.md index d88bb08a31..7c51ecbe6f 100644 --- a/kubernetes/docs/NetworkingV1beta1HTTPIngressRuleValue.md +++ b/kubernetes/docs/NetworkingV1beta1HTTPIngressRuleValue.md @@ -1,5 +1,6 @@ # NetworkingV1beta1HTTPIngressRuleValue +HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/NetworkingV1beta1Ingress.md b/kubernetes/docs/NetworkingV1beta1Ingress.md index 7c694a2870..3768122188 100644 --- a/kubernetes/docs/NetworkingV1beta1Ingress.md +++ b/kubernetes/docs/NetworkingV1beta1Ingress.md @@ -1,5 +1,6 @@ # NetworkingV1beta1Ingress +Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/NetworkingV1beta1IngressBackend.md b/kubernetes/docs/NetworkingV1beta1IngressBackend.md index 47348671c3..d3d9bdf2de 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressBackend.md +++ b/kubernetes/docs/NetworkingV1beta1IngressBackend.md @@ -1,5 +1,6 @@ # NetworkingV1beta1IngressBackend +IngressBackend describes all endpoints for a given service and port. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/NetworkingV1beta1IngressList.md b/kubernetes/docs/NetworkingV1beta1IngressList.md index 7aa3cabbf5..87e2ad772b 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressList.md +++ b/kubernetes/docs/NetworkingV1beta1IngressList.md @@ -1,5 +1,6 @@ # NetworkingV1beta1IngressList +IngressList is a collection of Ingress. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/NetworkingV1beta1IngressRule.md b/kubernetes/docs/NetworkingV1beta1IngressRule.md index 580d569c43..9713936a9e 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressRule.md +++ b/kubernetes/docs/NetworkingV1beta1IngressRule.md @@ -1,5 +1,6 @@ # NetworkingV1beta1IngressRule +IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/NetworkingV1beta1IngressSpec.md b/kubernetes/docs/NetworkingV1beta1IngressSpec.md index 22364544dc..74765c3714 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressSpec.md +++ b/kubernetes/docs/NetworkingV1beta1IngressSpec.md @@ -1,5 +1,6 @@ # NetworkingV1beta1IngressSpec +IngressSpec describes the Ingress the user wishes to exist. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/NetworkingV1beta1IngressStatus.md b/kubernetes/docs/NetworkingV1beta1IngressStatus.md index ef936252db..37e39557a7 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressStatus.md +++ b/kubernetes/docs/NetworkingV1beta1IngressStatus.md @@ -1,5 +1,6 @@ # NetworkingV1beta1IngressStatus +IngressStatus describe the current state of the Ingress. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/NetworkingV1beta1IngressTLS.md b/kubernetes/docs/NetworkingV1beta1IngressTLS.md index d0d0b4f8ba..79bc2bf6a7 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressTLS.md +++ b/kubernetes/docs/NetworkingV1beta1IngressTLS.md @@ -1,5 +1,6 @@ # NetworkingV1beta1IngressTLS +IngressTLS describes the transport layer security associated with an Ingress. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/NodeApi.md b/kubernetes/docs/NodeApi.md index 1a7efb7155..599ce6c13d 100644 --- a/kubernetes/docs/NodeApi.md +++ b/kubernetes/docs/NodeApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NodeV1alpha1Api.md b/kubernetes/docs/NodeV1alpha1Api.md index e014090f5a..8eccd4a5d5 100644 --- a/kubernetes/docs/NodeV1alpha1Api.md +++ b/kubernetes/docs/NodeV1alpha1Api.md @@ -23,32 +23,36 @@ create a RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1alpha1RuntimeClass() # V1alpha1RuntimeClass | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1alpha1Api(api_client) + body = kubernetes.client.V1alpha1RuntimeClass() # V1alpha1RuntimeClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_runtime_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1alpha1Api->create_runtime_class: %s\n" % e) + try: + api_response = api_instance.create_runtime_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1alpha1Api->create_runtime_class: %s\n" % e) ``` ### Parameters @@ -73,10 +77,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_runtime_class** -> V1Status delete_collection_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_runtime_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -84,24 +96,27 @@ delete collection of RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -112,14 +127,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1alpha1Api->delete_collection_runtime_class: %s\n" % e) + try: + api_response = api_instance.delete_collection_runtime_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1alpha1Api->delete_collection_runtime_class: %s\n" % e) ``` ### Parameters @@ -127,7 +141,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -138,8 +151,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -154,6 +166,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_runtime_class** @@ -165,23 +183,27 @@ delete a RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RuntimeClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1alpha1Api(api_client) + name = 'name_example' # str | name of the RuntimeClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -189,11 +211,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_runtime_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1alpha1Api->delete_runtime_class: %s\n" % e) + try: + api_response = api_instance.delete_runtime_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1alpha1Api->delete_runtime_class: %s\n" % e) ``` ### Parameters @@ -221,6 +243,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -232,28 +261,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1alpha1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1alpha1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1alpha1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -272,6 +305,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_runtime_class** @@ -283,23 +322,27 @@ list or watch objects of kind RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -309,11 +352,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1alpha1Api->list_runtime_class: %s\n" % e) + try: + api_response = api_instance.list_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1alpha1Api->list_runtime_class: %s\n" % e) ``` ### Parameters @@ -343,6 +386,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_runtime_class** @@ -354,34 +403,38 @@ partially update the specified RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RuntimeClass -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1alpha1Api(api_client) + name = 'name_example' # str | name of the RuntimeClass +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1alpha1Api->patch_runtime_class: %s\n" % e) + try: + api_response = api_instance.patch_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1alpha1Api->patch_runtime_class: %s\n" % e) ``` ### Parameters @@ -389,7 +442,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RuntimeClass | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -408,6 +461,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_runtime_class** @@ -419,32 +478,36 @@ read the specified RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RuntimeClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1alpha1Api(api_client) + name = 'name_example' # str | name of the RuntimeClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_runtime_class(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1alpha1Api->read_runtime_class: %s\n" % e) + try: + api_response = api_instance.read_runtime_class(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1alpha1Api->read_runtime_class: %s\n" % e) ``` ### Parameters @@ -469,6 +532,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_runtime_class** @@ -480,33 +549,37 @@ replace the specified RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RuntimeClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1alpha1Api(api_client) + name = 'name_example' # str | name of the RuntimeClass body = kubernetes.client.V1alpha1RuntimeClass() # V1alpha1RuntimeClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1alpha1Api->replace_runtime_class: %s\n" % e) + try: + api_response = api_instance.replace_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1alpha1Api->replace_runtime_class: %s\n" % e) ``` ### Parameters @@ -532,5 +605,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/NodeV1beta1Api.md b/kubernetes/docs/NodeV1beta1Api.md index 5b5aa5709e..fc360b9b0c 100644 --- a/kubernetes/docs/NodeV1beta1Api.md +++ b/kubernetes/docs/NodeV1beta1Api.md @@ -23,32 +23,36 @@ create a RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1RuntimeClass() # V1beta1RuntimeClass | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1beta1Api(api_client) + body = kubernetes.client.V1beta1RuntimeClass() # V1beta1RuntimeClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_runtime_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1beta1Api->create_runtime_class: %s\n" % e) + try: + api_response = api_instance.create_runtime_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1beta1Api->create_runtime_class: %s\n" % e) ``` ### Parameters @@ -73,10 +77,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_runtime_class** -> V1Status delete_collection_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_runtime_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -84,24 +96,27 @@ delete collection of RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -112,14 +127,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1beta1Api->delete_collection_runtime_class: %s\n" % e) + try: + api_response = api_instance.delete_collection_runtime_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1beta1Api->delete_collection_runtime_class: %s\n" % e) ``` ### Parameters @@ -127,7 +141,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -138,8 +151,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -154,6 +166,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_runtime_class** @@ -165,23 +183,27 @@ delete a RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RuntimeClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1beta1Api(api_client) + name = 'name_example' # str | name of the RuntimeClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -189,11 +211,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_runtime_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1beta1Api->delete_runtime_class: %s\n" % e) + try: + api_response = api_instance.delete_runtime_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1beta1Api->delete_runtime_class: %s\n" % e) ``` ### Parameters @@ -221,6 +243,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -232,28 +261,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -272,6 +305,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_runtime_class** @@ -283,23 +322,27 @@ list or watch objects of kind RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -309,11 +352,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1beta1Api->list_runtime_class: %s\n" % e) + try: + api_response = api_instance.list_runtime_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1beta1Api->list_runtime_class: %s\n" % e) ``` ### Parameters @@ -343,6 +386,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_runtime_class** @@ -354,34 +403,38 @@ partially update the specified RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RuntimeClass -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1beta1Api(api_client) + name = 'name_example' # str | name of the RuntimeClass +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1beta1Api->patch_runtime_class: %s\n" % e) + try: + api_response = api_instance.patch_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1beta1Api->patch_runtime_class: %s\n" % e) ``` ### Parameters @@ -389,7 +442,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RuntimeClass | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -408,6 +461,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_runtime_class** @@ -419,32 +478,36 @@ read the specified RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RuntimeClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1beta1Api(api_client) + name = 'name_example' # str | name of the RuntimeClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_runtime_class(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1beta1Api->read_runtime_class: %s\n" % e) + try: + api_response = api_instance.read_runtime_class(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1beta1Api->read_runtime_class: %s\n" % e) ``` ### Parameters @@ -469,6 +532,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_runtime_class** @@ -480,33 +549,37 @@ replace the specified RuntimeClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.NodeV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RuntimeClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.NodeV1beta1Api(api_client) + name = 'name_example' # str | name of the RuntimeClass body = kubernetes.client.V1beta1RuntimeClass() # V1beta1RuntimeClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling NodeV1beta1Api->replace_runtime_class: %s\n" % e) + try: + api_response = api_instance.replace_runtime_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling NodeV1beta1Api->replace_runtime_class: %s\n" % e) ``` ### Parameters @@ -532,5 +605,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/PolicyApi.md b/kubernetes/docs/PolicyApi.md index 8c35b467cb..1c432e468c 100644 --- a/kubernetes/docs/PolicyApi.md +++ b/kubernetes/docs/PolicyApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/PolicyV1beta1AllowedCSIDriver.md b/kubernetes/docs/PolicyV1beta1AllowedCSIDriver.md index df33110d4e..5178242575 100644 --- a/kubernetes/docs/PolicyV1beta1AllowedCSIDriver.md +++ b/kubernetes/docs/PolicyV1beta1AllowedCSIDriver.md @@ -1,5 +1,6 @@ # PolicyV1beta1AllowedCSIDriver +AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1AllowedFlexVolume.md b/kubernetes/docs/PolicyV1beta1AllowedFlexVolume.md index 81cbcc1463..4777864da7 100644 --- a/kubernetes/docs/PolicyV1beta1AllowedFlexVolume.md +++ b/kubernetes/docs/PolicyV1beta1AllowedFlexVolume.md @@ -1,5 +1,6 @@ # PolicyV1beta1AllowedFlexVolume +AllowedFlexVolume represents a single Flexvolume that is allowed to be used. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1AllowedHostPath.md b/kubernetes/docs/PolicyV1beta1AllowedHostPath.md index d40d1bb39d..f3b1137094 100644 --- a/kubernetes/docs/PolicyV1beta1AllowedHostPath.md +++ b/kubernetes/docs/PolicyV1beta1AllowedHostPath.md @@ -1,5 +1,6 @@ # PolicyV1beta1AllowedHostPath +AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1Api.md b/kubernetes/docs/PolicyV1beta1Api.md index 919477ae57..b7e7326b24 100644 --- a/kubernetes/docs/PolicyV1beta1Api.md +++ b/kubernetes/docs/PolicyV1beta1Api.md @@ -34,33 +34,37 @@ create a PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1PodDisruptionBudget() # V1beta1PodDisruptionBudget | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_pod_disruption_budget(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->create_namespaced_pod_disruption_budget: %s\n" % e) + try: + api_response = api_instance.create_namespaced_pod_disruption_budget(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->create_namespaced_pod_disruption_budget: %s\n" % e) ``` ### Parameters @@ -86,6 +90,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_pod_security_policy** @@ -97,32 +109,36 @@ create a PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.PolicyV1beta1PodSecurityPolicy() # PolicyV1beta1PodSecurityPolicy | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + body = kubernetes.client.PolicyV1beta1PodSecurityPolicy() # PolicyV1beta1PodSecurityPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_pod_security_policy(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->create_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.create_pod_security_policy(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->create_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -147,10 +163,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod_disruption_budget** -> V1Status delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -158,25 +182,28 @@ delete collection of PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -187,14 +214,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->delete_collection_namespaced_pod_disruption_budget: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_pod_disruption_budget(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->delete_collection_namespaced_pod_disruption_budget: %s\n" % e) ``` ### Parameters @@ -203,7 +229,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -214,8 +239,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -230,10 +254,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_pod_security_policy** -> V1Status delete_collection_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_pod_security_policy(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -241,24 +271,27 @@ delete collection of PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -269,14 +302,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->delete_collection_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.delete_collection_pod_security_policy(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->delete_collection_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -284,7 +316,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -295,8 +326,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -311,6 +341,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod_disruption_budget** @@ -322,23 +358,27 @@ delete a PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodDisruptionBudget +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -347,11 +387,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->delete_namespaced_pod_disruption_budget: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->delete_namespaced_pod_disruption_budget: %s\n" % e) ``` ### Parameters @@ -380,6 +420,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_pod_security_policy** @@ -391,23 +438,27 @@ delete a PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodSecurityPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodSecurityPolicy pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -415,11 +466,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_pod_security_policy(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->delete_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.delete_pod_security_policy(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->delete_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -447,6 +498,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -458,28 +516,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -498,6 +560,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod_disruption_budget** @@ -509,23 +577,27 @@ list or watch objects of kind PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -536,11 +608,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_pod_disruption_budget(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->list_namespaced_pod_disruption_budget: %s\n" % e) + try: + api_response = api_instance.list_namespaced_pod_disruption_budget(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->list_namespaced_pod_disruption_budget: %s\n" % e) ``` ### Parameters @@ -571,6 +643,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_disruption_budget_for_all_namespaces** @@ -582,23 +660,27 @@ list or watch objects of kind PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -608,11 +690,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_disruption_budget_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->list_pod_disruption_budget_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_pod_disruption_budget_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->list_pod_disruption_budget_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -642,6 +724,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_security_policy** @@ -653,23 +741,27 @@ list or watch objects of kind PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -679,11 +771,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->list_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.list_pod_security_policy(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->list_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -713,6 +805,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod_disruption_budget** @@ -724,35 +822,39 @@ partially update the specified PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodDisruptionBudget +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->patch_namespaced_pod_disruption_budget: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->patch_namespaced_pod_disruption_budget: %s\n" % e) ``` ### Parameters @@ -761,7 +863,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodDisruptionBudget | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -780,6 +882,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod_disruption_budget_status** @@ -791,35 +899,39 @@ partially update status of the specified PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodDisruptionBudget +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->patch_namespaced_pod_disruption_budget_status: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->patch_namespaced_pod_disruption_budget_status: %s\n" % e) ``` ### Parameters @@ -828,7 +940,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodDisruptionBudget | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -847,6 +959,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_pod_security_policy** @@ -858,34 +976,38 @@ partially update the specified PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodSecurityPolicy -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodSecurityPolicy +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->patch_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.patch_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->patch_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -893,7 +1015,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodSecurityPolicy | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -912,6 +1034,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_disruption_budget** @@ -923,33 +1051,37 @@ read the specified PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodDisruptionBudget +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->read_namespaced_pod_disruption_budget: %s\n" % e) + try: + api_response = api_instance.read_namespaced_pod_disruption_budget(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->read_namespaced_pod_disruption_budget: %s\n" % e) ``` ### Parameters @@ -975,6 +1107,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_disruption_budget_status** @@ -986,31 +1124,35 @@ read status of the specified PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodDisruptionBudget +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_pod_disruption_budget_status(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->read_namespaced_pod_disruption_budget_status: %s\n" % e) + try: + api_response = api_instance.read_namespaced_pod_disruption_budget_status(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->read_namespaced_pod_disruption_budget_status: %s\n" % e) ``` ### Parameters @@ -1034,6 +1176,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_pod_security_policy** @@ -1045,32 +1193,36 @@ read the specified PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodSecurityPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodSecurityPolicy pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_pod_security_policy(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->read_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.read_pod_security_policy(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->read_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -1095,6 +1247,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod_disruption_budget** @@ -1106,34 +1264,38 @@ replace the specified PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodDisruptionBudget +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1PodDisruptionBudget() # V1beta1PodDisruptionBudget | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->replace_namespaced_pod_disruption_budget: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_pod_disruption_budget(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->replace_namespaced_pod_disruption_budget: %s\n" % e) ``` ### Parameters @@ -1160,6 +1322,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod_disruption_budget_status** @@ -1171,34 +1340,38 @@ replace status of the specified PodDisruptionBudget ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodDisruptionBudget +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1PodDisruptionBudget() # V1beta1PodDisruptionBudget | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->replace_namespaced_pod_disruption_budget_status: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_pod_disruption_budget_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->replace_namespaced_pod_disruption_budget_status: %s\n" % e) ``` ### Parameters @@ -1225,6 +1398,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_pod_security_policy** @@ -1236,33 +1416,37 @@ replace the specified PodSecurityPolicy ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.PolicyV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodSecurityPolicy +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.PolicyV1beta1Api(api_client) + name = 'name_example' # str | name of the PodSecurityPolicy body = kubernetes.client.PolicyV1beta1PodSecurityPolicy() # PolicyV1beta1PodSecurityPolicy | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling PolicyV1beta1Api->replace_pod_security_policy: %s\n" % e) + try: + api_response = api_instance.replace_pod_security_policy(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling PolicyV1beta1Api->replace_pod_security_policy: %s\n" % e) ``` ### Parameters @@ -1288,5 +1472,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/PolicyV1beta1FSGroupStrategyOptions.md b/kubernetes/docs/PolicyV1beta1FSGroupStrategyOptions.md index edd0e581e2..cf028f1821 100644 --- a/kubernetes/docs/PolicyV1beta1FSGroupStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1FSGroupStrategyOptions.md @@ -1,5 +1,6 @@ # PolicyV1beta1FSGroupStrategyOptions +FSGroupStrategyOptions defines the strategy type and options used to create the strategy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1HostPortRange.md b/kubernetes/docs/PolicyV1beta1HostPortRange.md index fc99bf53b6..2d0ba2ffd7 100644 --- a/kubernetes/docs/PolicyV1beta1HostPortRange.md +++ b/kubernetes/docs/PolicyV1beta1HostPortRange.md @@ -1,5 +1,6 @@ # PolicyV1beta1HostPortRange +HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1IDRange.md b/kubernetes/docs/PolicyV1beta1IDRange.md index 830e39fe39..13427edcdb 100644 --- a/kubernetes/docs/PolicyV1beta1IDRange.md +++ b/kubernetes/docs/PolicyV1beta1IDRange.md @@ -1,5 +1,6 @@ # PolicyV1beta1IDRange +IDRange provides a min/max of an allowed range of IDs. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md b/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md index 669ee4a6d1..24cab3b35c 100644 --- a/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md +++ b/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md @@ -1,5 +1,6 @@ # PolicyV1beta1PodSecurityPolicy +PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md b/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md index 11f6d9f0ca..683c533190 100644 --- a/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md +++ b/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md @@ -1,5 +1,6 @@ # PolicyV1beta1PodSecurityPolicyList +PodSecurityPolicyList is a list of PodSecurityPolicy objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md b/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md index d99f1b85f1..d379bc9e17 100644 --- a/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md +++ b/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md @@ -1,5 +1,6 @@ # PolicyV1beta1PodSecurityPolicySpec +PodSecurityPolicySpec defines the policy enforced. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1RunAsGroupStrategyOptions.md b/kubernetes/docs/PolicyV1beta1RunAsGroupStrategyOptions.md index 741614f814..82d43fd7df 100644 --- a/kubernetes/docs/PolicyV1beta1RunAsGroupStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1RunAsGroupStrategyOptions.md @@ -1,5 +1,6 @@ # PolicyV1beta1RunAsGroupStrategyOptions +RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1RunAsUserStrategyOptions.md b/kubernetes/docs/PolicyV1beta1RunAsUserStrategyOptions.md index 47dc273155..c0baa4aa8b 100644 --- a/kubernetes/docs/PolicyV1beta1RunAsUserStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1RunAsUserStrategyOptions.md @@ -1,5 +1,6 @@ # PolicyV1beta1RunAsUserStrategyOptions +RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md b/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md index f6a81c5450..01915ad3ce 100644 --- a/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md @@ -1,5 +1,6 @@ # PolicyV1beta1RuntimeClassStrategyOptions +RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md b/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md index 9c7cf5403f..3188e1af67 100644 --- a/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md @@ -1,5 +1,6 @@ # PolicyV1beta1SELinuxStrategyOptions +SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md b/kubernetes/docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md index 967fd774a3..76ef0e9ba0 100644 --- a/kubernetes/docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md @@ -1,5 +1,6 @@ # PolicyV1beta1SupplementalGroupsStrategyOptions +SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/RbacAuthorizationApi.md b/kubernetes/docs/RbacAuthorizationApi.md index bad5dfedf6..96eb736efb 100644 --- a/kubernetes/docs/RbacAuthorizationApi.md +++ b/kubernetes/docs/RbacAuthorizationApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/RbacAuthorizationV1Api.md b/kubernetes/docs/RbacAuthorizationV1Api.md index cf5ea0213b..be081058fd 100644 --- a/kubernetes/docs/RbacAuthorizationV1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1Api.md @@ -46,32 +46,36 @@ create a ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1ClusterRole() # V1ClusterRole | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + body = kubernetes.client.V1ClusterRole() # V1ClusterRole | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_cluster_role(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->create_cluster_role: %s\n" % e) + try: + api_response = api_instance.create_cluster_role(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->create_cluster_role: %s\n" % e) ``` ### Parameters @@ -96,6 +100,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_cluster_role_binding** @@ -107,32 +119,36 @@ create a ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1ClusterRoleBinding() # V1ClusterRoleBinding | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + body = kubernetes.client.V1ClusterRoleBinding() # V1ClusterRoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_cluster_role_binding(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->create_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.create_cluster_role_binding(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->create_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -157,6 +173,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_role** @@ -168,33 +192,37 @@ create a Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Role() # V1Role | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->create_namespaced_role: %s\n" % e) + try: + api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->create_namespaced_role: %s\n" % e) ``` ### Parameters @@ -220,6 +248,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_role_binding** @@ -231,33 +267,37 @@ create a RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1RoleBinding() # V1RoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->create_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->create_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -283,6 +323,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role** @@ -294,23 +342,27 @@ delete a ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -318,11 +370,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->delete_cluster_role: %s\n" % e) + try: + api_response = api_instance.delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->delete_cluster_role: %s\n" % e) ``` ### Parameters @@ -350,6 +402,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role_binding** @@ -361,23 +420,27 @@ delete a ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -385,11 +448,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->delete_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->delete_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -417,10 +480,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role** -> V1Status delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_cluster_role(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -428,24 +498,27 @@ delete collection of ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -456,14 +529,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->delete_collection_cluster_role: %s\n" % e) + try: + api_response = api_instance.delete_collection_cluster_role(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->delete_collection_cluster_role: %s\n" % e) ``` ### Parameters @@ -471,7 +543,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -482,8 +553,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -498,10 +568,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role_binding** -> V1Status delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -509,24 +585,27 @@ delete collection of ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -537,14 +616,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->delete_collection_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->delete_collection_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -552,7 +630,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -563,8 +640,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -579,10 +655,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role** -> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -590,25 +672,28 @@ delete collection of Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -619,14 +704,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->delete_collection_namespaced_role: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->delete_collection_namespaced_role: %s\n" % e) ``` ### Parameters @@ -635,7 +719,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -646,8 +729,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -662,10 +744,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role_binding** -> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -673,25 +761,28 @@ delete collection of RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -702,14 +793,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->delete_collection_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->delete_collection_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -718,7 +808,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -729,8 +818,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -745,6 +833,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role** @@ -756,23 +850,27 @@ delete a Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -781,11 +879,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->delete_namespaced_role: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->delete_namespaced_role: %s\n" % e) ``` ### Parameters @@ -814,6 +912,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role_binding** @@ -825,23 +930,27 @@ delete a RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -850,11 +959,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->delete_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->delete_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -883,6 +992,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -894,28 +1010,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -934,6 +1054,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role** @@ -945,23 +1071,27 @@ list or watch objects of kind ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -971,11 +1101,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->list_cluster_role: %s\n" % e) + try: + api_response = api_instance.list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->list_cluster_role: %s\n" % e) ``` ### Parameters @@ -1005,6 +1135,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role_binding** @@ -1016,23 +1152,27 @@ list or watch objects of kind ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1042,11 +1182,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->list_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->list_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1076,6 +1216,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role** @@ -1087,23 +1233,27 @@ list or watch objects of kind Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1114,11 +1264,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->list_namespaced_role: %s\n" % e) + try: + api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->list_namespaced_role: %s\n" % e) ``` ### Parameters @@ -1149,6 +1299,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role_binding** @@ -1160,23 +1316,27 @@ list or watch objects of kind RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1187,11 +1347,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->list_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->list_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -1222,6 +1382,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_binding_for_all_namespaces** @@ -1233,23 +1399,27 @@ list or watch objects of kind RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1259,11 +1429,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->list_role_binding_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->list_role_binding_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1293,6 +1463,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_for_all_namespaces** @@ -1304,23 +1480,27 @@ list or watch objects of kind Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1330,11 +1510,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->list_role_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->list_role_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1364,6 +1544,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_cluster_role** @@ -1375,34 +1561,38 @@ partially update the specified ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the ClusterRole +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->patch_cluster_role: %s\n" % e) + try: + api_response = api_instance.patch_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->patch_cluster_role: %s\n" % e) ``` ### Parameters @@ -1410,7 +1600,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1429,6 +1619,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_cluster_role_binding** @@ -1440,34 +1636,38 @@ partially update the specified ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->patch_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->patch_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1475,7 +1675,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1494,6 +1694,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_role** @@ -1505,35 +1711,39 @@ partially update the specified Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->patch_namespaced_role: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->patch_namespaced_role: %s\n" % e) ``` ### Parameters @@ -1542,7 +1752,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1561,6 +1771,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_role_binding** @@ -1572,35 +1788,39 @@ partially update the specified RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->patch_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->patch_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -1609,7 +1829,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1628,6 +1848,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_cluster_role** @@ -1639,30 +1865,34 @@ read the specified ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_cluster_role(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->read_cluster_role: %s\n" % e) + try: + api_response = api_instance.read_cluster_role(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->read_cluster_role: %s\n" % e) ``` ### Parameters @@ -1685,6 +1915,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_cluster_role_binding** @@ -1696,30 +1932,34 @@ read the specified ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->read_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->read_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1742,6 +1982,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_role** @@ -1753,31 +1999,35 @@ read the specified Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->read_namespaced_role: %s\n" % e) + try: + api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->read_namespaced_role: %s\n" % e) ``` ### Parameters @@ -1801,6 +2051,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_role_binding** @@ -1812,31 +2068,35 @@ read the specified RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->read_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->read_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -1860,6 +2120,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_cluster_role** @@ -1871,33 +2137,37 @@ replace the specified ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the ClusterRole body = kubernetes.client.V1ClusterRole() # V1ClusterRole | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->replace_cluster_role: %s\n" % e) + try: + api_response = api_instance.replace_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->replace_cluster_role: %s\n" % e) ``` ### Parameters @@ -1923,6 +2193,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_cluster_role_binding** @@ -1934,33 +2211,37 @@ replace the specified ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding body = kubernetes.client.V1ClusterRoleBinding() # V1ClusterRoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->replace_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->replace_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1986,6 +2267,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_role** @@ -1997,34 +2285,38 @@ replace the specified Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Role() # V1Role | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->replace_namespaced_role: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->replace_namespaced_role: %s\n" % e) ``` ### Parameters @@ -2051,6 +2343,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_role_binding** @@ -2062,34 +2361,38 @@ replace the specified RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1RoleBinding() # V1RoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1Api->replace_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1Api->replace_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -2116,5 +2419,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md index b9cc08bac7..48b63b752a 100644 --- a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md @@ -46,32 +46,36 @@ create a ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1alpha1ClusterRole() # V1alpha1ClusterRole | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + body = kubernetes.client.V1alpha1ClusterRole() # V1alpha1ClusterRole | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_cluster_role(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->create_cluster_role: %s\n" % e) + try: + api_response = api_instance.create_cluster_role(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->create_cluster_role: %s\n" % e) ``` ### Parameters @@ -96,6 +100,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_cluster_role_binding** @@ -107,32 +119,36 @@ create a ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1alpha1ClusterRoleBinding() # V1alpha1ClusterRoleBinding | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + body = kubernetes.client.V1alpha1ClusterRoleBinding() # V1alpha1ClusterRoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_cluster_role_binding(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->create_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.create_cluster_role_binding(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->create_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -157,6 +173,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_role** @@ -168,33 +192,37 @@ create a Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1alpha1Role() # V1alpha1Role | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->create_namespaced_role: %s\n" % e) + try: + api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->create_namespaced_role: %s\n" % e) ``` ### Parameters @@ -220,6 +248,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_role_binding** @@ -231,33 +267,37 @@ create a RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1alpha1RoleBinding() # V1alpha1RoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->create_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->create_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -283,6 +323,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role** @@ -294,23 +342,27 @@ delete a ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -318,11 +370,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role: %s\n" % e) + try: + api_response = api_instance.delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role: %s\n" % e) ``` ### Parameters @@ -350,6 +402,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role_binding** @@ -361,23 +420,27 @@ delete a ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -385,11 +448,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -417,10 +480,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role** -> V1Status delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_cluster_role(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -428,24 +498,27 @@ delete collection of ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -456,14 +529,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_cluster_role: %s\n" % e) + try: + api_response = api_instance.delete_collection_cluster_role(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_cluster_role: %s\n" % e) ``` ### Parameters @@ -471,7 +543,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -482,8 +553,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -498,10 +568,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role_binding** -> V1Status delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -509,24 +585,27 @@ delete collection of ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -537,14 +616,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -552,7 +630,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -563,8 +640,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -579,10 +655,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role** -> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -590,25 +672,28 @@ delete collection of Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -619,14 +704,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_namespaced_role: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_namespaced_role: %s\n" % e) ``` ### Parameters @@ -635,7 +719,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -646,8 +729,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -662,10 +744,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role_binding** -> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -673,25 +761,28 @@ delete collection of RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -702,14 +793,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_collection_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -718,7 +808,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -729,8 +818,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -745,6 +833,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role** @@ -756,23 +850,27 @@ delete a Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -781,11 +879,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role: %s\n" % e) ``` ### Parameters @@ -814,6 +912,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role_binding** @@ -825,23 +930,27 @@ delete a RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -850,11 +959,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->delete_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -883,6 +992,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -894,28 +1010,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -934,6 +1054,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role** @@ -945,23 +1071,27 @@ list or watch objects of kind ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -971,11 +1101,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_cluster_role: %s\n" % e) + try: + api_response = api_instance.list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_cluster_role: %s\n" % e) ``` ### Parameters @@ -1005,6 +1135,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role_binding** @@ -1016,23 +1152,27 @@ list or watch objects of kind ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1042,11 +1182,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1076,6 +1216,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role** @@ -1087,23 +1233,27 @@ list or watch objects of kind Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1114,11 +1264,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_namespaced_role: %s\n" % e) + try: + api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_namespaced_role: %s\n" % e) ``` ### Parameters @@ -1149,6 +1299,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role_binding** @@ -1160,23 +1316,27 @@ list or watch objects of kind RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1187,11 +1347,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -1222,6 +1382,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_binding_for_all_namespaces** @@ -1233,23 +1399,27 @@ list or watch objects of kind RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1259,11 +1429,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_role_binding_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_role_binding_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1293,6 +1463,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_for_all_namespaces** @@ -1304,23 +1480,27 @@ list or watch objects of kind Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1330,11 +1510,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->list_role_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->list_role_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1364,6 +1544,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_cluster_role** @@ -1375,34 +1561,38 @@ partially update the specified ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the ClusterRole +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->patch_cluster_role: %s\n" % e) + try: + api_response = api_instance.patch_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->patch_cluster_role: %s\n" % e) ``` ### Parameters @@ -1410,7 +1600,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1429,6 +1619,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_cluster_role_binding** @@ -1440,34 +1636,38 @@ partially update the specified ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->patch_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->patch_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1475,7 +1675,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1494,6 +1694,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_role** @@ -1505,35 +1711,39 @@ partially update the specified Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->patch_namespaced_role: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->patch_namespaced_role: %s\n" % e) ``` ### Parameters @@ -1542,7 +1752,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1561,6 +1771,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_role_binding** @@ -1572,35 +1788,39 @@ partially update the specified RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->patch_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->patch_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -1609,7 +1829,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1628,6 +1848,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_cluster_role** @@ -1639,30 +1865,34 @@ read the specified ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_cluster_role(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->read_cluster_role: %s\n" % e) + try: + api_response = api_instance.read_cluster_role(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->read_cluster_role: %s\n" % e) ``` ### Parameters @@ -1685,6 +1915,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_cluster_role_binding** @@ -1696,30 +1932,34 @@ read the specified ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->read_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->read_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1742,6 +1982,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_role** @@ -1753,31 +1999,35 @@ read the specified Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->read_namespaced_role: %s\n" % e) + try: + api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->read_namespaced_role: %s\n" % e) ``` ### Parameters @@ -1801,6 +2051,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_role_binding** @@ -1812,31 +2068,35 @@ read the specified RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->read_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->read_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -1860,6 +2120,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_cluster_role** @@ -1871,33 +2137,37 @@ replace the specified ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the ClusterRole body = kubernetes.client.V1alpha1ClusterRole() # V1alpha1ClusterRole | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->replace_cluster_role: %s\n" % e) + try: + api_response = api_instance.replace_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->replace_cluster_role: %s\n" % e) ``` ### Parameters @@ -1923,6 +2193,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_cluster_role_binding** @@ -1934,33 +2211,37 @@ replace the specified ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding body = kubernetes.client.V1alpha1ClusterRoleBinding() # V1alpha1ClusterRoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->replace_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->replace_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1986,6 +2267,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_role** @@ -1997,34 +2285,38 @@ replace the specified Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1alpha1Role() # V1alpha1Role | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->replace_namespaced_role: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->replace_namespaced_role: %s\n" % e) ``` ### Parameters @@ -2051,6 +2343,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_role_binding** @@ -2062,34 +2361,38 @@ replace the specified RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1alpha1RoleBinding() # V1alpha1RoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1alpha1Api->replace_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1alpha1Api->replace_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -2116,5 +2419,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/RbacAuthorizationV1beta1Api.md b/kubernetes/docs/RbacAuthorizationV1beta1Api.md index 00984fee6f..832731f3c7 100644 --- a/kubernetes/docs/RbacAuthorizationV1beta1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1beta1Api.md @@ -46,32 +46,36 @@ create a ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1ClusterRole() # V1beta1ClusterRole | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + body = kubernetes.client.V1beta1ClusterRole() # V1beta1ClusterRole | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_cluster_role(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->create_cluster_role: %s\n" % e) + try: + api_response = api_instance.create_cluster_role(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->create_cluster_role: %s\n" % e) ``` ### Parameters @@ -96,6 +100,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_cluster_role_binding** @@ -107,32 +119,36 @@ create a ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1ClusterRoleBinding() # V1beta1ClusterRoleBinding | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + body = kubernetes.client.V1beta1ClusterRoleBinding() # V1beta1ClusterRoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_cluster_role_binding(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->create_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.create_cluster_role_binding(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->create_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -157,6 +173,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_role** @@ -168,33 +192,37 @@ create a Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1Role() # V1beta1Role | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->create_namespaced_role: %s\n" % e) + try: + api_response = api_instance.create_namespaced_role(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->create_namespaced_role: %s\n" % e) ``` ### Parameters @@ -220,6 +248,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_role_binding** @@ -231,33 +267,37 @@ create a RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1RoleBinding() # V1beta1RoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->create_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.create_namespaced_role_binding(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->create_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -283,6 +323,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role** @@ -294,23 +342,27 @@ delete a ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -318,11 +370,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_cluster_role: %s\n" % e) + try: + api_response = api_instance.delete_cluster_role(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_cluster_role: %s\n" % e) ``` ### Parameters @@ -350,6 +402,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_cluster_role_binding** @@ -361,23 +420,27 @@ delete a ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -385,11 +448,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_cluster_role_binding(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -417,10 +480,17 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role** -> V1Status delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_cluster_role(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -428,24 +498,27 @@ delete collection of ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -456,14 +529,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_cluster_role: %s\n" % e) + try: + api_response = api_instance.delete_collection_cluster_role(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_cluster_role: %s\n" % e) ``` ### Parameters @@ -471,7 +543,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -482,8 +553,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -498,10 +568,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_cluster_role_binding** -> V1Status delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -509,24 +585,27 @@ delete collection of ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -537,14 +616,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_collection_cluster_role_binding(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -552,7 +630,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -563,8 +640,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -579,10 +655,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role** -> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -590,25 +672,28 @@ delete collection of Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -619,14 +704,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_namespaced_role: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_role(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_namespaced_role: %s\n" % e) ``` ### Parameters @@ -635,7 +719,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -646,8 +729,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -662,10 +744,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_role_binding** -> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -673,25 +761,28 @@ delete collection of RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -702,14 +793,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_role_binding(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_collection_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -718,7 +808,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -729,8 +818,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -745,6 +833,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role** @@ -756,23 +850,27 @@ delete a Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -781,11 +879,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_namespaced_role: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_role(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_namespaced_role: %s\n" % e) ``` ### Parameters @@ -814,6 +912,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_role_binding** @@ -825,23 +930,27 @@ delete a RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -850,11 +959,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->delete_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_role_binding(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->delete_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -883,6 +992,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -894,28 +1010,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -934,6 +1054,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role** @@ -945,23 +1071,27 @@ list or watch objects of kind ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -971,11 +1101,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_cluster_role: %s\n" % e) + try: + api_response = api_instance.list_cluster_role(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->list_cluster_role: %s\n" % e) ``` ### Parameters @@ -1005,6 +1135,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_cluster_role_binding** @@ -1016,23 +1152,27 @@ list or watch objects of kind ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1042,11 +1182,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.list_cluster_role_binding(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->list_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1076,6 +1216,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role** @@ -1087,23 +1233,27 @@ list or watch objects of kind Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1114,11 +1264,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_namespaced_role: %s\n" % e) + try: + api_response = api_instance.list_namespaced_role(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->list_namespaced_role: %s\n" % e) ``` ### Parameters @@ -1149,6 +1299,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_role_binding** @@ -1160,23 +1316,27 @@ list or watch objects of kind RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -1187,11 +1347,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.list_namespaced_role_binding(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->list_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -1222,6 +1382,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_binding_for_all_namespaces** @@ -1233,23 +1399,27 @@ list or watch objects of kind RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1259,11 +1429,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_role_binding_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_role_binding_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->list_role_binding_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1293,6 +1463,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_role_for_all_namespaces** @@ -1304,23 +1480,27 @@ list or watch objects of kind Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1330,11 +1510,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->list_role_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_role_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->list_role_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -1364,6 +1544,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_cluster_role** @@ -1375,34 +1561,38 @@ partially update the specified ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the ClusterRole +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->patch_cluster_role: %s\n" % e) + try: + api_response = api_instance.patch_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->patch_cluster_role: %s\n" % e) ``` ### Parameters @@ -1410,7 +1600,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1429,6 +1619,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_cluster_role_binding** @@ -1440,34 +1636,38 @@ partially update the specified ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->patch_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.patch_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->patch_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1475,7 +1675,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1494,6 +1694,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_role** @@ -1505,35 +1711,39 @@ partially update the specified Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->patch_namespaced_role: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->patch_namespaced_role: %s\n" % e) ``` ### Parameters @@ -1542,7 +1752,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1561,6 +1771,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_role_binding** @@ -1572,35 +1788,39 @@ partially update the specified RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->patch_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->patch_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -1609,7 +1829,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1628,6 +1848,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_cluster_role** @@ -1639,30 +1865,34 @@ read the specified ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the ClusterRole pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_cluster_role(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->read_cluster_role: %s\n" % e) + try: + api_response = api_instance.read_cluster_role(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->read_cluster_role: %s\n" % e) ``` ### Parameters @@ -1685,6 +1915,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_cluster_role_binding** @@ -1696,30 +1932,34 @@ read the specified ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->read_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.read_cluster_role_binding(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->read_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1742,6 +1982,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_role** @@ -1753,31 +1999,35 @@ read the specified Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->read_namespaced_role: %s\n" % e) + try: + api_response = api_instance.read_namespaced_role(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->read_namespaced_role: %s\n" % e) ``` ### Parameters @@ -1801,6 +2051,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_role_binding** @@ -1812,31 +2068,35 @@ read the specified RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->read_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.read_namespaced_role_binding(name, namespace, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->read_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -1860,6 +2120,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_cluster_role** @@ -1871,33 +2137,37 @@ replace the specified ClusterRole ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRole +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the ClusterRole body = kubernetes.client.V1beta1ClusterRole() # V1beta1ClusterRole | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->replace_cluster_role: %s\n" % e) + try: + api_response = api_instance.replace_cluster_role(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->replace_cluster_role: %s\n" % e) ``` ### Parameters @@ -1923,6 +2193,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_cluster_role_binding** @@ -1934,33 +2211,37 @@ replace the specified ClusterRoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the ClusterRoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the ClusterRoleBinding body = kubernetes.client.V1beta1ClusterRoleBinding() # V1beta1ClusterRoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->replace_cluster_role_binding: %s\n" % e) + try: + api_response = api_instance.replace_cluster_role_binding(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->replace_cluster_role_binding: %s\n" % e) ``` ### Parameters @@ -1986,6 +2267,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_role** @@ -1997,34 +2285,38 @@ replace the specified Role ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the Role +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1Role() # V1beta1Role | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->replace_namespaced_role: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_role(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->replace_namespaced_role: %s\n" % e) ``` ### Parameters @@ -2051,6 +2343,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_role_binding** @@ -2062,34 +2361,38 @@ replace the specified RoleBinding ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the RoleBinding +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.RbacAuthorizationV1beta1Api(api_client) + name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1RoleBinding() # V1beta1RoleBinding | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling RbacAuthorizationV1beta1Api->replace_namespaced_role_binding: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_role_binding(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling RbacAuthorizationV1beta1Api->replace_namespaced_role_binding: %s\n" % e) ``` ### Parameters @@ -2116,5 +2419,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SchedulingApi.md b/kubernetes/docs/SchedulingApi.md index f9b2153c14..48a498650e 100644 --- a/kubernetes/docs/SchedulingApi.md +++ b/kubernetes/docs/SchedulingApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SchedulingV1Api.md b/kubernetes/docs/SchedulingV1Api.md index fc44e3628d..925d73dbf4 100644 --- a/kubernetes/docs/SchedulingV1Api.md +++ b/kubernetes/docs/SchedulingV1Api.md @@ -23,32 +23,36 @@ create a PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1PriorityClass() # V1PriorityClass | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1Api(api_client) + body = kubernetes.client.V1PriorityClass() # V1PriorityClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_priority_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1Api->create_priority_class: %s\n" % e) + try: + api_response = api_instance.create_priority_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1Api->create_priority_class: %s\n" % e) ``` ### Parameters @@ -73,10 +77,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_priority_class** -> V1Status delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_priority_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -84,24 +96,27 @@ delete collection of PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -112,14 +127,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1Api->delete_collection_priority_class: %s\n" % e) + try: + api_response = api_instance.delete_collection_priority_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1Api->delete_collection_priority_class: %s\n" % e) ``` ### Parameters @@ -127,7 +141,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -138,8 +151,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -154,6 +166,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_priority_class** @@ -165,23 +183,27 @@ delete a PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1Api(api_client) + name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -189,11 +211,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1Api->delete_priority_class: %s\n" % e) + try: + api_response = api_instance.delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1Api->delete_priority_class: %s\n" % e) ``` ### Parameters @@ -221,6 +243,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -232,28 +261,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -272,6 +305,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_priority_class** @@ -283,23 +322,27 @@ list or watch objects of kind PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -309,11 +352,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1Api->list_priority_class: %s\n" % e) + try: + api_response = api_instance.list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1Api->list_priority_class: %s\n" % e) ``` ### Parameters @@ -343,6 +386,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_priority_class** @@ -354,34 +403,38 @@ partially update the specified PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1Api(api_client) + name = 'name_example' # str | name of the PriorityClass +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1Api->patch_priority_class: %s\n" % e) + try: + api_response = api_instance.patch_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1Api->patch_priority_class: %s\n" % e) ``` ### Parameters @@ -389,7 +442,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PriorityClass | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -408,6 +461,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_priority_class** @@ -419,32 +478,36 @@ read the specified PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1Api(api_client) + name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_priority_class(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1Api->read_priority_class: %s\n" % e) + try: + api_response = api_instance.read_priority_class(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1Api->read_priority_class: %s\n" % e) ``` ### Parameters @@ -469,6 +532,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_priority_class** @@ -480,33 +549,37 @@ replace the specified PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1Api(api_client) + name = 'name_example' # str | name of the PriorityClass body = kubernetes.client.V1PriorityClass() # V1PriorityClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1Api->replace_priority_class: %s\n" % e) + try: + api_response = api_instance.replace_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1Api->replace_priority_class: %s\n" % e) ``` ### Parameters @@ -532,5 +605,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SchedulingV1alpha1Api.md b/kubernetes/docs/SchedulingV1alpha1Api.md index 997ebd8aca..64c0574cba 100644 --- a/kubernetes/docs/SchedulingV1alpha1Api.md +++ b/kubernetes/docs/SchedulingV1alpha1Api.md @@ -23,32 +23,36 @@ create a PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1alpha1PriorityClass() # V1alpha1PriorityClass | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha1Api(api_client) + body = kubernetes.client.V1alpha1PriorityClass() # V1alpha1PriorityClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_priority_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1alpha1Api->create_priority_class: %s\n" % e) + try: + api_response = api_instance.create_priority_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1alpha1Api->create_priority_class: %s\n" % e) ``` ### Parameters @@ -73,10 +77,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_priority_class** -> V1Status delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_priority_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -84,24 +96,27 @@ delete collection of PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -112,14 +127,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1alpha1Api->delete_collection_priority_class: %s\n" % e) + try: + api_response = api_instance.delete_collection_priority_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1alpha1Api->delete_collection_priority_class: %s\n" % e) ``` ### Parameters @@ -127,7 +141,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -138,8 +151,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -154,6 +166,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_priority_class** @@ -165,23 +183,27 @@ delete a PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha1Api(api_client) + name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -189,11 +211,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1alpha1Api->delete_priority_class: %s\n" % e) + try: + api_response = api_instance.delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1alpha1Api->delete_priority_class: %s\n" % e) ``` ### Parameters @@ -221,6 +243,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -232,28 +261,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1alpha1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1alpha1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -272,6 +305,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_priority_class** @@ -283,23 +322,27 @@ list or watch objects of kind PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -309,11 +352,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1alpha1Api->list_priority_class: %s\n" % e) + try: + api_response = api_instance.list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1alpha1Api->list_priority_class: %s\n" % e) ``` ### Parameters @@ -343,6 +386,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_priority_class** @@ -354,34 +403,38 @@ partially update the specified PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha1Api(api_client) + name = 'name_example' # str | name of the PriorityClass +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1alpha1Api->patch_priority_class: %s\n" % e) + try: + api_response = api_instance.patch_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1alpha1Api->patch_priority_class: %s\n" % e) ``` ### Parameters @@ -389,7 +442,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PriorityClass | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -408,6 +461,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_priority_class** @@ -419,32 +478,36 @@ read the specified PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha1Api(api_client) + name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_priority_class(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1alpha1Api->read_priority_class: %s\n" % e) + try: + api_response = api_instance.read_priority_class(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1alpha1Api->read_priority_class: %s\n" % e) ``` ### Parameters @@ -469,6 +532,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_priority_class** @@ -480,33 +549,37 @@ replace the specified PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1alpha1Api(api_client) + name = 'name_example' # str | name of the PriorityClass body = kubernetes.client.V1alpha1PriorityClass() # V1alpha1PriorityClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1alpha1Api->replace_priority_class: %s\n" % e) + try: + api_response = api_instance.replace_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1alpha1Api->replace_priority_class: %s\n" % e) ``` ### Parameters @@ -532,5 +605,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SchedulingV1beta1Api.md b/kubernetes/docs/SchedulingV1beta1Api.md index 7c858759cb..d919499c0e 100644 --- a/kubernetes/docs/SchedulingV1beta1Api.md +++ b/kubernetes/docs/SchedulingV1beta1Api.md @@ -23,32 +23,36 @@ create a PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1PriorityClass() # V1beta1PriorityClass | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) + body = kubernetes.client.V1beta1PriorityClass() # V1beta1PriorityClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_priority_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1beta1Api->create_priority_class: %s\n" % e) + try: + api_response = api_instance.create_priority_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1beta1Api->create_priority_class: %s\n" % e) ``` ### Parameters @@ -73,10 +77,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_priority_class** -> V1Status delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_priority_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -84,24 +96,27 @@ delete collection of PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -112,14 +127,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1beta1Api->delete_collection_priority_class: %s\n" % e) + try: + api_response = api_instance.delete_collection_priority_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1beta1Api->delete_collection_priority_class: %s\n" % e) ``` ### Parameters @@ -127,7 +141,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -138,8 +151,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -154,6 +166,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_priority_class** @@ -165,23 +183,27 @@ delete a PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) + name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -189,11 +211,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1beta1Api->delete_priority_class: %s\n" % e) + try: + api_response = api_instance.delete_priority_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1beta1Api->delete_priority_class: %s\n" % e) ``` ### Parameters @@ -221,6 +243,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -232,28 +261,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -272,6 +305,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_priority_class** @@ -283,23 +322,27 @@ list or watch objects of kind PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -309,11 +352,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1beta1Api->list_priority_class: %s\n" % e) + try: + api_response = api_instance.list_priority_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1beta1Api->list_priority_class: %s\n" % e) ``` ### Parameters @@ -343,6 +386,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_priority_class** @@ -354,34 +403,38 @@ partially update the specified PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) + name = 'name_example' # str | name of the PriorityClass +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1beta1Api->patch_priority_class: %s\n" % e) + try: + api_response = api_instance.patch_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1beta1Api->patch_priority_class: %s\n" % e) ``` ### Parameters @@ -389,7 +442,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PriorityClass | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -408,6 +461,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_priority_class** @@ -419,32 +478,36 @@ read the specified PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) + name = 'name_example' # str | name of the PriorityClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_priority_class(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1beta1Api->read_priority_class: %s\n" % e) + try: + api_response = api_instance.read_priority_class(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1beta1Api->read_priority_class: %s\n" % e) ``` ### Parameters @@ -469,6 +532,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_priority_class** @@ -480,33 +549,37 @@ replace the specified PriorityClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SchedulingV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PriorityClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SchedulingV1beta1Api(api_client) + name = 'name_example' # str | name of the PriorityClass body = kubernetes.client.V1beta1PriorityClass() # V1beta1PriorityClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling SchedulingV1beta1Api->replace_priority_class: %s\n" % e) + try: + api_response = api_instance.replace_priority_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling SchedulingV1beta1Api->replace_priority_class: %s\n" % e) ``` ### Parameters @@ -532,5 +605,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SettingsApi.md b/kubernetes/docs/SettingsApi.md index 408fe5f651..6364937efd 100644 --- a/kubernetes/docs/SettingsApi.md +++ b/kubernetes/docs/SettingsApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/SettingsV1alpha1Api.md b/kubernetes/docs/SettingsV1alpha1Api.md index abdd778a38..4182562b45 100644 --- a/kubernetes/docs/SettingsV1alpha1Api.md +++ b/kubernetes/docs/SettingsV1alpha1Api.md @@ -24,33 +24,37 @@ create a PodPreset ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1alpha1PodPreset() # V1alpha1PodPreset | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_namespaced_pod_preset(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->create_namespaced_pod_preset: %s\n" % e) + try: + api_response = api_instance.create_namespaced_pod_preset(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->create_namespaced_pod_preset: %s\n" % e) ``` ### Parameters @@ -76,10 +80,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_namespaced_pod_preset** -> V1Status delete_collection_namespaced_pod_preset(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_namespaced_pod_preset(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -87,25 +99,28 @@ delete collection of PodPreset ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -116,14 +131,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_namespaced_pod_preset(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->delete_collection_namespaced_pod_preset: %s\n" % e) + try: + api_response = api_instance.delete_collection_namespaced_pod_preset(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->delete_collection_namespaced_pod_preset: %s\n" % e) ``` ### Parameters @@ -132,7 +146,6 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **str**| object name and auth scope, such as for teams and projects | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -143,8 +156,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -159,6 +171,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_namespaced_pod_preset** @@ -170,23 +188,27 @@ delete a PodPreset ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodPreset +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsV1alpha1Api(api_client) + name = 'name_example' # str | name of the PodPreset namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) @@ -195,11 +217,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_namespaced_pod_preset(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->delete_namespaced_pod_preset: %s\n" % e) + try: + api_response = api_instance.delete_namespaced_pod_preset(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->delete_namespaced_pod_preset: %s\n" % e) ``` ### Parameters @@ -228,6 +250,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -239,28 +268,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsV1alpha1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -279,6 +312,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_pod_preset** @@ -290,23 +329,27 @@ list or watch objects of kind PodPreset ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) -namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsV1alpha1Api(api_client) + namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) @@ -317,11 +360,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_namespaced_pod_preset(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->list_namespaced_pod_preset: %s\n" % e) + try: + api_response = api_instance.list_namespaced_pod_preset(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->list_namespaced_pod_preset: %s\n" % e) ``` ### Parameters @@ -352,6 +395,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_pod_preset_for_all_namespaces** @@ -363,23 +412,27 @@ list or watch objects of kind PodPreset ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsV1alpha1Api(api_client) + allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -389,11 +442,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_pod_preset_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->list_pod_preset_for_all_namespaces: %s\n" % e) + try: + api_response = api_instance.list_pod_preset_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->list_pod_preset_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -423,6 +476,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_pod_preset** @@ -434,35 +493,39 @@ partially update the specified PodPreset ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodPreset +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsV1alpha1Api(api_client) + name = 'name_example' # str | name of the PodPreset namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_namespaced_pod_preset(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->patch_namespaced_pod_preset: %s\n" % e) + try: + api_response = api_instance.patch_namespaced_pod_preset(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->patch_namespaced_pod_preset: %s\n" % e) ``` ### Parameters @@ -471,7 +534,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodPreset | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -490,6 +553,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_pod_preset** @@ -501,33 +570,37 @@ read the specified PodPreset ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodPreset +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsV1alpha1Api(api_client) + name = 'name_example' # str | name of the PodPreset namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_namespaced_pod_preset(name, namespace, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->read_namespaced_pod_preset: %s\n" % e) + try: + api_response = api_instance.read_namespaced_pod_preset(name, namespace, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->read_namespaced_pod_preset: %s\n" % e) ``` ### Parameters @@ -553,6 +626,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_pod_preset** @@ -564,34 +643,38 @@ replace the specified PodPreset ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.SettingsV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the PodPreset +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.SettingsV1alpha1Api(api_client) + name = 'name_example' # str | name of the PodPreset namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1alpha1PodPreset() # V1alpha1PodPreset | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_namespaced_pod_preset(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling SettingsV1alpha1Api->replace_namespaced_pod_preset: %s\n" % e) + try: + api_response = api_instance.replace_namespaced_pod_preset(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling SettingsV1alpha1Api->replace_namespaced_pod_preset: %s\n" % e) ``` ### Parameters @@ -618,5 +701,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/StorageApi.md b/kubernetes/docs/StorageApi.md index 1afab2f784..a9941c939d 100644 --- a/kubernetes/docs/StorageApi.md +++ b/kubernetes/docs/StorageApi.md @@ -16,28 +16,32 @@ get information of a group ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_group() - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageApi->get_api_group: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageApi(api_client) + + try: + api_response = api_instance.get_api_group() + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageApi->get_api_group: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index 31024db1d2..ffd9ba5f71 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -33,32 +33,36 @@ create a StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1StorageClass() # V1StorageClass | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + body = kubernetes.client.V1StorageClass() # V1StorageClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_storage_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->create_storage_class: %s\n" % e) + try: + api_response = api_instance.create_storage_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->create_storage_class: %s\n" % e) ``` ### Parameters @@ -83,6 +87,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_volume_attachment** @@ -94,32 +106,36 @@ create a VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1VolumeAttachment() # V1VolumeAttachment | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + body = kubernetes.client.V1VolumeAttachment() # V1VolumeAttachment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_volume_attachment(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->create_volume_attachment: %s\n" % e) + try: + api_response = api_instance.create_volume_attachment(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->create_volume_attachment: %s\n" % e) ``` ### Parameters @@ -144,10 +160,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_storage_class** -> V1Status delete_collection_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_storage_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -155,24 +179,27 @@ delete collection of StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -183,14 +210,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->delete_collection_storage_class: %s\n" % e) + try: + api_response = api_instance.delete_collection_storage_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->delete_collection_storage_class: %s\n" % e) ``` ### Parameters @@ -198,7 +224,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -209,8 +234,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -225,10 +249,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_volume_attachment** -> V1Status delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_volume_attachment(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -236,24 +266,27 @@ delete collection of VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -264,14 +297,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->delete_collection_volume_attachment: %s\n" % e) + try: + api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->delete_collection_volume_attachment: %s\n" % e) ``` ### Parameters @@ -279,7 +311,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -290,8 +321,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -306,6 +336,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_storage_class** @@ -317,23 +353,27 @@ delete a StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StorageClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the StorageClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -341,11 +381,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_storage_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->delete_storage_class: %s\n" % e) + try: + api_response = api_instance.delete_storage_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->delete_storage_class: %s\n" % e) ``` ### Parameters @@ -373,6 +413,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_volume_attachment** @@ -384,23 +431,27 @@ delete a VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -408,11 +459,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->delete_volume_attachment: %s\n" % e) + try: + api_response = api_instance.delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->delete_volume_attachment: %s\n" % e) ``` ### Parameters @@ -440,6 +491,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -451,28 +509,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -491,6 +553,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_storage_class** @@ -502,23 +570,27 @@ list or watch objects of kind StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -528,11 +600,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->list_storage_class: %s\n" % e) + try: + api_response = api_instance.list_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->list_storage_class: %s\n" % e) ``` ### Parameters @@ -562,6 +634,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_volume_attachment** @@ -573,23 +651,27 @@ list or watch objects of kind VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -599,11 +681,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->list_volume_attachment: %s\n" % e) + try: + api_response = api_instance.list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->list_volume_attachment: %s\n" % e) ``` ### Parameters @@ -633,6 +715,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_storage_class** @@ -644,34 +732,38 @@ partially update the specified StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StorageClass -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the StorageClass +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->patch_storage_class: %s\n" % e) + try: + api_response = api_instance.patch_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->patch_storage_class: %s\n" % e) ``` ### Parameters @@ -679,7 +771,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -698,6 +790,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_volume_attachment** @@ -709,34 +807,38 @@ partially update the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->patch_volume_attachment: %s\n" % e) + try: + api_response = api_instance.patch_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->patch_volume_attachment: %s\n" % e) ``` ### Parameters @@ -744,7 +846,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -763,6 +865,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_volume_attachment_status** @@ -774,34 +882,38 @@ partially update status of the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_volume_attachment_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->patch_volume_attachment_status: %s\n" % e) + try: + api_response = api_instance.patch_volume_attachment_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->patch_volume_attachment_status: %s\n" % e) ``` ### Parameters @@ -809,7 +921,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -828,6 +940,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_storage_class** @@ -839,32 +957,36 @@ read the specified StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StorageClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the StorageClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_storage_class(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->read_storage_class: %s\n" % e) + try: + api_response = api_instance.read_storage_class(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->read_storage_class: %s\n" % e) ``` ### Parameters @@ -889,6 +1011,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_volume_attachment** @@ -900,32 +1028,36 @@ read the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_volume_attachment(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->read_volume_attachment: %s\n" % e) + try: + api_response = api_instance.read_volume_attachment(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->read_volume_attachment: %s\n" % e) ``` ### Parameters @@ -950,6 +1082,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_volume_attachment_status** @@ -961,30 +1099,34 @@ read status of the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -try: - api_response = api_instance.read_volume_attachment_status(name, pretty=pretty) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->read_volume_attachment_status: %s\n" % e) + try: + api_response = api_instance.read_volume_attachment_status(name, pretty=pretty) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->read_volume_attachment_status: %s\n" % e) ``` ### Parameters @@ -1007,6 +1149,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_storage_class** @@ -1018,33 +1166,37 @@ replace the specified StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StorageClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the StorageClass body = kubernetes.client.V1StorageClass() # V1StorageClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->replace_storage_class: %s\n" % e) + try: + api_response = api_instance.replace_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->replace_storage_class: %s\n" % e) ``` ### Parameters @@ -1070,6 +1222,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_volume_attachment** @@ -1081,33 +1240,37 @@ replace the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment body = kubernetes.client.V1VolumeAttachment() # V1VolumeAttachment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->replace_volume_attachment: %s\n" % e) + try: + api_response = api_instance.replace_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->replace_volume_attachment: %s\n" % e) ``` ### Parameters @@ -1133,6 +1296,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_volume_attachment_status** @@ -1144,33 +1314,37 @@ replace status of the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment body = kubernetes.client.V1VolumeAttachment() # V1VolumeAttachment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_volume_attachment_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1Api->replace_volume_attachment_status: %s\n" % e) + try: + api_response = api_instance.replace_volume_attachment_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1Api->replace_volume_attachment_status: %s\n" % e) ``` ### Parameters @@ -1196,5 +1370,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/StorageV1alpha1Api.md b/kubernetes/docs/StorageV1alpha1Api.md index 9a9cd467fe..062441a279 100644 --- a/kubernetes/docs/StorageV1alpha1Api.md +++ b/kubernetes/docs/StorageV1alpha1Api.md @@ -23,32 +23,36 @@ create a VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1alpha1VolumeAttachment() # V1alpha1VolumeAttachment | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1alpha1Api(api_client) + body = kubernetes.client.V1alpha1VolumeAttachment() # V1alpha1VolumeAttachment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_volume_attachment(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1alpha1Api->create_volume_attachment: %s\n" % e) + try: + api_response = api_instance.create_volume_attachment(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1alpha1Api->create_volume_attachment: %s\n" % e) ``` ### Parameters @@ -73,10 +77,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_volume_attachment** -> V1Status delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_volume_attachment(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -84,24 +96,27 @@ delete collection of VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -112,14 +127,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1alpha1Api->delete_collection_volume_attachment: %s\n" % e) + try: + api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1alpha1Api->delete_collection_volume_attachment: %s\n" % e) ``` ### Parameters @@ -127,7 +141,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -138,8 +151,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -154,6 +166,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_volume_attachment** @@ -165,23 +183,27 @@ delete a VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1alpha1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -189,11 +211,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1alpha1Api->delete_volume_attachment: %s\n" % e) + try: + api_response = api_instance.delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1alpha1Api->delete_volume_attachment: %s\n" % e) ``` ### Parameters @@ -221,6 +243,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -232,28 +261,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1alpha1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1alpha1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1alpha1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -272,6 +305,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_volume_attachment** @@ -283,23 +322,27 @@ list or watch objects of kind VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1alpha1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -309,11 +352,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1alpha1Api->list_volume_attachment: %s\n" % e) + try: + api_response = api_instance.list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1alpha1Api->list_volume_attachment: %s\n" % e) ``` ### Parameters @@ -343,6 +386,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_volume_attachment** @@ -354,34 +403,38 @@ partially update the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1alpha1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1alpha1Api->patch_volume_attachment: %s\n" % e) + try: + api_response = api_instance.patch_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1alpha1Api->patch_volume_attachment: %s\n" % e) ``` ### Parameters @@ -389,7 +442,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -408,6 +461,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_volume_attachment** @@ -419,32 +478,36 @@ read the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1alpha1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_volume_attachment(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1alpha1Api->read_volume_attachment: %s\n" % e) + try: + api_response = api_instance.read_volume_attachment(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1alpha1Api->read_volume_attachment: %s\n" % e) ``` ### Parameters @@ -469,6 +532,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_volume_attachment** @@ -480,33 +549,37 @@ replace the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1alpha1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1alpha1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment body = kubernetes.client.V1alpha1VolumeAttachment() # V1alpha1VolumeAttachment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1alpha1Api->replace_volume_attachment: %s\n" % e) + try: + api_response = api_instance.replace_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1alpha1Api->replace_volume_attachment: %s\n" % e) ``` ### Parameters @@ -532,5 +605,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StorageV1beta1Api.md index 96267e62ca..3e28389ad8 100644 --- a/kubernetes/docs/StorageV1beta1Api.md +++ b/kubernetes/docs/StorageV1beta1Api.md @@ -44,32 +44,36 @@ create a CSIDriver ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1CSIDriver() # V1beta1CSIDriver | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + body = kubernetes.client.V1beta1CSIDriver() # V1beta1CSIDriver | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_csi_driver(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->create_csi_driver: %s\n" % e) + try: + api_response = api_instance.create_csi_driver(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->create_csi_driver: %s\n" % e) ``` ### Parameters @@ -94,6 +98,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_csi_node** @@ -105,32 +117,36 @@ create a CSINode ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1CSINode() # V1beta1CSINode | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + body = kubernetes.client.V1beta1CSINode() # V1beta1CSINode | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_csi_node(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->create_csi_node: %s\n" % e) + try: + api_response = api_instance.create_csi_node(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->create_csi_node: %s\n" % e) ``` ### Parameters @@ -155,6 +171,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_storage_class** @@ -166,32 +190,36 @@ create a StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1StorageClass() # V1beta1StorageClass | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + body = kubernetes.client.V1beta1StorageClass() # V1beta1StorageClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_storage_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->create_storage_class: %s\n" % e) + try: + api_response = api_instance.create_storage_class(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->create_storage_class: %s\n" % e) ``` ### Parameters @@ -216,6 +244,14 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_volume_attachment** @@ -227,32 +263,36 @@ create a VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -body = kubernetes.client.V1beta1VolumeAttachment() # V1beta1VolumeAttachment | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + body = kubernetes.client.V1beta1VolumeAttachment() # V1beta1VolumeAttachment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.create_volume_attachment(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->create_volume_attachment: %s\n" % e) + try: + api_response = api_instance.create_volume_attachment(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->create_volume_attachment: %s\n" % e) ``` ### Parameters @@ -277,10 +317,18 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_csi_driver** -> V1Status delete_collection_csi_driver(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_csi_driver(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -288,24 +336,27 @@ delete collection of CSIDriver ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -316,14 +367,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_csi_driver(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->delete_collection_csi_driver: %s\n" % e) + try: + api_response = api_instance.delete_collection_csi_driver(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_collection_csi_driver: %s\n" % e) ``` ### Parameters @@ -331,7 +381,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -342,8 +391,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -358,10 +406,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_csi_node** -> V1Status delete_collection_csi_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_csi_node(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -369,24 +423,27 @@ delete collection of CSINode ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -397,14 +454,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_csi_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->delete_collection_csi_node: %s\n" % e) + try: + api_response = api_instance.delete_collection_csi_node(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_collection_csi_node: %s\n" % e) ``` ### Parameters @@ -412,7 +468,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -423,8 +478,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -439,10 +493,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_storage_class** -> V1Status delete_collection_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_storage_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -450,24 +510,27 @@ delete collection of StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -478,14 +541,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->delete_collection_storage_class: %s\n" % e) + try: + api_response = api_instance.delete_collection_storage_class(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_collection_storage_class: %s\n" % e) ``` ### Parameters @@ -493,7 +555,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -504,8 +565,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -520,10 +580,16 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_collection_volume_attachment** -> V1Status delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) +> V1Status delete_collection_volume_attachment(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) @@ -531,24 +597,27 @@ delete collection of VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) -allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -559,14 +628,13 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) -watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -v1_delete_options = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) +body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch, v1_delete_options=v1_delete_options) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->delete_collection_volume_attachment: %s\n" % e) + try: + api_response = api_instance.delete_collection_volume_attachment(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_collection_volume_attachment: %s\n" % e) ``` ### Parameters @@ -574,7 +642,6 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] - **allow_watch_bookmarks** | **bool**| 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. | [optional] **dry_run** | **str**| 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 | [optional] **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] @@ -585,8 +652,7 @@ Name | Type | Description | Notes **propagation_policy** | **str**| 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. | [optional] **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeout_seconds** | **int**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] - **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] - **v1_delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -601,6 +667,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_csi_driver** @@ -612,23 +684,27 @@ delete a CSIDriver ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CSIDriver +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the CSIDriver pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -636,11 +712,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_csi_driver(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->delete_csi_driver: %s\n" % e) + try: + api_response = api_instance.delete_csi_driver(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_csi_driver: %s\n" % e) ``` ### Parameters @@ -668,6 +744,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_csi_node** @@ -679,23 +762,27 @@ delete a CSINode ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CSINode +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the CSINode pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -703,11 +790,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_csi_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->delete_csi_node: %s\n" % e) + try: + api_response = api_instance.delete_csi_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_csi_node: %s\n" % e) ``` ### Parameters @@ -735,6 +822,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_storage_class** @@ -746,23 +840,27 @@ delete a StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StorageClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the StorageClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -770,11 +868,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_storage_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->delete_storage_class: %s\n" % e) + try: + api_response = api_instance.delete_storage_class(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_storage_class: %s\n" % e) ``` ### Parameters @@ -802,6 +900,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **delete_volume_attachment** @@ -813,23 +918,27 @@ delete a VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) grace_period_seconds = 56 # int | 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. (optional) @@ -837,11 +946,11 @@ orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, propagation_policy = 'propagation_policy_example' # str | 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. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) -try: - api_response = api_instance.delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->delete_volume_attachment: %s\n" % e) + try: + api_response = api_instance.delete_volume_attachment(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->delete_volume_attachment: %s\n" % e) ``` ### Parameters @@ -869,6 +978,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_api_resources** @@ -880,28 +996,32 @@ get available resources ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_api_resources() - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->get_api_resources: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + + try: + api_response = api_instance.get_api_resources() + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->get_api_resources: %s\n" % e) ``` ### Parameters @@ -920,6 +1040,12 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_csi_driver** @@ -931,23 +1057,27 @@ list or watch objects of kind CSIDriver ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -957,11 +1087,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_csi_driver(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->list_csi_driver: %s\n" % e) + try: + api_response = api_instance.list_csi_driver(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->list_csi_driver: %s\n" % e) ``` ### Parameters @@ -991,6 +1121,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_csi_node** @@ -1002,23 +1138,27 @@ list or watch objects of kind CSINode ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1028,11 +1168,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_csi_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->list_csi_node: %s\n" % e) + try: + api_response = api_instance.list_csi_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->list_csi_node: %s\n" % e) ``` ### Parameters @@ -1062,6 +1202,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_storage_class** @@ -1073,23 +1219,27 @@ list or watch objects of kind StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1099,11 +1249,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->list_storage_class: %s\n" % e) + try: + api_response = api_instance.list_storage_class(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->list_storage_class: %s\n" % e) ``` ### Parameters @@ -1133,6 +1283,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_volume_attachment** @@ -1144,23 +1300,27 @@ list or watch objects of kind VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | 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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.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 kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.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. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) @@ -1170,11 +1330,11 @@ resource_version = 'resource_version_example' # str | When specified with a watc timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) -try: - api_response = api_instance.list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->list_volume_attachment: %s\n" % e) + try: + api_response = api_instance.list_volume_attachment(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->list_volume_attachment: %s\n" % e) ``` ### Parameters @@ -1204,6 +1364,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_csi_driver** @@ -1215,34 +1381,38 @@ partially update the specified CSIDriver ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CSIDriver -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the CSIDriver +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_csi_driver(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->patch_csi_driver: %s\n" % e) + try: + api_response = api_instance.patch_csi_driver(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->patch_csi_driver: %s\n" % e) ``` ### Parameters @@ -1250,7 +1420,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CSIDriver | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1269,6 +1439,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_csi_node** @@ -1280,34 +1456,38 @@ partially update the specified CSINode ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CSINode -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the CSINode +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_csi_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->patch_csi_node: %s\n" % e) + try: + api_response = api_instance.patch_csi_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->patch_csi_node: %s\n" % e) ``` ### Parameters @@ -1315,7 +1495,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CSINode | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1334,6 +1514,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_storage_class** @@ -1345,34 +1531,38 @@ partially update the specified StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StorageClass -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the StorageClass +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->patch_storage_class: %s\n" % e) + try: + api_response = api_instance.patch_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->patch_storage_class: %s\n" % e) ``` ### Parameters @@ -1380,7 +1570,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1399,6 +1589,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_volume_attachment** @@ -1410,34 +1606,38 @@ partially update the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment -body = kubernetes.client.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment +body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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). (optional) force = True # bool | 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. (optional) -try: - api_response = api_instance.patch_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->patch_volume_attachment: %s\n" % e) + try: + api_response = api_instance.patch_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->patch_volume_attachment: %s\n" % e) ``` ### Parameters @@ -1445,7 +1645,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the VolumeAttachment | - **body** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] **dry_run** | **str**| 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 | [optional] **field_manager** | **str**| 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). | [optional] @@ -1464,6 +1664,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_csi_driver** @@ -1475,32 +1681,36 @@ read the specified CSIDriver ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CSIDriver +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the CSIDriver pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_csi_driver(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->read_csi_driver: %s\n" % e) + try: + api_response = api_instance.read_csi_driver(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->read_csi_driver: %s\n" % e) ``` ### Parameters @@ -1525,6 +1735,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_csi_node** @@ -1536,32 +1752,36 @@ read the specified CSINode ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CSINode +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the CSINode pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_csi_node(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->read_csi_node: %s\n" % e) + try: + api_response = api_instance.read_csi_node(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->read_csi_node: %s\n" % e) ``` ### Parameters @@ -1586,6 +1806,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_storage_class** @@ -1597,32 +1823,36 @@ read the specified StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StorageClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the StorageClass pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_storage_class(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->read_storage_class: %s\n" % e) + try: + api_response = api_instance.read_storage_class(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->read_storage_class: %s\n" % e) ``` ### Parameters @@ -1647,6 +1877,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_volume_attachment** @@ -1658,32 +1894,36 @@ read the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) -try: - api_response = api_instance.read_volume_attachment(name, pretty=pretty, exact=exact, export=export) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->read_volume_attachment: %s\n" % e) + try: + api_response = api_instance.read_volume_attachment(name, pretty=pretty, exact=exact, export=export) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->read_volume_attachment: %s\n" % e) ``` ### Parameters @@ -1708,6 +1948,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_csi_driver** @@ -1719,33 +1965,37 @@ replace the specified CSIDriver ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CSIDriver +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the CSIDriver body = kubernetes.client.V1beta1CSIDriver() # V1beta1CSIDriver | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_csi_driver(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->replace_csi_driver: %s\n" % e) + try: + api_response = api_instance.replace_csi_driver(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->replace_csi_driver: %s\n" % e) ``` ### Parameters @@ -1771,6 +2021,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_csi_node** @@ -1782,33 +2039,37 @@ replace the specified CSINode ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the CSINode +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the CSINode body = kubernetes.client.V1beta1CSINode() # V1beta1CSINode | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_csi_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->replace_csi_node: %s\n" % e) + try: + api_response = api_instance.replace_csi_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->replace_csi_node: %s\n" % e) ``` ### Parameters @@ -1834,6 +2095,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_storage_class** @@ -1845,33 +2113,37 @@ replace the specified StorageClass ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the StorageClass +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the StorageClass body = kubernetes.client.V1beta1StorageClass() # V1beta1StorageClass | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->replace_storage_class: %s\n" % e) + try: + api_response = api_instance.replace_storage_class(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->replace_storage_class: %s\n" % e) ``` ### Parameters @@ -1897,6 +2169,13 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_volume_attachment** @@ -1908,33 +2187,37 @@ replace the specified VolumeAttachment ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.StorageV1beta1Api(kubernetes.client.ApiClient(configuration)) -name = 'name_example' # str | name of the VolumeAttachment +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.StorageV1beta1Api(api_client) + name = 'name_example' # str | name of the VolumeAttachment body = kubernetes.client.V1beta1VolumeAttachment() # V1beta1VolumeAttachment | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | 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 (optional) field_manager = 'field_manager_example' # str | 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. (optional) -try: - api_response = api_instance.replace_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) - pprint(api_response) -except ApiException as e: - print("Exception when calling StorageV1beta1Api->replace_volume_attachment: %s\n" % e) + try: + api_response = api_instance.replace_volume_attachment(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) + pprint(api_response) + except ApiException as e: + print("Exception when calling StorageV1beta1Api->replace_volume_attachment: %s\n" % e) ``` ### Parameters @@ -1960,5 +2243,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1APIGroup.md b/kubernetes/docs/V1APIGroup.md index 5a52b233ca..7320685fea 100644 --- a/kubernetes/docs/V1APIGroup.md +++ b/kubernetes/docs/V1APIGroup.md @@ -1,5 +1,6 @@ # V1APIGroup +APIGroup contains the name, the supported versions, and the preferred version of a group. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1APIGroupList.md b/kubernetes/docs/V1APIGroupList.md index 8db60da469..a4af4b8725 100644 --- a/kubernetes/docs/V1APIGroupList.md +++ b/kubernetes/docs/V1APIGroupList.md @@ -1,5 +1,6 @@ # V1APIGroupList +APIGroupList is a list of APIGroup, to allow kubernetes.clients to discover the API at /apis. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1APIResource.md b/kubernetes/docs/V1APIResource.md index af41dfcdea..b6661f2cf4 100644 --- a/kubernetes/docs/V1APIResource.md +++ b/kubernetes/docs/V1APIResource.md @@ -1,5 +1,6 @@ # V1APIResource +APIResource specifies the name of a resource and whether it is namespaced. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1APIResourceList.md b/kubernetes/docs/V1APIResourceList.md index ca0de2c413..6abe32c10e 100644 --- a/kubernetes/docs/V1APIResourceList.md +++ b/kubernetes/docs/V1APIResourceList.md @@ -1,5 +1,6 @@ # V1APIResourceList +APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1APIService.md b/kubernetes/docs/V1APIService.md index bbeff184cd..00079d757c 100644 --- a/kubernetes/docs/V1APIService.md +++ b/kubernetes/docs/V1APIService.md @@ -1,5 +1,6 @@ # V1APIService +APIService represents a server for a particular GroupVersion. Name must be \"version.group\". ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1APIServiceCondition.md b/kubernetes/docs/V1APIServiceCondition.md index 496e192fae..b99beb28de 100644 --- a/kubernetes/docs/V1APIServiceCondition.md +++ b/kubernetes/docs/V1APIServiceCondition.md @@ -1,5 +1,6 @@ # V1APIServiceCondition +APIServiceCondition describes the state of an APIService at a particular point ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1APIServiceList.md b/kubernetes/docs/V1APIServiceList.md index 71ecadc872..14c5f36628 100644 --- a/kubernetes/docs/V1APIServiceList.md +++ b/kubernetes/docs/V1APIServiceList.md @@ -1,5 +1,6 @@ # V1APIServiceList +APIServiceList is a list of APIService objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1APIServiceSpec.md b/kubernetes/docs/V1APIServiceSpec.md index bdb1a5191b..b8fe51ef64 100644 --- a/kubernetes/docs/V1APIServiceSpec.md +++ b/kubernetes/docs/V1APIServiceSpec.md @@ -1,5 +1,6 @@ # V1APIServiceSpec +APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1APIServiceStatus.md b/kubernetes/docs/V1APIServiceStatus.md index fdbd10c74f..9f1bff2493 100644 --- a/kubernetes/docs/V1APIServiceStatus.md +++ b/kubernetes/docs/V1APIServiceStatus.md @@ -1,5 +1,6 @@ # V1APIServiceStatus +APIServiceStatus contains derived information about an API server ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1APIVersions.md b/kubernetes/docs/V1APIVersions.md index 532e08aad4..4bdc3ec6d6 100644 --- a/kubernetes/docs/V1APIVersions.md +++ b/kubernetes/docs/V1APIVersions.md @@ -1,5 +1,6 @@ # V1APIVersions +APIVersions lists the versions that are available, to allow kubernetes.clients to discover the API at /api, which is the root path of the legacy v1 API. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md b/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md index d877557206..159e5cef97 100644 --- a/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md +++ b/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md @@ -1,5 +1,6 @@ # V1AWSElasticBlockStoreVolumeSource +Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Affinity.md b/kubernetes/docs/V1Affinity.md index 661b2e6e9b..81ff44d5e3 100644 --- a/kubernetes/docs/V1Affinity.md +++ b/kubernetes/docs/V1Affinity.md @@ -1,5 +1,6 @@ # V1Affinity +Affinity is a group of affinity scheduling rules. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1AggregationRule.md b/kubernetes/docs/V1AggregationRule.md index 126a1a32ce..ca351eabeb 100644 --- a/kubernetes/docs/V1AggregationRule.md +++ b/kubernetes/docs/V1AggregationRule.md @@ -1,5 +1,6 @@ # V1AggregationRule +AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1AttachedVolume.md b/kubernetes/docs/V1AttachedVolume.md index cc9023e99e..2d4772c2d1 100644 --- a/kubernetes/docs/V1AttachedVolume.md +++ b/kubernetes/docs/V1AttachedVolume.md @@ -1,5 +1,6 @@ # V1AttachedVolume +AttachedVolume describes a volume attached to a node ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1AzureDiskVolumeSource.md b/kubernetes/docs/V1AzureDiskVolumeSource.md index 7709cc7cc7..87b3e5e555 100644 --- a/kubernetes/docs/V1AzureDiskVolumeSource.md +++ b/kubernetes/docs/V1AzureDiskVolumeSource.md @@ -1,5 +1,6 @@ # V1AzureDiskVolumeSource +AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1AzureFilePersistentVolumeSource.md b/kubernetes/docs/V1AzureFilePersistentVolumeSource.md index c337d09157..f2a0bb98bb 100644 --- a/kubernetes/docs/V1AzureFilePersistentVolumeSource.md +++ b/kubernetes/docs/V1AzureFilePersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1AzureFilePersistentVolumeSource +AzureFile represents an Azure File Service mount on the host and bind mount to the pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1AzureFileVolumeSource.md b/kubernetes/docs/V1AzureFileVolumeSource.md index d07de5346d..bc2764c2e4 100644 --- a/kubernetes/docs/V1AzureFileVolumeSource.md +++ b/kubernetes/docs/V1AzureFileVolumeSource.md @@ -1,5 +1,6 @@ # V1AzureFileVolumeSource +AzureFile represents an Azure File Service mount on the host and bind mount to the pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Binding.md b/kubernetes/docs/V1Binding.md index ed83bf45fa..a6e69c4ad9 100644 --- a/kubernetes/docs/V1Binding.md +++ b/kubernetes/docs/V1Binding.md @@ -1,5 +1,6 @@ # V1Binding +Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1BoundObjectReference.md b/kubernetes/docs/V1BoundObjectReference.md index d378e92918..cfae102dd4 100644 --- a/kubernetes/docs/V1BoundObjectReference.md +++ b/kubernetes/docs/V1BoundObjectReference.md @@ -1,5 +1,6 @@ # V1BoundObjectReference +BoundObjectReference is a reference to an object that a token is bound to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CSIPersistentVolumeSource.md b/kubernetes/docs/V1CSIPersistentVolumeSource.md index 3163e05550..347e8e76e7 100644 --- a/kubernetes/docs/V1CSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1CSIPersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1CSIPersistentVolumeSource +Represents storage that is managed by an external CSI volume driver (Beta feature) ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CSIVolumeSource.md b/kubernetes/docs/V1CSIVolumeSource.md index 15d3a47522..7604056b70 100644 --- a/kubernetes/docs/V1CSIVolumeSource.md +++ b/kubernetes/docs/V1CSIVolumeSource.md @@ -1,5 +1,6 @@ # V1CSIVolumeSource +Represents a source location of a volume to mount, managed by an external CSI driver ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Capabilities.md b/kubernetes/docs/V1Capabilities.md index f7b22b74c8..f4b744625e 100644 --- a/kubernetes/docs/V1Capabilities.md +++ b/kubernetes/docs/V1Capabilities.md @@ -1,5 +1,6 @@ # V1Capabilities +Adds and removes POSIX capabilities from running containers. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CephFSPersistentVolumeSource.md b/kubernetes/docs/V1CephFSPersistentVolumeSource.md index dde375f07c..3a05adbd39 100644 --- a/kubernetes/docs/V1CephFSPersistentVolumeSource.md +++ b/kubernetes/docs/V1CephFSPersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1CephFSPersistentVolumeSource +Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CephFSVolumeSource.md b/kubernetes/docs/V1CephFSVolumeSource.md index 53cf608355..6f2ae0b441 100644 --- a/kubernetes/docs/V1CephFSVolumeSource.md +++ b/kubernetes/docs/V1CephFSVolumeSource.md @@ -1,5 +1,6 @@ # V1CephFSVolumeSource +Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CinderPersistentVolumeSource.md b/kubernetes/docs/V1CinderPersistentVolumeSource.md index 66889d3c8b..5f07ef7d19 100644 --- a/kubernetes/docs/V1CinderPersistentVolumeSource.md +++ b/kubernetes/docs/V1CinderPersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1CinderPersistentVolumeSource +Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CinderVolumeSource.md b/kubernetes/docs/V1CinderVolumeSource.md index 05e5c649fa..710078645d 100644 --- a/kubernetes/docs/V1CinderVolumeSource.md +++ b/kubernetes/docs/V1CinderVolumeSource.md @@ -1,5 +1,6 @@ # V1CinderVolumeSource +Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ClientIPConfig.md b/kubernetes/docs/V1ClientIPConfig.md index 3a11dd77bb..7adf6ccb98 100644 --- a/kubernetes/docs/V1ClientIPConfig.md +++ b/kubernetes/docs/V1ClientIPConfig.md @@ -1,5 +1,6 @@ # V1ClientIPConfig +ClientIPConfig represents the configurations of Client IP based session affinity. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ClusterRole.md b/kubernetes/docs/V1ClusterRole.md index e7ec2d3110..7f6b73d777 100644 --- a/kubernetes/docs/V1ClusterRole.md +++ b/kubernetes/docs/V1ClusterRole.md @@ -1,5 +1,6 @@ # V1ClusterRole +ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ClusterRoleBinding.md b/kubernetes/docs/V1ClusterRoleBinding.md index 4c4e3f1af7..2a63fd88c9 100644 --- a/kubernetes/docs/V1ClusterRoleBinding.md +++ b/kubernetes/docs/V1ClusterRoleBinding.md @@ -1,5 +1,6 @@ # V1ClusterRoleBinding +ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ClusterRoleBindingList.md b/kubernetes/docs/V1ClusterRoleBindingList.md index 64764ee00e..8f375b947f 100644 --- a/kubernetes/docs/V1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1ClusterRoleBindingList.md @@ -1,5 +1,6 @@ # V1ClusterRoleBindingList +ClusterRoleBindingList is a collection of ClusterRoleBindings ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ClusterRoleList.md b/kubernetes/docs/V1ClusterRoleList.md index dacb8520cf..1a91bee47a 100644 --- a/kubernetes/docs/V1ClusterRoleList.md +++ b/kubernetes/docs/V1ClusterRoleList.md @@ -1,5 +1,6 @@ # V1ClusterRoleList +ClusterRoleList is a collection of ClusterRoles ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ComponentCondition.md b/kubernetes/docs/V1ComponentCondition.md index 8d7540e719..6532b76c80 100644 --- a/kubernetes/docs/V1ComponentCondition.md +++ b/kubernetes/docs/V1ComponentCondition.md @@ -1,5 +1,6 @@ # V1ComponentCondition +Information about the condition of a component. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ComponentStatus.md b/kubernetes/docs/V1ComponentStatus.md index ea5a207aea..3af65ba011 100644 --- a/kubernetes/docs/V1ComponentStatus.md +++ b/kubernetes/docs/V1ComponentStatus.md @@ -1,5 +1,6 @@ # V1ComponentStatus +ComponentStatus (and ComponentStatusList) holds the cluster validation info. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ComponentStatusList.md b/kubernetes/docs/V1ComponentStatusList.md index 39cb5b8f45..00840d2fbb 100644 --- a/kubernetes/docs/V1ComponentStatusList.md +++ b/kubernetes/docs/V1ComponentStatusList.md @@ -1,5 +1,6 @@ # V1ComponentStatusList +Status of all the conditions for the component as a list of ComponentStatus objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ConfigMap.md b/kubernetes/docs/V1ConfigMap.md index 342b8e3301..a9ca4c24f9 100644 --- a/kubernetes/docs/V1ConfigMap.md +++ b/kubernetes/docs/V1ConfigMap.md @@ -1,5 +1,6 @@ # V1ConfigMap +ConfigMap holds configuration data for pods to consume. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ConfigMapEnvSource.md b/kubernetes/docs/V1ConfigMapEnvSource.md index 56381c4d68..d23a60d838 100644 --- a/kubernetes/docs/V1ConfigMapEnvSource.md +++ b/kubernetes/docs/V1ConfigMapEnvSource.md @@ -1,5 +1,6 @@ # V1ConfigMapEnvSource +ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md index 0801468bcc..bfa8d5b81d 100644 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/docs/V1ConfigMapKeySelector.md @@ -1,5 +1,6 @@ # V1ConfigMapKeySelector +Selects a key from a ConfigMap. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ConfigMapList.md b/kubernetes/docs/V1ConfigMapList.md index 4fd41ed484..57a62582bc 100644 --- a/kubernetes/docs/V1ConfigMapList.md +++ b/kubernetes/docs/V1ConfigMapList.md @@ -1,5 +1,6 @@ # V1ConfigMapList +ConfigMapList is a resource containing a list of ConfigMap objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ConfigMapNodeConfigSource.md b/kubernetes/docs/V1ConfigMapNodeConfigSource.md index 1cb4e91438..7c4b46f6b8 100644 --- a/kubernetes/docs/V1ConfigMapNodeConfigSource.md +++ b/kubernetes/docs/V1ConfigMapNodeConfigSource.md @@ -1,5 +1,6 @@ # V1ConfigMapNodeConfigSource +ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ConfigMapProjection.md b/kubernetes/docs/V1ConfigMapProjection.md index 7170359be2..5ceac93a00 100644 --- a/kubernetes/docs/V1ConfigMapProjection.md +++ b/kubernetes/docs/V1ConfigMapProjection.md @@ -1,5 +1,6 @@ # V1ConfigMapProjection +Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md index 85da94f88a..dc03d184e6 100644 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/docs/V1ConfigMapVolumeSource.md @@ -1,5 +1,6 @@ # V1ConfigMapVolumeSource +Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Container.md b/kubernetes/docs/V1Container.md index 2a5efa7adf..615e2367d2 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -1,5 +1,6 @@ # V1Container +A single application container that you want to run within a pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ContainerImage.md b/kubernetes/docs/V1ContainerImage.md index 8bf29816dc..ad0ddc77aa 100644 --- a/kubernetes/docs/V1ContainerImage.md +++ b/kubernetes/docs/V1ContainerImage.md @@ -1,5 +1,6 @@ # V1ContainerImage +Describe a container image ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ContainerPort.md b/kubernetes/docs/V1ContainerPort.md index 32e31fda54..683a57b9a4 100644 --- a/kubernetes/docs/V1ContainerPort.md +++ b/kubernetes/docs/V1ContainerPort.md @@ -1,5 +1,6 @@ # V1ContainerPort +ContainerPort represents a network port in a single container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ContainerState.md b/kubernetes/docs/V1ContainerState.md index 6b5c623d4e..c9faeab888 100644 --- a/kubernetes/docs/V1ContainerState.md +++ b/kubernetes/docs/V1ContainerState.md @@ -1,5 +1,6 @@ # V1ContainerState +ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ContainerStateRunning.md b/kubernetes/docs/V1ContainerStateRunning.md index de9fea7014..a7c240bf67 100644 --- a/kubernetes/docs/V1ContainerStateRunning.md +++ b/kubernetes/docs/V1ContainerStateRunning.md @@ -1,5 +1,6 @@ # V1ContainerStateRunning +ContainerStateRunning is a running state of a container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ContainerStateTerminated.md b/kubernetes/docs/V1ContainerStateTerminated.md index 13143c5acf..ffc4b643f7 100644 --- a/kubernetes/docs/V1ContainerStateTerminated.md +++ b/kubernetes/docs/V1ContainerStateTerminated.md @@ -1,5 +1,6 @@ # V1ContainerStateTerminated +ContainerStateTerminated is a terminated state of a container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ContainerStateWaiting.md b/kubernetes/docs/V1ContainerStateWaiting.md index 43f6b68321..a05ec19b2a 100644 --- a/kubernetes/docs/V1ContainerStateWaiting.md +++ b/kubernetes/docs/V1ContainerStateWaiting.md @@ -1,5 +1,6 @@ # V1ContainerStateWaiting +ContainerStateWaiting is a waiting state of a container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ContainerStatus.md b/kubernetes/docs/V1ContainerStatus.md index 9b6fa5d219..450b2870b7 100644 --- a/kubernetes/docs/V1ContainerStatus.md +++ b/kubernetes/docs/V1ContainerStatus.md @@ -1,5 +1,6 @@ # V1ContainerStatus +ContainerStatus contains details for the current status of this container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ControllerRevision.md b/kubernetes/docs/V1ControllerRevision.md index 4810ec193c..6643c9bf91 100644 --- a/kubernetes/docs/V1ControllerRevision.md +++ b/kubernetes/docs/V1ControllerRevision.md @@ -1,5 +1,6 @@ # V1ControllerRevision +ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and kubernetes.clients should not depend on its stability. It is primarily for internal use by controllers. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ControllerRevisionList.md b/kubernetes/docs/V1ControllerRevisionList.md index 602e086ec1..a0141b10b7 100644 --- a/kubernetes/docs/V1ControllerRevisionList.md +++ b/kubernetes/docs/V1ControllerRevisionList.md @@ -1,5 +1,6 @@ # V1ControllerRevisionList +ControllerRevisionList is a resource containing a list of ControllerRevision objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CrossVersionObjectReference.md b/kubernetes/docs/V1CrossVersionObjectReference.md index 8a002c76a3..916a82272c 100644 --- a/kubernetes/docs/V1CrossVersionObjectReference.md +++ b/kubernetes/docs/V1CrossVersionObjectReference.md @@ -1,5 +1,6 @@ # V1CrossVersionObjectReference +CrossVersionObjectReference contains enough information to let you identify the referred resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceColumnDefinition.md b/kubernetes/docs/V1CustomResourceColumnDefinition.md index b3407751c6..aa301ad189 100644 --- a/kubernetes/docs/V1CustomResourceColumnDefinition.md +++ b/kubernetes/docs/V1CustomResourceColumnDefinition.md @@ -1,5 +1,6 @@ # V1CustomResourceColumnDefinition +CustomResourceColumnDefinition specifies a column for server side printing. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceConversion.md b/kubernetes/docs/V1CustomResourceConversion.md index 5b6caf2c9f..920ba09e61 100644 --- a/kubernetes/docs/V1CustomResourceConversion.md +++ b/kubernetes/docs/V1CustomResourceConversion.md @@ -1,5 +1,6 @@ # V1CustomResourceConversion +CustomResourceConversion describes how to convert different versions of a CR. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceDefinition.md b/kubernetes/docs/V1CustomResourceDefinition.md index b37ac99bda..9ec04b4542 100644 --- a/kubernetes/docs/V1CustomResourceDefinition.md +++ b/kubernetes/docs/V1CustomResourceDefinition.md @@ -1,5 +1,6 @@ # V1CustomResourceDefinition +CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceDefinitionCondition.md b/kubernetes/docs/V1CustomResourceDefinitionCondition.md index af5b6c0781..5840e60783 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionCondition.md +++ b/kubernetes/docs/V1CustomResourceDefinitionCondition.md @@ -1,5 +1,6 @@ # V1CustomResourceDefinitionCondition +CustomResourceDefinitionCondition contains details for the current condition of this pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceDefinitionList.md b/kubernetes/docs/V1CustomResourceDefinitionList.md index 1022e4098b..aca2fb2f58 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionList.md +++ b/kubernetes/docs/V1CustomResourceDefinitionList.md @@ -1,5 +1,6 @@ # V1CustomResourceDefinitionList +CustomResourceDefinitionList is a list of CustomResourceDefinition objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceDefinitionNames.md b/kubernetes/docs/V1CustomResourceDefinitionNames.md index d36881a49e..f1199bf0ef 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionNames.md +++ b/kubernetes/docs/V1CustomResourceDefinitionNames.md @@ -1,5 +1,6 @@ # V1CustomResourceDefinitionNames +CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceDefinitionSpec.md b/kubernetes/docs/V1CustomResourceDefinitionSpec.md index 6ce56fd012..0c81ff817d 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionSpec.md +++ b/kubernetes/docs/V1CustomResourceDefinitionSpec.md @@ -1,5 +1,6 @@ # V1CustomResourceDefinitionSpec +CustomResourceDefinitionSpec describes how a user wants their resource to appear ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceDefinitionStatus.md b/kubernetes/docs/V1CustomResourceDefinitionStatus.md index 303aa9fa40..777419fb47 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionStatus.md +++ b/kubernetes/docs/V1CustomResourceDefinitionStatus.md @@ -1,5 +1,6 @@ # V1CustomResourceDefinitionStatus +CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceDefinitionVersion.md b/kubernetes/docs/V1CustomResourceDefinitionVersion.md index b1892b987a..3f7b0693f4 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionVersion.md +++ b/kubernetes/docs/V1CustomResourceDefinitionVersion.md @@ -1,5 +1,6 @@ # V1CustomResourceDefinitionVersion +CustomResourceDefinitionVersion describes a version for CRD. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceSubresourceScale.md b/kubernetes/docs/V1CustomResourceSubresourceScale.md index 8b9641f359..f45ba94499 100644 --- a/kubernetes/docs/V1CustomResourceSubresourceScale.md +++ b/kubernetes/docs/V1CustomResourceSubresourceScale.md @@ -1,5 +1,6 @@ # V1CustomResourceSubresourceScale +CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceSubresources.md b/kubernetes/docs/V1CustomResourceSubresources.md index ff476e3a57..65504395b3 100644 --- a/kubernetes/docs/V1CustomResourceSubresources.md +++ b/kubernetes/docs/V1CustomResourceSubresources.md @@ -1,5 +1,6 @@ # V1CustomResourceSubresources +CustomResourceSubresources defines the status and scale subresources for CustomResources. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1CustomResourceValidation.md b/kubernetes/docs/V1CustomResourceValidation.md index b3d94ff88f..a210ca0517 100644 --- a/kubernetes/docs/V1CustomResourceValidation.md +++ b/kubernetes/docs/V1CustomResourceValidation.md @@ -1,5 +1,6 @@ # V1CustomResourceValidation +CustomResourceValidation is a list of validation methods for CustomResources. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DaemonEndpoint.md b/kubernetes/docs/V1DaemonEndpoint.md index 7c5e93d9b2..74f83d675c 100644 --- a/kubernetes/docs/V1DaemonEndpoint.md +++ b/kubernetes/docs/V1DaemonEndpoint.md @@ -1,5 +1,6 @@ # V1DaemonEndpoint +DaemonEndpoint contains information about a single Daemon endpoint. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DaemonSet.md b/kubernetes/docs/V1DaemonSet.md index 401918326e..90a35cb9c2 100644 --- a/kubernetes/docs/V1DaemonSet.md +++ b/kubernetes/docs/V1DaemonSet.md @@ -1,5 +1,6 @@ # V1DaemonSet +DaemonSet represents the configuration of a daemon set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DaemonSetCondition.md b/kubernetes/docs/V1DaemonSetCondition.md index c876271c62..4ab3e29142 100644 --- a/kubernetes/docs/V1DaemonSetCondition.md +++ b/kubernetes/docs/V1DaemonSetCondition.md @@ -1,5 +1,6 @@ # V1DaemonSetCondition +DaemonSetCondition describes the state of a DaemonSet at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DaemonSetList.md b/kubernetes/docs/V1DaemonSetList.md index 49aaa66d04..f53f712492 100644 --- a/kubernetes/docs/V1DaemonSetList.md +++ b/kubernetes/docs/V1DaemonSetList.md @@ -1,5 +1,6 @@ # V1DaemonSetList +DaemonSetList is a collection of daemon sets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DaemonSetSpec.md b/kubernetes/docs/V1DaemonSetSpec.md index 8b034150bd..9db51f1665 100644 --- a/kubernetes/docs/V1DaemonSetSpec.md +++ b/kubernetes/docs/V1DaemonSetSpec.md @@ -1,5 +1,6 @@ # V1DaemonSetSpec +DaemonSetSpec is the specification of a daemon set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DaemonSetStatus.md b/kubernetes/docs/V1DaemonSetStatus.md index 690bdf2881..6e00cb1c4c 100644 --- a/kubernetes/docs/V1DaemonSetStatus.md +++ b/kubernetes/docs/V1DaemonSetStatus.md @@ -1,5 +1,6 @@ # V1DaemonSetStatus +DaemonSetStatus represents the current status of a daemon set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DaemonSetUpdateStrategy.md b/kubernetes/docs/V1DaemonSetUpdateStrategy.md index b62567fa8f..b2dffdafcb 100644 --- a/kubernetes/docs/V1DaemonSetUpdateStrategy.md +++ b/kubernetes/docs/V1DaemonSetUpdateStrategy.md @@ -1,5 +1,6 @@ # V1DaemonSetUpdateStrategy +DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DeleteOptions.md b/kubernetes/docs/V1DeleteOptions.md index 3214702511..a8ff4b14cf 100644 --- a/kubernetes/docs/V1DeleteOptions.md +++ b/kubernetes/docs/V1DeleteOptions.md @@ -1,5 +1,6 @@ # V1DeleteOptions +DeleteOptions may be provided when deleting an API object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Deployment.md b/kubernetes/docs/V1Deployment.md index 7a96e4dfb0..f01cc5590e 100644 --- a/kubernetes/docs/V1Deployment.md +++ b/kubernetes/docs/V1Deployment.md @@ -1,5 +1,6 @@ # V1Deployment +Deployment enables declarative updates for Pods and ReplicaSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DeploymentCondition.md b/kubernetes/docs/V1DeploymentCondition.md index c053ba4fe9..605846b130 100644 --- a/kubernetes/docs/V1DeploymentCondition.md +++ b/kubernetes/docs/V1DeploymentCondition.md @@ -1,5 +1,6 @@ # V1DeploymentCondition +DeploymentCondition describes the state of a deployment at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DeploymentList.md b/kubernetes/docs/V1DeploymentList.md index dabb2da439..11bf626a4b 100644 --- a/kubernetes/docs/V1DeploymentList.md +++ b/kubernetes/docs/V1DeploymentList.md @@ -1,5 +1,6 @@ # V1DeploymentList +DeploymentList is a list of Deployments. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DeploymentSpec.md b/kubernetes/docs/V1DeploymentSpec.md index efd3b64c41..46a462ec85 100644 --- a/kubernetes/docs/V1DeploymentSpec.md +++ b/kubernetes/docs/V1DeploymentSpec.md @@ -1,5 +1,6 @@ # V1DeploymentSpec +DeploymentSpec is the specification of the desired behavior of the Deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DeploymentStatus.md b/kubernetes/docs/V1DeploymentStatus.md index e04f756d52..b9ea3cf7cf 100644 --- a/kubernetes/docs/V1DeploymentStatus.md +++ b/kubernetes/docs/V1DeploymentStatus.md @@ -1,5 +1,6 @@ # V1DeploymentStatus +DeploymentStatus is the most recently observed status of the Deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DeploymentStrategy.md b/kubernetes/docs/V1DeploymentStrategy.md index d9b24ad5e9..33515869e3 100644 --- a/kubernetes/docs/V1DeploymentStrategy.md +++ b/kubernetes/docs/V1DeploymentStrategy.md @@ -1,5 +1,6 @@ # V1DeploymentStrategy +DeploymentStrategy describes how to replace existing pods with new ones. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DownwardAPIProjection.md b/kubernetes/docs/V1DownwardAPIProjection.md index 733b095b65..d624af39a6 100644 --- a/kubernetes/docs/V1DownwardAPIProjection.md +++ b/kubernetes/docs/V1DownwardAPIProjection.md @@ -1,5 +1,6 @@ # V1DownwardAPIProjection +Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DownwardAPIVolumeFile.md b/kubernetes/docs/V1DownwardAPIVolumeFile.md index 505816f088..fda354efb5 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeFile.md +++ b/kubernetes/docs/V1DownwardAPIVolumeFile.md @@ -1,5 +1,6 @@ # V1DownwardAPIVolumeFile +DownwardAPIVolumeFile represents information to create the file containing the pod field ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1DownwardAPIVolumeSource.md b/kubernetes/docs/V1DownwardAPIVolumeSource.md index 39866b186a..f0ef8e78de 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeSource.md +++ b/kubernetes/docs/V1DownwardAPIVolumeSource.md @@ -1,5 +1,6 @@ # V1DownwardAPIVolumeSource +DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EmptyDirVolumeSource.md b/kubernetes/docs/V1EmptyDirVolumeSource.md index 6fb6380cb3..a5dc8ce51c 100644 --- a/kubernetes/docs/V1EmptyDirVolumeSource.md +++ b/kubernetes/docs/V1EmptyDirVolumeSource.md @@ -1,5 +1,6 @@ # V1EmptyDirVolumeSource +Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EndpointAddress.md b/kubernetes/docs/V1EndpointAddress.md index 3b1c088116..377d8ca480 100644 --- a/kubernetes/docs/V1EndpointAddress.md +++ b/kubernetes/docs/V1EndpointAddress.md @@ -1,5 +1,6 @@ # V1EndpointAddress +EndpointAddress is a tuple that describes single IP address. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EndpointPort.md b/kubernetes/docs/V1EndpointPort.md index 716801beac..9a1a2ca020 100644 --- a/kubernetes/docs/V1EndpointPort.md +++ b/kubernetes/docs/V1EndpointPort.md @@ -1,5 +1,6 @@ # V1EndpointPort +EndpointPort is a tuple that describes a single port. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EndpointSubset.md b/kubernetes/docs/V1EndpointSubset.md index cc006a264e..6c21ecd43e 100644 --- a/kubernetes/docs/V1EndpointSubset.md +++ b/kubernetes/docs/V1EndpointSubset.md @@ -1,5 +1,6 @@ # V1EndpointSubset +EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Endpoints.md b/kubernetes/docs/V1Endpoints.md index 3e1f02a8e3..f7066d5f87 100644 --- a/kubernetes/docs/V1Endpoints.md +++ b/kubernetes/docs/V1Endpoints.md @@ -1,5 +1,6 @@ # V1Endpoints +Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md index 429d086278..fad4aa7f45 100644 --- a/kubernetes/docs/V1EndpointsList.md +++ b/kubernetes/docs/V1EndpointsList.md @@ -1,5 +1,6 @@ # V1EndpointsList +EndpointsList is a list of endpoints. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md index 2b20c7ee5b..12d91a430b 100644 --- a/kubernetes/docs/V1EnvFromSource.md +++ b/kubernetes/docs/V1EnvFromSource.md @@ -1,5 +1,6 @@ # V1EnvFromSource +EnvFromSource represents the source of a set of ConfigMaps ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EnvVar.md b/kubernetes/docs/V1EnvVar.md index df08a3629b..682ee76df9 100644 --- a/kubernetes/docs/V1EnvVar.md +++ b/kubernetes/docs/V1EnvVar.md @@ -1,5 +1,6 @@ # V1EnvVar +EnvVar represents an environment variable present in a Container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EnvVarSource.md b/kubernetes/docs/V1EnvVarSource.md index e8ed44cba6..8ab9342769 100644 --- a/kubernetes/docs/V1EnvVarSource.md +++ b/kubernetes/docs/V1EnvVarSource.md @@ -1,5 +1,6 @@ # V1EnvVarSource +EnvVarSource represents a source for the value of an EnvVar. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EphemeralContainer.md b/kubernetes/docs/V1EphemeralContainer.md index 7fe52fae71..c16f786187 100644 --- a/kubernetes/docs/V1EphemeralContainer.md +++ b/kubernetes/docs/V1EphemeralContainer.md @@ -1,5 +1,6 @@ # V1EphemeralContainer +An EphemeralContainer is a container that may be added temporarily to an existing pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a pod is removed or restarted. If an ephemeral container causes a pod to exceed its resource allocation, the pod may be evicted. Ephemeral containers may not be added by directly updating the pod spec. They must be added via the pod's ephemeralcontainers subresource, and they will appear in the pod spec once added. This is an alpha feature enabled by the EphemeralContainers feature flag. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Event.md b/kubernetes/docs/V1Event.md index d4c96b035d..d96bea60ba 100644 --- a/kubernetes/docs/V1Event.md +++ b/kubernetes/docs/V1Event.md @@ -1,5 +1,6 @@ # V1Event +Event is a report of an event somewhere in the cluster. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EventList.md b/kubernetes/docs/V1EventList.md index 0d95df2b32..bca86e22dd 100644 --- a/kubernetes/docs/V1EventList.md +++ b/kubernetes/docs/V1EventList.md @@ -1,5 +1,6 @@ # V1EventList +EventList is a list of events. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EventSeries.md b/kubernetes/docs/V1EventSeries.md index 92590ce051..d7fe2fe42b 100644 --- a/kubernetes/docs/V1EventSeries.md +++ b/kubernetes/docs/V1EventSeries.md @@ -1,5 +1,6 @@ # V1EventSeries +EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1EventSource.md b/kubernetes/docs/V1EventSource.md index e3841ee20e..4c2c608d76 100644 --- a/kubernetes/docs/V1EventSource.md +++ b/kubernetes/docs/V1EventSource.md @@ -1,5 +1,6 @@ # V1EventSource +EventSource contains information for an event. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ExecAction.md b/kubernetes/docs/V1ExecAction.md index ea405f06bf..6bd029e20b 100644 --- a/kubernetes/docs/V1ExecAction.md +++ b/kubernetes/docs/V1ExecAction.md @@ -1,5 +1,6 @@ # V1ExecAction +ExecAction describes a \"run in container\" action. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ExternalDocumentation.md b/kubernetes/docs/V1ExternalDocumentation.md index 8d7f3bebe4..a91b57dce8 100644 --- a/kubernetes/docs/V1ExternalDocumentation.md +++ b/kubernetes/docs/V1ExternalDocumentation.md @@ -1,5 +1,6 @@ # V1ExternalDocumentation +ExternalDocumentation allows referencing an external resource for extended documentation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1FCVolumeSource.md b/kubernetes/docs/V1FCVolumeSource.md index 14d950dbda..5e81a96b55 100644 --- a/kubernetes/docs/V1FCVolumeSource.md +++ b/kubernetes/docs/V1FCVolumeSource.md @@ -1,5 +1,6 @@ # V1FCVolumeSource +Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1FlexPersistentVolumeSource.md b/kubernetes/docs/V1FlexPersistentVolumeSource.md index 648f33a432..a7430e51a4 100644 --- a/kubernetes/docs/V1FlexPersistentVolumeSource.md +++ b/kubernetes/docs/V1FlexPersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1FlexPersistentVolumeSource +FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1FlexVolumeSource.md b/kubernetes/docs/V1FlexVolumeSource.md index f34ba8d41a..d0d2210cb7 100644 --- a/kubernetes/docs/V1FlexVolumeSource.md +++ b/kubernetes/docs/V1FlexVolumeSource.md @@ -1,5 +1,6 @@ # V1FlexVolumeSource +FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1FlockerVolumeSource.md b/kubernetes/docs/V1FlockerVolumeSource.md index 7af9a9e77c..8f09442a6d 100644 --- a/kubernetes/docs/V1FlockerVolumeSource.md +++ b/kubernetes/docs/V1FlockerVolumeSource.md @@ -1,5 +1,6 @@ # V1FlockerVolumeSource +Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md b/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md index a15378a839..5f35df50ec 100644 --- a/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md +++ b/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md @@ -1,5 +1,6 @@ # V1GCEPersistentDiskVolumeSource +Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1GitRepoVolumeSource.md b/kubernetes/docs/V1GitRepoVolumeSource.md index 9932bca14d..ea6c21c70f 100644 --- a/kubernetes/docs/V1GitRepoVolumeSource.md +++ b/kubernetes/docs/V1GitRepoVolumeSource.md @@ -1,5 +1,6 @@ # V1GitRepoVolumeSource +Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md b/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md index b98046070d..d436924e7d 100644 --- a/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md +++ b/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1GlusterfsPersistentVolumeSource +Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1GlusterfsVolumeSource.md b/kubernetes/docs/V1GlusterfsVolumeSource.md index 7120f1bd33..2d159c9a95 100644 --- a/kubernetes/docs/V1GlusterfsVolumeSource.md +++ b/kubernetes/docs/V1GlusterfsVolumeSource.md @@ -1,5 +1,6 @@ # V1GlusterfsVolumeSource +Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1GroupVersionForDiscovery.md b/kubernetes/docs/V1GroupVersionForDiscovery.md index c163d7a973..3354d4429d 100644 --- a/kubernetes/docs/V1GroupVersionForDiscovery.md +++ b/kubernetes/docs/V1GroupVersionForDiscovery.md @@ -1,5 +1,6 @@ # V1GroupVersionForDiscovery +GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1HTTPGetAction.md b/kubernetes/docs/V1HTTPGetAction.md index b79018736a..dc0f0be8f8 100644 --- a/kubernetes/docs/V1HTTPGetAction.md +++ b/kubernetes/docs/V1HTTPGetAction.md @@ -1,5 +1,6 @@ # V1HTTPGetAction +HTTPGetAction describes an action based on HTTP Get requests. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1HTTPHeader.md b/kubernetes/docs/V1HTTPHeader.md index 1950451f1c..cc9963b22b 100644 --- a/kubernetes/docs/V1HTTPHeader.md +++ b/kubernetes/docs/V1HTTPHeader.md @@ -1,5 +1,6 @@ # V1HTTPHeader +HTTPHeader describes a custom header to be used in HTTP probes ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Handler.md b/kubernetes/docs/V1Handler.md index 1f294eb43a..b63db86a76 100644 --- a/kubernetes/docs/V1Handler.md +++ b/kubernetes/docs/V1Handler.md @@ -1,5 +1,6 @@ # V1Handler +Handler defines a specific action that should be taken ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1HorizontalPodAutoscaler.md b/kubernetes/docs/V1HorizontalPodAutoscaler.md index 7b5d7a18ab..823348cb31 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V1HorizontalPodAutoscaler.md @@ -1,5 +1,6 @@ # V1HorizontalPodAutoscaler +configuration of a horizontal pod autoscaler. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerList.md b/kubernetes/docs/V1HorizontalPodAutoscalerList.md index 078d10932b..1e3367adb6 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerList.md @@ -1,5 +1,6 @@ # V1HorizontalPodAutoscalerList +list of horizontal pod autoscaler objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md index 11679a80ff..dba3e7f2b3 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md @@ -1,5 +1,6 @@ # V1HorizontalPodAutoscalerSpec +specification of a horizontal pod autoscaler. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md index 0f9e427252..e81b37fb7c 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md @@ -1,5 +1,6 @@ # V1HorizontalPodAutoscalerStatus +current status of a horizontal pod autoscaler ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1HostAlias.md b/kubernetes/docs/V1HostAlias.md index a99dbbd24b..0cbaa36d29 100644 --- a/kubernetes/docs/V1HostAlias.md +++ b/kubernetes/docs/V1HostAlias.md @@ -1,5 +1,6 @@ # V1HostAlias +HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1HostPathVolumeSource.md b/kubernetes/docs/V1HostPathVolumeSource.md index 4debf1c454..983c7ca130 100644 --- a/kubernetes/docs/V1HostPathVolumeSource.md +++ b/kubernetes/docs/V1HostPathVolumeSource.md @@ -1,5 +1,6 @@ # V1HostPathVolumeSource +Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1IPBlock.md b/kubernetes/docs/V1IPBlock.md index 2f3013f694..d40d6584f1 100644 --- a/kubernetes/docs/V1IPBlock.md +++ b/kubernetes/docs/V1IPBlock.md @@ -1,5 +1,6 @@ # V1IPBlock +IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ISCSIPersistentVolumeSource.md b/kubernetes/docs/V1ISCSIPersistentVolumeSource.md index c9922aa0b4..aa677ca250 100644 --- a/kubernetes/docs/V1ISCSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1ISCSIPersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1ISCSIPersistentVolumeSource +ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ISCSIVolumeSource.md b/kubernetes/docs/V1ISCSIVolumeSource.md index 307416c22f..8dbd7846dd 100644 --- a/kubernetes/docs/V1ISCSIVolumeSource.md +++ b/kubernetes/docs/V1ISCSIVolumeSource.md @@ -1,5 +1,6 @@ # V1ISCSIVolumeSource +Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1JSONSchemaProps.md b/kubernetes/docs/V1JSONSchemaProps.md index c7891d5eea..37cd75b579 100644 --- a/kubernetes/docs/V1JSONSchemaProps.md +++ b/kubernetes/docs/V1JSONSchemaProps.md @@ -1,5 +1,6 @@ # V1JSONSchemaProps +JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Job.md b/kubernetes/docs/V1Job.md index a65d8ce428..c66ba94df4 100644 --- a/kubernetes/docs/V1Job.md +++ b/kubernetes/docs/V1Job.md @@ -1,5 +1,6 @@ # V1Job +Job represents the configuration of a single job. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1JobCondition.md b/kubernetes/docs/V1JobCondition.md index 8b97754cc9..be97cbdeca 100644 --- a/kubernetes/docs/V1JobCondition.md +++ b/kubernetes/docs/V1JobCondition.md @@ -1,5 +1,6 @@ # V1JobCondition +JobCondition describes current state of a job. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1JobList.md b/kubernetes/docs/V1JobList.md index f86788323f..c45e293fee 100644 --- a/kubernetes/docs/V1JobList.md +++ b/kubernetes/docs/V1JobList.md @@ -1,5 +1,6 @@ # V1JobList +JobList is a collection of jobs. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index f0ef51f588..fd3cab69ea 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -1,5 +1,6 @@ # V1JobSpec +JobSpec describes how the job execution will look like. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index 1c1a0a9f16..863da8af85 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -1,5 +1,6 @@ # V1JobStatus +JobStatus represents the current state of a Job. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1KeyToPath.md b/kubernetes/docs/V1KeyToPath.md index 0affd944a3..883512b22d 100644 --- a/kubernetes/docs/V1KeyToPath.md +++ b/kubernetes/docs/V1KeyToPath.md @@ -1,5 +1,6 @@ # V1KeyToPath +Maps a string key to a path within a volume. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LabelSelector.md b/kubernetes/docs/V1LabelSelector.md index bb3c52d257..64515ca74d 100644 --- a/kubernetes/docs/V1LabelSelector.md +++ b/kubernetes/docs/V1LabelSelector.md @@ -1,5 +1,6 @@ # V1LabelSelector +A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LabelSelectorRequirement.md b/kubernetes/docs/V1LabelSelectorRequirement.md index 1fc8ad3224..5f96e0aef7 100644 --- a/kubernetes/docs/V1LabelSelectorRequirement.md +++ b/kubernetes/docs/V1LabelSelectorRequirement.md @@ -1,5 +1,6 @@ # V1LabelSelectorRequirement +A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Lease.md b/kubernetes/docs/V1Lease.md index df97f524cf..2c4276ec7b 100644 --- a/kubernetes/docs/V1Lease.md +++ b/kubernetes/docs/V1Lease.md @@ -1,5 +1,6 @@ # V1Lease +Lease defines a lease concept. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LeaseList.md b/kubernetes/docs/V1LeaseList.md index 67659e411d..ccb4b2ad30 100644 --- a/kubernetes/docs/V1LeaseList.md +++ b/kubernetes/docs/V1LeaseList.md @@ -1,5 +1,6 @@ # V1LeaseList +LeaseList is a list of Lease objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LeaseSpec.md b/kubernetes/docs/V1LeaseSpec.md index ff7a6c3579..20f562702f 100644 --- a/kubernetes/docs/V1LeaseSpec.md +++ b/kubernetes/docs/V1LeaseSpec.md @@ -1,5 +1,6 @@ # V1LeaseSpec +LeaseSpec is a specification of a Lease. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Lifecycle.md b/kubernetes/docs/V1Lifecycle.md index e089f75256..caf3dfdf37 100644 --- a/kubernetes/docs/V1Lifecycle.md +++ b/kubernetes/docs/V1Lifecycle.md @@ -1,5 +1,6 @@ # V1Lifecycle +Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LimitRange.md b/kubernetes/docs/V1LimitRange.md index 2e3a46d52e..d5d8a52b2f 100644 --- a/kubernetes/docs/V1LimitRange.md +++ b/kubernetes/docs/V1LimitRange.md @@ -1,5 +1,6 @@ # V1LimitRange +LimitRange sets resource usage limits for each kind of resource in a Namespace. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LimitRangeItem.md b/kubernetes/docs/V1LimitRangeItem.md index 0e65c56226..3859d300b7 100644 --- a/kubernetes/docs/V1LimitRangeItem.md +++ b/kubernetes/docs/V1LimitRangeItem.md @@ -1,5 +1,6 @@ # V1LimitRangeItem +LimitRangeItem defines a min/max usage limit for any resource that matches on kind. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LimitRangeList.md b/kubernetes/docs/V1LimitRangeList.md index 655a38dbe2..ae974f8ac2 100644 --- a/kubernetes/docs/V1LimitRangeList.md +++ b/kubernetes/docs/V1LimitRangeList.md @@ -1,5 +1,6 @@ # V1LimitRangeList +LimitRangeList is a list of LimitRange items. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LimitRangeSpec.md b/kubernetes/docs/V1LimitRangeSpec.md index 315b732d7f..aa7416d8c5 100644 --- a/kubernetes/docs/V1LimitRangeSpec.md +++ b/kubernetes/docs/V1LimitRangeSpec.md @@ -1,5 +1,6 @@ # V1LimitRangeSpec +LimitRangeSpec defines a min/max usage limit for resources that match on kind. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ListMeta.md b/kubernetes/docs/V1ListMeta.md index 28d19f8242..b01518c006 100644 --- a/kubernetes/docs/V1ListMeta.md +++ b/kubernetes/docs/V1ListMeta.md @@ -1,5 +1,6 @@ # V1ListMeta +ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LoadBalancerIngress.md b/kubernetes/docs/V1LoadBalancerIngress.md index 42b5d5ea3f..7b641c5554 100644 --- a/kubernetes/docs/V1LoadBalancerIngress.md +++ b/kubernetes/docs/V1LoadBalancerIngress.md @@ -1,5 +1,6 @@ # V1LoadBalancerIngress +LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LoadBalancerStatus.md b/kubernetes/docs/V1LoadBalancerStatus.md index c35acacc74..1790255bb6 100644 --- a/kubernetes/docs/V1LoadBalancerStatus.md +++ b/kubernetes/docs/V1LoadBalancerStatus.md @@ -1,5 +1,6 @@ # V1LoadBalancerStatus +LoadBalancerStatus represents the status of a load-balancer. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LocalObjectReference.md b/kubernetes/docs/V1LocalObjectReference.md index 0a5910af60..d8a7310c47 100644 --- a/kubernetes/docs/V1LocalObjectReference.md +++ b/kubernetes/docs/V1LocalObjectReference.md @@ -1,5 +1,6 @@ # V1LocalObjectReference +LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LocalSubjectAccessReview.md b/kubernetes/docs/V1LocalSubjectAccessReview.md index 2787eb3fe8..51fe5a94d5 100644 --- a/kubernetes/docs/V1LocalSubjectAccessReview.md +++ b/kubernetes/docs/V1LocalSubjectAccessReview.md @@ -1,5 +1,6 @@ # V1LocalSubjectAccessReview +LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1LocalVolumeSource.md b/kubernetes/docs/V1LocalVolumeSource.md index cc1de9d2e0..623990b028 100644 --- a/kubernetes/docs/V1LocalVolumeSource.md +++ b/kubernetes/docs/V1LocalVolumeSource.md @@ -1,5 +1,6 @@ # V1LocalVolumeSource +Local represents directly-attached storage with node affinity (Beta feature) ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ManagedFieldsEntry.md b/kubernetes/docs/V1ManagedFieldsEntry.md index 814894cacf..8939e45f47 100644 --- a/kubernetes/docs/V1ManagedFieldsEntry.md +++ b/kubernetes/docs/V1ManagedFieldsEntry.md @@ -1,5 +1,6 @@ # V1ManagedFieldsEntry +ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1MutatingWebhook.md b/kubernetes/docs/V1MutatingWebhook.md index c585856f79..9207e8ff7a 100644 --- a/kubernetes/docs/V1MutatingWebhook.md +++ b/kubernetes/docs/V1MutatingWebhook.md @@ -1,5 +1,6 @@ # V1MutatingWebhook +MutatingWebhook describes an admission webhook and the resources and operations it applies to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1MutatingWebhookConfiguration.md b/kubernetes/docs/V1MutatingWebhookConfiguration.md index 84289f5bf0..8ebad29631 100644 --- a/kubernetes/docs/V1MutatingWebhookConfiguration.md +++ b/kubernetes/docs/V1MutatingWebhookConfiguration.md @@ -1,5 +1,6 @@ # V1MutatingWebhookConfiguration +MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1MutatingWebhookConfigurationList.md b/kubernetes/docs/V1MutatingWebhookConfigurationList.md index b512cd1500..c1dd83693f 100644 --- a/kubernetes/docs/V1MutatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1MutatingWebhookConfigurationList.md @@ -1,5 +1,6 @@ # V1MutatingWebhookConfigurationList +MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NFSVolumeSource.md b/kubernetes/docs/V1NFSVolumeSource.md index f16fdaff00..e8b14da3de 100644 --- a/kubernetes/docs/V1NFSVolumeSource.md +++ b/kubernetes/docs/V1NFSVolumeSource.md @@ -1,5 +1,6 @@ # V1NFSVolumeSource +Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Namespace.md b/kubernetes/docs/V1Namespace.md index 9d4a90cb45..5c364313e8 100644 --- a/kubernetes/docs/V1Namespace.md +++ b/kubernetes/docs/V1Namespace.md @@ -1,5 +1,6 @@ # V1Namespace +Namespace provides a scope for Names. Use of multiple namespaces is optional. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NamespaceCondition.md b/kubernetes/docs/V1NamespaceCondition.md index c9ce99c9ae..4f4efb603e 100644 --- a/kubernetes/docs/V1NamespaceCondition.md +++ b/kubernetes/docs/V1NamespaceCondition.md @@ -1,5 +1,6 @@ # V1NamespaceCondition +NamespaceCondition contains details about state of namespace. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NamespaceList.md b/kubernetes/docs/V1NamespaceList.md index b002a2cd35..c222c4782b 100644 --- a/kubernetes/docs/V1NamespaceList.md +++ b/kubernetes/docs/V1NamespaceList.md @@ -1,5 +1,6 @@ # V1NamespaceList +NamespaceList is a list of Namespaces. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NamespaceSpec.md b/kubernetes/docs/V1NamespaceSpec.md index 4d7db60d80..249ad5f83b 100644 --- a/kubernetes/docs/V1NamespaceSpec.md +++ b/kubernetes/docs/V1NamespaceSpec.md @@ -1,5 +1,6 @@ # V1NamespaceSpec +NamespaceSpec describes the attributes on a Namespace. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NamespaceStatus.md b/kubernetes/docs/V1NamespaceStatus.md index 7595b7b607..6a61902911 100644 --- a/kubernetes/docs/V1NamespaceStatus.md +++ b/kubernetes/docs/V1NamespaceStatus.md @@ -1,5 +1,6 @@ # V1NamespaceStatus +NamespaceStatus is information about the current status of a Namespace. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NetworkPolicy.md b/kubernetes/docs/V1NetworkPolicy.md index e776663171..6355676eba 100644 --- a/kubernetes/docs/V1NetworkPolicy.md +++ b/kubernetes/docs/V1NetworkPolicy.md @@ -1,5 +1,6 @@ # V1NetworkPolicy +NetworkPolicy describes what network traffic is allowed for a set of Pods ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NetworkPolicyEgressRule.md b/kubernetes/docs/V1NetworkPolicyEgressRule.md index 2d9420d9f2..dfa8548335 100644 --- a/kubernetes/docs/V1NetworkPolicyEgressRule.md +++ b/kubernetes/docs/V1NetworkPolicyEgressRule.md @@ -1,5 +1,6 @@ # V1NetworkPolicyEgressRule +NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NetworkPolicyIngressRule.md b/kubernetes/docs/V1NetworkPolicyIngressRule.md index a82bb8ed9f..2dbb876f07 100644 --- a/kubernetes/docs/V1NetworkPolicyIngressRule.md +++ b/kubernetes/docs/V1NetworkPolicyIngressRule.md @@ -1,5 +1,6 @@ # V1NetworkPolicyIngressRule +NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NetworkPolicyList.md b/kubernetes/docs/V1NetworkPolicyList.md index db21bd01b0..aabfa8cb0d 100644 --- a/kubernetes/docs/V1NetworkPolicyList.md +++ b/kubernetes/docs/V1NetworkPolicyList.md @@ -1,5 +1,6 @@ # V1NetworkPolicyList +NetworkPolicyList is a list of NetworkPolicy objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NetworkPolicyPeer.md b/kubernetes/docs/V1NetworkPolicyPeer.md index 0e9781352e..cca343c3d4 100644 --- a/kubernetes/docs/V1NetworkPolicyPeer.md +++ b/kubernetes/docs/V1NetworkPolicyPeer.md @@ -1,5 +1,6 @@ # V1NetworkPolicyPeer +NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NetworkPolicyPort.md b/kubernetes/docs/V1NetworkPolicyPort.md index 776b2392cf..57fc1b03de 100644 --- a/kubernetes/docs/V1NetworkPolicyPort.md +++ b/kubernetes/docs/V1NetworkPolicyPort.md @@ -1,5 +1,6 @@ # V1NetworkPolicyPort +NetworkPolicyPort describes a port to allow traffic on ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NetworkPolicySpec.md b/kubernetes/docs/V1NetworkPolicySpec.md index 6f79ffb67f..31420ac898 100644 --- a/kubernetes/docs/V1NetworkPolicySpec.md +++ b/kubernetes/docs/V1NetworkPolicySpec.md @@ -1,5 +1,6 @@ # V1NetworkPolicySpec +NetworkPolicySpec provides the specification of a NetworkPolicy ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Node.md b/kubernetes/docs/V1Node.md index 9c3434f784..47f225180c 100644 --- a/kubernetes/docs/V1Node.md +++ b/kubernetes/docs/V1Node.md @@ -1,5 +1,6 @@ # V1Node +Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeAddress.md b/kubernetes/docs/V1NodeAddress.md index 07728d7e5a..60305d1eb2 100644 --- a/kubernetes/docs/V1NodeAddress.md +++ b/kubernetes/docs/V1NodeAddress.md @@ -1,5 +1,6 @@ # V1NodeAddress +NodeAddress contains information for the node's address. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeAffinity.md b/kubernetes/docs/V1NodeAffinity.md index 4227e26f07..dfdbaa5af8 100644 --- a/kubernetes/docs/V1NodeAffinity.md +++ b/kubernetes/docs/V1NodeAffinity.md @@ -1,5 +1,6 @@ # V1NodeAffinity +Node affinity is a group of node affinity scheduling rules. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeCondition.md b/kubernetes/docs/V1NodeCondition.md index e61118d049..a8119b8c8c 100644 --- a/kubernetes/docs/V1NodeCondition.md +++ b/kubernetes/docs/V1NodeCondition.md @@ -1,5 +1,6 @@ # V1NodeCondition +NodeCondition contains condition information for a node. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeConfigSource.md b/kubernetes/docs/V1NodeConfigSource.md index d41324fb35..ae3844af3d 100644 --- a/kubernetes/docs/V1NodeConfigSource.md +++ b/kubernetes/docs/V1NodeConfigSource.md @@ -1,5 +1,6 @@ # V1NodeConfigSource +NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeConfigStatus.md b/kubernetes/docs/V1NodeConfigStatus.md index d5914b741d..0fd4ca7766 100644 --- a/kubernetes/docs/V1NodeConfigStatus.md +++ b/kubernetes/docs/V1NodeConfigStatus.md @@ -1,5 +1,6 @@ # V1NodeConfigStatus +NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeDaemonEndpoints.md b/kubernetes/docs/V1NodeDaemonEndpoints.md index 9a3fb7744a..cfe870c2ab 100644 --- a/kubernetes/docs/V1NodeDaemonEndpoints.md +++ b/kubernetes/docs/V1NodeDaemonEndpoints.md @@ -1,5 +1,6 @@ # V1NodeDaemonEndpoints +NodeDaemonEndpoints lists ports opened by daemons running on the Node. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeList.md b/kubernetes/docs/V1NodeList.md index 0e9c025a1e..bb8715109c 100644 --- a/kubernetes/docs/V1NodeList.md +++ b/kubernetes/docs/V1NodeList.md @@ -1,5 +1,6 @@ # V1NodeList +NodeList is the whole list of all Nodes which have been registered with master. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeSelector.md b/kubernetes/docs/V1NodeSelector.md index e9af80870b..8e73dc6301 100644 --- a/kubernetes/docs/V1NodeSelector.md +++ b/kubernetes/docs/V1NodeSelector.md @@ -1,5 +1,6 @@ # V1NodeSelector +A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeSelectorRequirement.md b/kubernetes/docs/V1NodeSelectorRequirement.md index 0495e44897..b0a33c508b 100644 --- a/kubernetes/docs/V1NodeSelectorRequirement.md +++ b/kubernetes/docs/V1NodeSelectorRequirement.md @@ -1,5 +1,6 @@ # V1NodeSelectorRequirement +A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeSelectorTerm.md b/kubernetes/docs/V1NodeSelectorTerm.md index 894ff299d3..8fede1c8cb 100644 --- a/kubernetes/docs/V1NodeSelectorTerm.md +++ b/kubernetes/docs/V1NodeSelectorTerm.md @@ -1,5 +1,6 @@ # V1NodeSelectorTerm +A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeSpec.md b/kubernetes/docs/V1NodeSpec.md index 2651807cc1..4b37a60315 100644 --- a/kubernetes/docs/V1NodeSpec.md +++ b/kubernetes/docs/V1NodeSpec.md @@ -1,5 +1,6 @@ # V1NodeSpec +NodeSpec describes the attributes that a node is created with. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeStatus.md b/kubernetes/docs/V1NodeStatus.md index d37c774e8b..6e9f60b614 100644 --- a/kubernetes/docs/V1NodeStatus.md +++ b/kubernetes/docs/V1NodeStatus.md @@ -1,5 +1,6 @@ # V1NodeStatus +NodeStatus is information about the current status of a node. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NodeSystemInfo.md b/kubernetes/docs/V1NodeSystemInfo.md index 92496b44a5..8ab655520f 100644 --- a/kubernetes/docs/V1NodeSystemInfo.md +++ b/kubernetes/docs/V1NodeSystemInfo.md @@ -1,5 +1,6 @@ # V1NodeSystemInfo +NodeSystemInfo is a set of ids/uuids to uniquely identify the node. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NonResourceAttributes.md b/kubernetes/docs/V1NonResourceAttributes.md index 95135d5790..472d34b2a7 100644 --- a/kubernetes/docs/V1NonResourceAttributes.md +++ b/kubernetes/docs/V1NonResourceAttributes.md @@ -1,5 +1,6 @@ # V1NonResourceAttributes +NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1NonResourceRule.md b/kubernetes/docs/V1NonResourceRule.md index cd38cdd5d8..92f3b1d8dc 100644 --- a/kubernetes/docs/V1NonResourceRule.md +++ b/kubernetes/docs/V1NonResourceRule.md @@ -1,5 +1,6 @@ # V1NonResourceRule +NonResourceRule holds information that describes a rule for the non-resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ObjectFieldSelector.md b/kubernetes/docs/V1ObjectFieldSelector.md index e63cd58254..d3a422373d 100644 --- a/kubernetes/docs/V1ObjectFieldSelector.md +++ b/kubernetes/docs/V1ObjectFieldSelector.md @@ -1,5 +1,6 @@ # V1ObjectFieldSelector +ObjectFieldSelector selects an APIVersioned field of an object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md index 8234ea7362..b76fe8ece0 100644 --- a/kubernetes/docs/V1ObjectMeta.md +++ b/kubernetes/docs/V1ObjectMeta.md @@ -1,5 +1,6 @@ # V1ObjectMeta +ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ObjectReference.md b/kubernetes/docs/V1ObjectReference.md index 8f60da0894..d4564d8b11 100644 --- a/kubernetes/docs/V1ObjectReference.md +++ b/kubernetes/docs/V1ObjectReference.md @@ -1,5 +1,6 @@ # V1ObjectReference +ObjectReference contains enough information to let you inspect or modify the referred object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1OwnerReference.md b/kubernetes/docs/V1OwnerReference.md index 8c5ad154e7..917a44face 100644 --- a/kubernetes/docs/V1OwnerReference.md +++ b/kubernetes/docs/V1OwnerReference.md @@ -1,5 +1,6 @@ # V1OwnerReference +OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolume.md b/kubernetes/docs/V1PersistentVolume.md index 39be0d86a1..3699781648 100644 --- a/kubernetes/docs/V1PersistentVolume.md +++ b/kubernetes/docs/V1PersistentVolume.md @@ -1,5 +1,6 @@ # V1PersistentVolume +PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolumeClaim.md b/kubernetes/docs/V1PersistentVolumeClaim.md index d856de39b5..6a96f4d029 100644 --- a/kubernetes/docs/V1PersistentVolumeClaim.md +++ b/kubernetes/docs/V1PersistentVolumeClaim.md @@ -1,5 +1,6 @@ # V1PersistentVolumeClaim +PersistentVolumeClaim is a user's request for and claim to a persistent volume ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolumeClaimCondition.md b/kubernetes/docs/V1PersistentVolumeClaimCondition.md index 0003962e20..f7cda2555c 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimCondition.md +++ b/kubernetes/docs/V1PersistentVolumeClaimCondition.md @@ -1,5 +1,6 @@ # V1PersistentVolumeClaimCondition +PersistentVolumeClaimCondition contails details about state of pvc ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolumeClaimList.md b/kubernetes/docs/V1PersistentVolumeClaimList.md index 26f329f3f1..403ca58b60 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimList.md +++ b/kubernetes/docs/V1PersistentVolumeClaimList.md @@ -1,5 +1,6 @@ # V1PersistentVolumeClaimList +PersistentVolumeClaimList is a list of PersistentVolumeClaim items. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md index 89d7f86ad6..8c9a2f18c1 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -1,5 +1,6 @@ # V1PersistentVolumeClaimSpec +PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolumeClaimStatus.md b/kubernetes/docs/V1PersistentVolumeClaimStatus.md index 06faf22e2a..a816762a16 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -1,5 +1,6 @@ # V1PersistentVolumeClaimStatus +PersistentVolumeClaimStatus is the current status of a persistent volume claim. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md b/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md index f0b3f4c6de..98250b850e 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md +++ b/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md @@ -1,5 +1,6 @@ # V1PersistentVolumeClaimVolumeSource +PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolumeList.md b/kubernetes/docs/V1PersistentVolumeList.md index 254a96361c..0af3953bdd 100644 --- a/kubernetes/docs/V1PersistentVolumeList.md +++ b/kubernetes/docs/V1PersistentVolumeList.md @@ -1,5 +1,6 @@ # V1PersistentVolumeList +PersistentVolumeList is a list of PersistentVolume items. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md index 125d1cdf98..b20ec9e5c3 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -1,5 +1,6 @@ # V1PersistentVolumeSpec +PersistentVolumeSpec is the specification of a persistent volume. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PersistentVolumeStatus.md b/kubernetes/docs/V1PersistentVolumeStatus.md index c690ecf0bf..b71e240f85 100644 --- a/kubernetes/docs/V1PersistentVolumeStatus.md +++ b/kubernetes/docs/V1PersistentVolumeStatus.md @@ -1,5 +1,6 @@ # V1PersistentVolumeStatus +PersistentVolumeStatus is the current status of a persistent volume. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md b/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md index 9442165cf2..d0104a404b 100644 --- a/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md +++ b/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md @@ -1,5 +1,6 @@ # V1PhotonPersistentDiskVolumeSource +Represents a Photon Controller persistent disk resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Pod.md b/kubernetes/docs/V1Pod.md index 163bd23db0..e3efa5b3f5 100644 --- a/kubernetes/docs/V1Pod.md +++ b/kubernetes/docs/V1Pod.md @@ -1,5 +1,6 @@ # V1Pod +Pod is a collection of containers that can run on a host. This resource is created by kubernetes.clients and scheduled onto hosts. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodAffinity.md b/kubernetes/docs/V1PodAffinity.md index 93672b73cc..1bffbc1d70 100644 --- a/kubernetes/docs/V1PodAffinity.md +++ b/kubernetes/docs/V1PodAffinity.md @@ -1,5 +1,6 @@ # V1PodAffinity +Pod affinity is a group of inter pod affinity scheduling rules. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodAffinityTerm.md b/kubernetes/docs/V1PodAffinityTerm.md index a4aa00ee14..6ed69f425f 100644 --- a/kubernetes/docs/V1PodAffinityTerm.md +++ b/kubernetes/docs/V1PodAffinityTerm.md @@ -1,5 +1,6 @@ # V1PodAffinityTerm +Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodAntiAffinity.md b/kubernetes/docs/V1PodAntiAffinity.md index 2377cf4a76..2664c7b4d4 100644 --- a/kubernetes/docs/V1PodAntiAffinity.md +++ b/kubernetes/docs/V1PodAntiAffinity.md @@ -1,5 +1,6 @@ # V1PodAntiAffinity +Pod anti affinity is a group of inter pod anti affinity scheduling rules. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index 3232acd454..8a15f09452 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -1,5 +1,6 @@ # V1PodCondition +PodCondition contains details for the current condition of this pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodDNSConfig.md b/kubernetes/docs/V1PodDNSConfig.md index c3dabae328..43d1bd112d 100644 --- a/kubernetes/docs/V1PodDNSConfig.md +++ b/kubernetes/docs/V1PodDNSConfig.md @@ -1,5 +1,6 @@ # V1PodDNSConfig +PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodDNSConfigOption.md b/kubernetes/docs/V1PodDNSConfigOption.md index f6d6114fa2..001e4084fe 100644 --- a/kubernetes/docs/V1PodDNSConfigOption.md +++ b/kubernetes/docs/V1PodDNSConfigOption.md @@ -1,5 +1,6 @@ # V1PodDNSConfigOption +PodDNSConfigOption defines DNS resolver options of a pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodIP.md b/kubernetes/docs/V1PodIP.md index b077df730e..721dfc2f8e 100644 --- a/kubernetes/docs/V1PodIP.md +++ b/kubernetes/docs/V1PodIP.md @@ -1,5 +1,6 @@ # V1PodIP +IP address information for entries in the (plural) PodIPs field. Each entry includes: IP: An IP address allocated to the pod. Routable at least within the cluster. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodList.md b/kubernetes/docs/V1PodList.md index 04aa4a9843..51142e198e 100644 --- a/kubernetes/docs/V1PodList.md +++ b/kubernetes/docs/V1PodList.md @@ -1,5 +1,6 @@ # V1PodList +PodList is a list of Pods. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodReadinessGate.md b/kubernetes/docs/V1PodReadinessGate.md index bb9371a441..24457a59d3 100644 --- a/kubernetes/docs/V1PodReadinessGate.md +++ b/kubernetes/docs/V1PodReadinessGate.md @@ -1,5 +1,6 @@ # V1PodReadinessGate +PodReadinessGate contains the reference to a pod condition ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodSecurityContext.md b/kubernetes/docs/V1PodSecurityContext.md index 5ff9ea0306..91e0e4e366 100644 --- a/kubernetes/docs/V1PodSecurityContext.md +++ b/kubernetes/docs/V1PodSecurityContext.md @@ -1,5 +1,6 @@ # V1PodSecurityContext +PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index 28b92e0a2a..63916ebab1 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -1,5 +1,6 @@ # V1PodSpec +PodSpec is a description of a pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index e40957a257..3f53a27a0c 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -1,5 +1,6 @@ # V1PodStatus +PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodTemplate.md b/kubernetes/docs/V1PodTemplate.md index 8ed3033422..e314a4488d 100644 --- a/kubernetes/docs/V1PodTemplate.md +++ b/kubernetes/docs/V1PodTemplate.md @@ -1,5 +1,6 @@ # V1PodTemplate +PodTemplate describes a template for creating copies of a predefined pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodTemplateList.md b/kubernetes/docs/V1PodTemplateList.md index f283ce68f0..a23235f03b 100644 --- a/kubernetes/docs/V1PodTemplateList.md +++ b/kubernetes/docs/V1PodTemplateList.md @@ -1,5 +1,6 @@ # V1PodTemplateList +PodTemplateList is a list of PodTemplates. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PodTemplateSpec.md b/kubernetes/docs/V1PodTemplateSpec.md index 8c730213fe..0e94a5aadd 100644 --- a/kubernetes/docs/V1PodTemplateSpec.md +++ b/kubernetes/docs/V1PodTemplateSpec.md @@ -1,5 +1,6 @@ # V1PodTemplateSpec +PodTemplateSpec describes the data a pod should have when created from a template ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PolicyRule.md b/kubernetes/docs/V1PolicyRule.md index 0c3e1a99cd..8f5e6268e9 100644 --- a/kubernetes/docs/V1PolicyRule.md +++ b/kubernetes/docs/V1PolicyRule.md @@ -1,5 +1,6 @@ # V1PolicyRule +PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PortworxVolumeSource.md b/kubernetes/docs/V1PortworxVolumeSource.md index fb86663b30..675010d829 100644 --- a/kubernetes/docs/V1PortworxVolumeSource.md +++ b/kubernetes/docs/V1PortworxVolumeSource.md @@ -1,5 +1,6 @@ # V1PortworxVolumeSource +PortworxVolumeSource represents a Portworx volume resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Preconditions.md b/kubernetes/docs/V1Preconditions.md index 1899cb85fb..2762345f38 100644 --- a/kubernetes/docs/V1Preconditions.md +++ b/kubernetes/docs/V1Preconditions.md @@ -1,5 +1,6 @@ # V1Preconditions +Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PreferredSchedulingTerm.md b/kubernetes/docs/V1PreferredSchedulingTerm.md index 0a3773e408..8c4083cfce 100644 --- a/kubernetes/docs/V1PreferredSchedulingTerm.md +++ b/kubernetes/docs/V1PreferredSchedulingTerm.md @@ -1,5 +1,6 @@ # V1PreferredSchedulingTerm +An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PriorityClass.md b/kubernetes/docs/V1PriorityClass.md index 8a6b498a7f..593f80f87f 100644 --- a/kubernetes/docs/V1PriorityClass.md +++ b/kubernetes/docs/V1PriorityClass.md @@ -1,5 +1,6 @@ # V1PriorityClass +PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1PriorityClassList.md b/kubernetes/docs/V1PriorityClassList.md index 2384744c0f..3332e75826 100644 --- a/kubernetes/docs/V1PriorityClassList.md +++ b/kubernetes/docs/V1PriorityClassList.md @@ -1,5 +1,6 @@ # V1PriorityClassList +PriorityClassList is a collection of priority classes. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Probe.md b/kubernetes/docs/V1Probe.md index 358f702cfb..18e56ecdb0 100644 --- a/kubernetes/docs/V1Probe.md +++ b/kubernetes/docs/V1Probe.md @@ -1,5 +1,6 @@ # V1Probe +Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md index d1c708a93b..f20db2d3cc 100644 --- a/kubernetes/docs/V1ProjectedVolumeSource.md +++ b/kubernetes/docs/V1ProjectedVolumeSource.md @@ -1,5 +1,6 @@ # V1ProjectedVolumeSource +Represents a projected volume source ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1QuobyteVolumeSource.md b/kubernetes/docs/V1QuobyteVolumeSource.md index 05aa7f9bb1..e6681ff272 100644 --- a/kubernetes/docs/V1QuobyteVolumeSource.md +++ b/kubernetes/docs/V1QuobyteVolumeSource.md @@ -1,5 +1,6 @@ # V1QuobyteVolumeSource +Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RBDPersistentVolumeSource.md b/kubernetes/docs/V1RBDPersistentVolumeSource.md index 5da5041c2b..1523bf4f51 100644 --- a/kubernetes/docs/V1RBDPersistentVolumeSource.md +++ b/kubernetes/docs/V1RBDPersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1RBDPersistentVolumeSource +Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RBDVolumeSource.md b/kubernetes/docs/V1RBDVolumeSource.md index 9f2b8043ea..38ec1f5ec2 100644 --- a/kubernetes/docs/V1RBDVolumeSource.md +++ b/kubernetes/docs/V1RBDVolumeSource.md @@ -1,5 +1,6 @@ # V1RBDVolumeSource +Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicaSet.md b/kubernetes/docs/V1ReplicaSet.md index 37d7d485c9..6689a1bb30 100644 --- a/kubernetes/docs/V1ReplicaSet.md +++ b/kubernetes/docs/V1ReplicaSet.md @@ -1,5 +1,6 @@ # V1ReplicaSet +ReplicaSet ensures that a specified number of pod replicas are running at any given time. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicaSetCondition.md b/kubernetes/docs/V1ReplicaSetCondition.md index 04cc7da497..4d7f2c6f67 100644 --- a/kubernetes/docs/V1ReplicaSetCondition.md +++ b/kubernetes/docs/V1ReplicaSetCondition.md @@ -1,5 +1,6 @@ # V1ReplicaSetCondition +ReplicaSetCondition describes the state of a replica set at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicaSetList.md b/kubernetes/docs/V1ReplicaSetList.md index 32aa71087b..2f7b7c39e8 100644 --- a/kubernetes/docs/V1ReplicaSetList.md +++ b/kubernetes/docs/V1ReplicaSetList.md @@ -1,5 +1,6 @@ # V1ReplicaSetList +ReplicaSetList is a collection of ReplicaSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicaSetSpec.md b/kubernetes/docs/V1ReplicaSetSpec.md index 6ac6f59cd7..7e166451a8 100644 --- a/kubernetes/docs/V1ReplicaSetSpec.md +++ b/kubernetes/docs/V1ReplicaSetSpec.md @@ -1,5 +1,6 @@ # V1ReplicaSetSpec +ReplicaSetSpec is the specification of a ReplicaSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicaSetStatus.md b/kubernetes/docs/V1ReplicaSetStatus.md index 5535975d2e..4847511bd8 100644 --- a/kubernetes/docs/V1ReplicaSetStatus.md +++ b/kubernetes/docs/V1ReplicaSetStatus.md @@ -1,5 +1,6 @@ # V1ReplicaSetStatus +ReplicaSetStatus represents the current status of a ReplicaSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicationController.md b/kubernetes/docs/V1ReplicationController.md index 7499777755..379a4e621f 100644 --- a/kubernetes/docs/V1ReplicationController.md +++ b/kubernetes/docs/V1ReplicationController.md @@ -1,5 +1,6 @@ # V1ReplicationController +ReplicationController represents the configuration of a replication controller. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicationControllerCondition.md b/kubernetes/docs/V1ReplicationControllerCondition.md index e09f617ba2..ceaf141c3b 100644 --- a/kubernetes/docs/V1ReplicationControllerCondition.md +++ b/kubernetes/docs/V1ReplicationControllerCondition.md @@ -1,5 +1,6 @@ # V1ReplicationControllerCondition +ReplicationControllerCondition describes the state of a replication controller at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicationControllerList.md b/kubernetes/docs/V1ReplicationControllerList.md index 5b5b5d44e8..689e208eb3 100644 --- a/kubernetes/docs/V1ReplicationControllerList.md +++ b/kubernetes/docs/V1ReplicationControllerList.md @@ -1,5 +1,6 @@ # V1ReplicationControllerList +ReplicationControllerList is a collection of replication controllers. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicationControllerSpec.md b/kubernetes/docs/V1ReplicationControllerSpec.md index 0969ecf2a7..73ff93eb50 100644 --- a/kubernetes/docs/V1ReplicationControllerSpec.md +++ b/kubernetes/docs/V1ReplicationControllerSpec.md @@ -1,5 +1,6 @@ # V1ReplicationControllerSpec +ReplicationControllerSpec is the specification of a replication controller. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ReplicationControllerStatus.md b/kubernetes/docs/V1ReplicationControllerStatus.md index 8219fbce37..7eefcd4701 100644 --- a/kubernetes/docs/V1ReplicationControllerStatus.md +++ b/kubernetes/docs/V1ReplicationControllerStatus.md @@ -1,5 +1,6 @@ # V1ReplicationControllerStatus +ReplicationControllerStatus represents the current status of a replication controller. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ResourceAttributes.md b/kubernetes/docs/V1ResourceAttributes.md index c6573c9a45..b49d5dcd6f 100644 --- a/kubernetes/docs/V1ResourceAttributes.md +++ b/kubernetes/docs/V1ResourceAttributes.md @@ -1,5 +1,6 @@ # V1ResourceAttributes +ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ResourceFieldSelector.md b/kubernetes/docs/V1ResourceFieldSelector.md index c20d42afca..630517866c 100644 --- a/kubernetes/docs/V1ResourceFieldSelector.md +++ b/kubernetes/docs/V1ResourceFieldSelector.md @@ -1,5 +1,6 @@ # V1ResourceFieldSelector +ResourceFieldSelector represents container resources (cpu, memory) and their output format ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ResourceQuota.md b/kubernetes/docs/V1ResourceQuota.md index 681398d70f..3c7838ec51 100644 --- a/kubernetes/docs/V1ResourceQuota.md +++ b/kubernetes/docs/V1ResourceQuota.md @@ -1,5 +1,6 @@ # V1ResourceQuota +ResourceQuota sets aggregate quota restrictions enforced per namespace ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ResourceQuotaList.md b/kubernetes/docs/V1ResourceQuotaList.md index 50edde8e6b..70a4e34186 100644 --- a/kubernetes/docs/V1ResourceQuotaList.md +++ b/kubernetes/docs/V1ResourceQuotaList.md @@ -1,5 +1,6 @@ # V1ResourceQuotaList +ResourceQuotaList is a list of ResourceQuota items. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ResourceQuotaSpec.md b/kubernetes/docs/V1ResourceQuotaSpec.md index ab3bdfaff2..a971292917 100644 --- a/kubernetes/docs/V1ResourceQuotaSpec.md +++ b/kubernetes/docs/V1ResourceQuotaSpec.md @@ -1,5 +1,6 @@ # V1ResourceQuotaSpec +ResourceQuotaSpec defines the desired hard limits to enforce for Quota. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ResourceQuotaStatus.md b/kubernetes/docs/V1ResourceQuotaStatus.md index 7cf250bc1c..b6a59d8e85 100644 --- a/kubernetes/docs/V1ResourceQuotaStatus.md +++ b/kubernetes/docs/V1ResourceQuotaStatus.md @@ -1,5 +1,6 @@ # V1ResourceQuotaStatus +ResourceQuotaStatus defines the enforced hard limits and observed use. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ResourceRequirements.md b/kubernetes/docs/V1ResourceRequirements.md index 2a0e7786b9..f0bbe159ec 100644 --- a/kubernetes/docs/V1ResourceRequirements.md +++ b/kubernetes/docs/V1ResourceRequirements.md @@ -1,5 +1,6 @@ # V1ResourceRequirements +ResourceRequirements describes the compute resource requirements. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ResourceRule.md b/kubernetes/docs/V1ResourceRule.md index 8c649222d4..5481ed8f9b 100644 --- a/kubernetes/docs/V1ResourceRule.md +++ b/kubernetes/docs/V1ResourceRule.md @@ -1,5 +1,6 @@ # V1ResourceRule +ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Role.md b/kubernetes/docs/V1Role.md index d6a83f968c..60b4d35cbe 100644 --- a/kubernetes/docs/V1Role.md +++ b/kubernetes/docs/V1Role.md @@ -1,5 +1,6 @@ # V1Role +Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RoleBinding.md b/kubernetes/docs/V1RoleBinding.md index 2df92a36a9..e35e638c2b 100644 --- a/kubernetes/docs/V1RoleBinding.md +++ b/kubernetes/docs/V1RoleBinding.md @@ -1,5 +1,6 @@ # V1RoleBinding +RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RoleBindingList.md b/kubernetes/docs/V1RoleBindingList.md index 8285760c22..393c99eb08 100644 --- a/kubernetes/docs/V1RoleBindingList.md +++ b/kubernetes/docs/V1RoleBindingList.md @@ -1,5 +1,6 @@ # V1RoleBindingList +RoleBindingList is a collection of RoleBindings ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RoleList.md b/kubernetes/docs/V1RoleList.md index 0cf9c71897..a598eb70e3 100644 --- a/kubernetes/docs/V1RoleList.md +++ b/kubernetes/docs/V1RoleList.md @@ -1,5 +1,6 @@ # V1RoleList +RoleList is a collection of Roles ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RoleRef.md b/kubernetes/docs/V1RoleRef.md index b849e94ff8..883e5d1b00 100644 --- a/kubernetes/docs/V1RoleRef.md +++ b/kubernetes/docs/V1RoleRef.md @@ -1,5 +1,6 @@ # V1RoleRef +RoleRef contains information that points to the role being used ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RollingUpdateDaemonSet.md b/kubernetes/docs/V1RollingUpdateDaemonSet.md index 5b77ac55ab..0aec8c37b6 100644 --- a/kubernetes/docs/V1RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1RollingUpdateDaemonSet.md @@ -1,5 +1,6 @@ # V1RollingUpdateDaemonSet +Spec to control the desired behavior of daemon set rolling update. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RollingUpdateDeployment.md b/kubernetes/docs/V1RollingUpdateDeployment.md index 16035e17b3..a725c5bb62 100644 --- a/kubernetes/docs/V1RollingUpdateDeployment.md +++ b/kubernetes/docs/V1RollingUpdateDeployment.md @@ -1,5 +1,6 @@ # V1RollingUpdateDeployment +Spec to control the desired behavior of rolling update. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md b/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md index f2ecc0e83c..235b69c9b4 100644 --- a/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md +++ b/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md @@ -1,5 +1,6 @@ # V1RollingUpdateStatefulSetStrategy +RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1RuleWithOperations.md b/kubernetes/docs/V1RuleWithOperations.md index bd6dbd25aa..53d275b1b3 100644 --- a/kubernetes/docs/V1RuleWithOperations.md +++ b/kubernetes/docs/V1RuleWithOperations.md @@ -1,5 +1,6 @@ # V1RuleWithOperations +RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SELinuxOptions.md b/kubernetes/docs/V1SELinuxOptions.md index 5e1de079f4..88a1adecb8 100644 --- a/kubernetes/docs/V1SELinuxOptions.md +++ b/kubernetes/docs/V1SELinuxOptions.md @@ -1,5 +1,6 @@ # V1SELinuxOptions +SELinuxOptions are the labels to be applied to the container ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Scale.md b/kubernetes/docs/V1Scale.md index 4c87af2d92..4e875910e0 100644 --- a/kubernetes/docs/V1Scale.md +++ b/kubernetes/docs/V1Scale.md @@ -1,5 +1,6 @@ # V1Scale +Scale represents a scaling request for a resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md b/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md index 9fda6c9884..5da47797f3 100644 --- a/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md +++ b/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1ScaleIOPersistentVolumeSource +ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ScaleIOVolumeSource.md b/kubernetes/docs/V1ScaleIOVolumeSource.md index 3f2aae7e5d..d65ab2967d 100644 --- a/kubernetes/docs/V1ScaleIOVolumeSource.md +++ b/kubernetes/docs/V1ScaleIOVolumeSource.md @@ -1,5 +1,6 @@ # V1ScaleIOVolumeSource +ScaleIOVolumeSource represents a persistent ScaleIO volume ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ScaleSpec.md b/kubernetes/docs/V1ScaleSpec.md index 84005741f5..c442a34574 100644 --- a/kubernetes/docs/V1ScaleSpec.md +++ b/kubernetes/docs/V1ScaleSpec.md @@ -1,5 +1,6 @@ # V1ScaleSpec +ScaleSpec describes the attributes of a scale subresource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ScaleStatus.md b/kubernetes/docs/V1ScaleStatus.md index 667cf5ca56..b7677afec0 100644 --- a/kubernetes/docs/V1ScaleStatus.md +++ b/kubernetes/docs/V1ScaleStatus.md @@ -1,5 +1,6 @@ # V1ScaleStatus +ScaleStatus represents the current status of a scale subresource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ScopeSelector.md b/kubernetes/docs/V1ScopeSelector.md index 1dfe778493..0c582bf953 100644 --- a/kubernetes/docs/V1ScopeSelector.md +++ b/kubernetes/docs/V1ScopeSelector.md @@ -1,5 +1,6 @@ # V1ScopeSelector +A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ScopedResourceSelectorRequirement.md b/kubernetes/docs/V1ScopedResourceSelectorRequirement.md index 780b06d343..7b6a0b21e5 100644 --- a/kubernetes/docs/V1ScopedResourceSelectorRequirement.md +++ b/kubernetes/docs/V1ScopedResourceSelectorRequirement.md @@ -1,5 +1,6 @@ # V1ScopedResourceSelectorRequirement +A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Secret.md b/kubernetes/docs/V1Secret.md index d007a7e852..324b733ced 100644 --- a/kubernetes/docs/V1Secret.md +++ b/kubernetes/docs/V1Secret.md @@ -1,5 +1,6 @@ # V1Secret +Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SecretEnvSource.md b/kubernetes/docs/V1SecretEnvSource.md index 0e28db8266..8ba52300b7 100644 --- a/kubernetes/docs/V1SecretEnvSource.md +++ b/kubernetes/docs/V1SecretEnvSource.md @@ -1,5 +1,6 @@ # V1SecretEnvSource +SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SecretKeySelector.md b/kubernetes/docs/V1SecretKeySelector.md index 2bd3dc54ee..730839b60e 100644 --- a/kubernetes/docs/V1SecretKeySelector.md +++ b/kubernetes/docs/V1SecretKeySelector.md @@ -1,5 +1,6 @@ # V1SecretKeySelector +SecretKeySelector selects a key of a Secret. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SecretList.md b/kubernetes/docs/V1SecretList.md index 69bca5fbe7..3476862b6f 100644 --- a/kubernetes/docs/V1SecretList.md +++ b/kubernetes/docs/V1SecretList.md @@ -1,5 +1,6 @@ # V1SecretList +SecretList is a list of Secret. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SecretProjection.md b/kubernetes/docs/V1SecretProjection.md index bcf504ce2a..5f2674750a 100644 --- a/kubernetes/docs/V1SecretProjection.md +++ b/kubernetes/docs/V1SecretProjection.md @@ -1,5 +1,6 @@ # V1SecretProjection +Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SecretReference.md b/kubernetes/docs/V1SecretReference.md index afca3a08c5..1508e1561b 100644 --- a/kubernetes/docs/V1SecretReference.md +++ b/kubernetes/docs/V1SecretReference.md @@ -1,5 +1,6 @@ # V1SecretReference +SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SecretVolumeSource.md b/kubernetes/docs/V1SecretVolumeSource.md index 704afcb260..8e87900b32 100644 --- a/kubernetes/docs/V1SecretVolumeSource.md +++ b/kubernetes/docs/V1SecretVolumeSource.md @@ -1,5 +1,6 @@ # V1SecretVolumeSource +Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SecurityContext.md b/kubernetes/docs/V1SecurityContext.md index 0f8cfff2f3..30f470f8f3 100644 --- a/kubernetes/docs/V1SecurityContext.md +++ b/kubernetes/docs/V1SecurityContext.md @@ -1,5 +1,6 @@ # V1SecurityContext +SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SelfSubjectAccessReview.md b/kubernetes/docs/V1SelfSubjectAccessReview.md index 3a3f8e7527..62d235c295 100644 --- a/kubernetes/docs/V1SelfSubjectAccessReview.md +++ b/kubernetes/docs/V1SelfSubjectAccessReview.md @@ -1,5 +1,6 @@ # V1SelfSubjectAccessReview +SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md index 1553893ac5..28f06d3262 100644 --- a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md @@ -1,5 +1,6 @@ # V1SelfSubjectAccessReviewSpec +SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SelfSubjectRulesReview.md b/kubernetes/docs/V1SelfSubjectRulesReview.md index 89cd6149b0..da7f238ae6 100644 --- a/kubernetes/docs/V1SelfSubjectRulesReview.md +++ b/kubernetes/docs/V1SelfSubjectRulesReview.md @@ -1,5 +1,6 @@ # V1SelfSubjectRulesReview +SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ServerAddressByClientCIDR.md b/kubernetes/docs/V1ServerAddressByClientCIDR.md index 93c0a8c3df..06eba82979 100644 --- a/kubernetes/docs/V1ServerAddressByClientCIDR.md +++ b/kubernetes/docs/V1ServerAddressByClientCIDR.md @@ -1,5 +1,6 @@ # V1ServerAddressByClientCIDR +ServerAddressByClientCIDR helps the kubernetes.client to determine the server address that they should use, depending on the kubernetes.clientCIDR that they match. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Service.md b/kubernetes/docs/V1Service.md index 47774e698c..fcf5668dcd 100644 --- a/kubernetes/docs/V1Service.md +++ b/kubernetes/docs/V1Service.md @@ -1,5 +1,6 @@ # V1Service +Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ServiceAccount.md b/kubernetes/docs/V1ServiceAccount.md index a7718b18a1..e4b5b04d3b 100644 --- a/kubernetes/docs/V1ServiceAccount.md +++ b/kubernetes/docs/V1ServiceAccount.md @@ -1,5 +1,6 @@ # V1ServiceAccount +ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ServiceAccountList.md b/kubernetes/docs/V1ServiceAccountList.md index 877bd8f16a..00d28c53ae 100644 --- a/kubernetes/docs/V1ServiceAccountList.md +++ b/kubernetes/docs/V1ServiceAccountList.md @@ -1,5 +1,6 @@ # V1ServiceAccountList +ServiceAccountList is a list of ServiceAccount objects ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ServiceAccountTokenProjection.md b/kubernetes/docs/V1ServiceAccountTokenProjection.md index ce9b22fbf6..705b50da67 100644 --- a/kubernetes/docs/V1ServiceAccountTokenProjection.md +++ b/kubernetes/docs/V1ServiceAccountTokenProjection.md @@ -1,5 +1,6 @@ # V1ServiceAccountTokenProjection +ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ServiceList.md b/kubernetes/docs/V1ServiceList.md index 82f4ceb862..e9405e1e81 100644 --- a/kubernetes/docs/V1ServiceList.md +++ b/kubernetes/docs/V1ServiceList.md @@ -1,5 +1,6 @@ # V1ServiceList +ServiceList holds a list of services. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ServicePort.md b/kubernetes/docs/V1ServicePort.md index bb7facbb8d..9fe0dbd8fa 100644 --- a/kubernetes/docs/V1ServicePort.md +++ b/kubernetes/docs/V1ServicePort.md @@ -1,5 +1,6 @@ # V1ServicePort +ServicePort contains information on service's port. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index b7061f0037..9ea470ea86 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -1,5 +1,6 @@ # V1ServiceSpec +ServiceSpec describes the attributes that a user creates on a service. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ServiceStatus.md b/kubernetes/docs/V1ServiceStatus.md index c35ba71fcb..74956d4fdc 100644 --- a/kubernetes/docs/V1ServiceStatus.md +++ b/kubernetes/docs/V1ServiceStatus.md @@ -1,5 +1,6 @@ # V1ServiceStatus +ServiceStatus represents the current status of a service. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SessionAffinityConfig.md b/kubernetes/docs/V1SessionAffinityConfig.md index 21595886e8..fcf30adca6 100644 --- a/kubernetes/docs/V1SessionAffinityConfig.md +++ b/kubernetes/docs/V1SessionAffinityConfig.md @@ -1,5 +1,6 @@ # V1SessionAffinityConfig +SessionAffinityConfig represents the configurations of session affinity. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StatefulSet.md b/kubernetes/docs/V1StatefulSet.md index 829c339200..e7946e63d4 100644 --- a/kubernetes/docs/V1StatefulSet.md +++ b/kubernetes/docs/V1StatefulSet.md @@ -1,5 +1,6 @@ # V1StatefulSet +StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StatefulSetCondition.md b/kubernetes/docs/V1StatefulSetCondition.md index 0539b3ccd0..b60f2f95c2 100644 --- a/kubernetes/docs/V1StatefulSetCondition.md +++ b/kubernetes/docs/V1StatefulSetCondition.md @@ -1,5 +1,6 @@ # V1StatefulSetCondition +StatefulSetCondition describes the state of a statefulset at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StatefulSetList.md b/kubernetes/docs/V1StatefulSetList.md index 76b6bae2eb..fafd2047b5 100644 --- a/kubernetes/docs/V1StatefulSetList.md +++ b/kubernetes/docs/V1StatefulSetList.md @@ -1,5 +1,6 @@ # V1StatefulSetList +StatefulSetList is a collection of StatefulSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StatefulSetSpec.md b/kubernetes/docs/V1StatefulSetSpec.md index 7203e2af81..2744c3a002 100644 --- a/kubernetes/docs/V1StatefulSetSpec.md +++ b/kubernetes/docs/V1StatefulSetSpec.md @@ -1,5 +1,6 @@ # V1StatefulSetSpec +A StatefulSetSpec is the specification of a StatefulSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StatefulSetStatus.md b/kubernetes/docs/V1StatefulSetStatus.md index 4dbe708686..b891c51be5 100644 --- a/kubernetes/docs/V1StatefulSetStatus.md +++ b/kubernetes/docs/V1StatefulSetStatus.md @@ -1,5 +1,6 @@ # V1StatefulSetStatus +StatefulSetStatus represents the current state of a StatefulSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StatefulSetUpdateStrategy.md b/kubernetes/docs/V1StatefulSetUpdateStrategy.md index c9432dc617..51625f5336 100644 --- a/kubernetes/docs/V1StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1StatefulSetUpdateStrategy.md @@ -1,5 +1,6 @@ # V1StatefulSetUpdateStrategy +StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Status.md b/kubernetes/docs/V1Status.md index 775bb92a9b..73d05e2c05 100644 --- a/kubernetes/docs/V1Status.md +++ b/kubernetes/docs/V1Status.md @@ -1,5 +1,6 @@ # V1Status +Status is a return value for calls that don't return other objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StatusCause.md b/kubernetes/docs/V1StatusCause.md index 56cb6faf4f..82cd99431c 100644 --- a/kubernetes/docs/V1StatusCause.md +++ b/kubernetes/docs/V1StatusCause.md @@ -1,5 +1,6 @@ # V1StatusCause +StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StatusDetails.md b/kubernetes/docs/V1StatusDetails.md index 5ee1eaade1..f8d310b087 100644 --- a/kubernetes/docs/V1StatusDetails.md +++ b/kubernetes/docs/V1StatusDetails.md @@ -1,5 +1,6 @@ # V1StatusDetails +StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StorageClass.md b/kubernetes/docs/V1StorageClass.md index 23d0db2dc0..35819269de 100644 --- a/kubernetes/docs/V1StorageClass.md +++ b/kubernetes/docs/V1StorageClass.md @@ -1,5 +1,6 @@ # V1StorageClass +StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StorageClassList.md b/kubernetes/docs/V1StorageClassList.md index c52b8fc3a6..d93b38a825 100644 --- a/kubernetes/docs/V1StorageClassList.md +++ b/kubernetes/docs/V1StorageClassList.md @@ -1,5 +1,6 @@ # V1StorageClassList +StorageClassList is a collection of storage classes. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StorageOSPersistentVolumeSource.md b/kubernetes/docs/V1StorageOSPersistentVolumeSource.md index 6b2c9a147a..d4187a42e4 100644 --- a/kubernetes/docs/V1StorageOSPersistentVolumeSource.md +++ b/kubernetes/docs/V1StorageOSPersistentVolumeSource.md @@ -1,5 +1,6 @@ # V1StorageOSPersistentVolumeSource +Represents a StorageOS persistent volume resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1StorageOSVolumeSource.md b/kubernetes/docs/V1StorageOSVolumeSource.md index 66a6ce694d..8459ec5979 100644 --- a/kubernetes/docs/V1StorageOSVolumeSource.md +++ b/kubernetes/docs/V1StorageOSVolumeSource.md @@ -1,5 +1,6 @@ # V1StorageOSVolumeSource +Represents a StorageOS persistent volume resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Subject.md b/kubernetes/docs/V1Subject.md index 873f0078f8..dfba97554d 100644 --- a/kubernetes/docs/V1Subject.md +++ b/kubernetes/docs/V1Subject.md @@ -1,5 +1,6 @@ # V1Subject +Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SubjectAccessReview.md b/kubernetes/docs/V1SubjectAccessReview.md index fbcb905cf2..7e6c4e123b 100644 --- a/kubernetes/docs/V1SubjectAccessReview.md +++ b/kubernetes/docs/V1SubjectAccessReview.md @@ -1,5 +1,6 @@ # V1SubjectAccessReview +SubjectAccessReview checks whether or not a user or group can perform an action. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SubjectAccessReviewSpec.md b/kubernetes/docs/V1SubjectAccessReviewSpec.md index df9a7f5084..ace53ed8a2 100644 --- a/kubernetes/docs/V1SubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SubjectAccessReviewSpec.md @@ -1,5 +1,6 @@ # V1SubjectAccessReviewSpec +SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SubjectAccessReviewStatus.md b/kubernetes/docs/V1SubjectAccessReviewStatus.md index 0a32777159..7a36216038 100644 --- a/kubernetes/docs/V1SubjectAccessReviewStatus.md +++ b/kubernetes/docs/V1SubjectAccessReviewStatus.md @@ -1,5 +1,6 @@ # V1SubjectAccessReviewStatus +SubjectAccessReviewStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1SubjectRulesReviewStatus.md b/kubernetes/docs/V1SubjectRulesReviewStatus.md index f8da49b3f3..a60b77cbbd 100644 --- a/kubernetes/docs/V1SubjectRulesReviewStatus.md +++ b/kubernetes/docs/V1SubjectRulesReviewStatus.md @@ -1,5 +1,6 @@ # V1SubjectRulesReviewStatus +SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Sysctl.md b/kubernetes/docs/V1Sysctl.md index 44a3fcc307..41ee7744df 100644 --- a/kubernetes/docs/V1Sysctl.md +++ b/kubernetes/docs/V1Sysctl.md @@ -1,5 +1,6 @@ # V1Sysctl +Sysctl defines a kernel parameter to be set ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TCPSocketAction.md b/kubernetes/docs/V1TCPSocketAction.md index cd7f3ca682..8e3b8217dc 100644 --- a/kubernetes/docs/V1TCPSocketAction.md +++ b/kubernetes/docs/V1TCPSocketAction.md @@ -1,5 +1,6 @@ # V1TCPSocketAction +TCPSocketAction describes an action based on opening a socket ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Taint.md b/kubernetes/docs/V1Taint.md index 3af648e942..1a030cf6d8 100644 --- a/kubernetes/docs/V1Taint.md +++ b/kubernetes/docs/V1Taint.md @@ -1,5 +1,6 @@ # V1Taint +The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TokenRequest.md b/kubernetes/docs/V1TokenRequest.md index 6efeb4269d..41e603ccb7 100644 --- a/kubernetes/docs/V1TokenRequest.md +++ b/kubernetes/docs/V1TokenRequest.md @@ -1,5 +1,6 @@ # V1TokenRequest +TokenRequest requests a token for a given service account. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TokenRequestSpec.md b/kubernetes/docs/V1TokenRequestSpec.md index 378c7121a0..7be91095b2 100644 --- a/kubernetes/docs/V1TokenRequestSpec.md +++ b/kubernetes/docs/V1TokenRequestSpec.md @@ -1,5 +1,6 @@ # V1TokenRequestSpec +TokenRequestSpec contains kubernetes.client provided parameters of a token request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TokenRequestStatus.md b/kubernetes/docs/V1TokenRequestStatus.md index 14381e1025..cdf8830348 100644 --- a/kubernetes/docs/V1TokenRequestStatus.md +++ b/kubernetes/docs/V1TokenRequestStatus.md @@ -1,5 +1,6 @@ # V1TokenRequestStatus +TokenRequestStatus is the result of a token request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TokenReview.md b/kubernetes/docs/V1TokenReview.md index f57818777d..919817710a 100644 --- a/kubernetes/docs/V1TokenReview.md +++ b/kubernetes/docs/V1TokenReview.md @@ -1,5 +1,6 @@ # V1TokenReview +TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TokenReviewSpec.md b/kubernetes/docs/V1TokenReviewSpec.md index fdb0de74ea..bdc86da4fe 100644 --- a/kubernetes/docs/V1TokenReviewSpec.md +++ b/kubernetes/docs/V1TokenReviewSpec.md @@ -1,5 +1,6 @@ # V1TokenReviewSpec +TokenReviewSpec is a description of the token authentication request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TokenReviewStatus.md b/kubernetes/docs/V1TokenReviewStatus.md index b468c5822a..9bf380c606 100644 --- a/kubernetes/docs/V1TokenReviewStatus.md +++ b/kubernetes/docs/V1TokenReviewStatus.md @@ -1,5 +1,6 @@ # V1TokenReviewStatus +TokenReviewStatus is the result of the token authentication request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Toleration.md b/kubernetes/docs/V1Toleration.md index 1650f88e05..e57b4a3a76 100644 --- a/kubernetes/docs/V1Toleration.md +++ b/kubernetes/docs/V1Toleration.md @@ -1,5 +1,6 @@ # V1Toleration +The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator . ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TopologySelectorLabelRequirement.md b/kubernetes/docs/V1TopologySelectorLabelRequirement.md index 2129d032de..bac61c5c85 100644 --- a/kubernetes/docs/V1TopologySelectorLabelRequirement.md +++ b/kubernetes/docs/V1TopologySelectorLabelRequirement.md @@ -1,5 +1,6 @@ # V1TopologySelectorLabelRequirement +A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TopologySelectorTerm.md b/kubernetes/docs/V1TopologySelectorTerm.md index 7705d064a7..cc7544b319 100644 --- a/kubernetes/docs/V1TopologySelectorTerm.md +++ b/kubernetes/docs/V1TopologySelectorTerm.md @@ -1,5 +1,6 @@ # V1TopologySelectorTerm +A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TopologySpreadConstraint.md b/kubernetes/docs/V1TopologySpreadConstraint.md index 6f5e394e23..73c734007c 100644 --- a/kubernetes/docs/V1TopologySpreadConstraint.md +++ b/kubernetes/docs/V1TopologySpreadConstraint.md @@ -1,5 +1,6 @@ # V1TopologySpreadConstraint +TopologySpreadConstraint specifies how to spread matching pods among the given topology. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1TypedLocalObjectReference.md b/kubernetes/docs/V1TypedLocalObjectReference.md index 672198bc72..0a439d73c2 100644 --- a/kubernetes/docs/V1TypedLocalObjectReference.md +++ b/kubernetes/docs/V1TypedLocalObjectReference.md @@ -1,5 +1,6 @@ # V1TypedLocalObjectReference +TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1UserInfo.md b/kubernetes/docs/V1UserInfo.md index cd430d9c33..0c881e86ea 100644 --- a/kubernetes/docs/V1UserInfo.md +++ b/kubernetes/docs/V1UserInfo.md @@ -1,5 +1,6 @@ # V1UserInfo +UserInfo holds the information about the user needed to implement the user.Info interface. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ValidatingWebhook.md b/kubernetes/docs/V1ValidatingWebhook.md index 82b2296013..b8baa85d2d 100644 --- a/kubernetes/docs/V1ValidatingWebhook.md +++ b/kubernetes/docs/V1ValidatingWebhook.md @@ -1,5 +1,6 @@ # V1ValidatingWebhook +ValidatingWebhook describes an admission webhook and the resources and operations it applies to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ValidatingWebhookConfiguration.md b/kubernetes/docs/V1ValidatingWebhookConfiguration.md index 167731480f..e434f03fde 100644 --- a/kubernetes/docs/V1ValidatingWebhookConfiguration.md +++ b/kubernetes/docs/V1ValidatingWebhookConfiguration.md @@ -1,5 +1,6 @@ # V1ValidatingWebhookConfiguration +ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1ValidatingWebhookConfigurationList.md b/kubernetes/docs/V1ValidatingWebhookConfigurationList.md index aa4ad934d9..c948599244 100644 --- a/kubernetes/docs/V1ValidatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1ValidatingWebhookConfigurationList.md @@ -1,5 +1,6 @@ # V1ValidatingWebhookConfigurationList +ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1Volume.md b/kubernetes/docs/V1Volume.md index 470464304e..b2f3187a5b 100644 --- a/kubernetes/docs/V1Volume.md +++ b/kubernetes/docs/V1Volume.md @@ -1,5 +1,6 @@ # V1Volume +Volume represents a named volume in a pod that may be accessed by any container in the pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeAttachment.md b/kubernetes/docs/V1VolumeAttachment.md index 236714c732..f1653d99a6 100644 --- a/kubernetes/docs/V1VolumeAttachment.md +++ b/kubernetes/docs/V1VolumeAttachment.md @@ -1,5 +1,6 @@ # V1VolumeAttachment +VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeAttachmentList.md b/kubernetes/docs/V1VolumeAttachmentList.md index 6dd7ac71ce..b6f7e2e613 100644 --- a/kubernetes/docs/V1VolumeAttachmentList.md +++ b/kubernetes/docs/V1VolumeAttachmentList.md @@ -1,5 +1,6 @@ # V1VolumeAttachmentList +VolumeAttachmentList is a collection of VolumeAttachment objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeAttachmentSource.md b/kubernetes/docs/V1VolumeAttachmentSource.md index 58645a4d54..25e51acfed 100644 --- a/kubernetes/docs/V1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1VolumeAttachmentSource.md @@ -1,5 +1,6 @@ # V1VolumeAttachmentSource +VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeAttachmentSpec.md b/kubernetes/docs/V1VolumeAttachmentSpec.md index adac5f7ae3..2ac00ba866 100644 --- a/kubernetes/docs/V1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1VolumeAttachmentSpec.md @@ -1,5 +1,6 @@ # V1VolumeAttachmentSpec +VolumeAttachmentSpec is the specification of a VolumeAttachment request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeAttachmentStatus.md b/kubernetes/docs/V1VolumeAttachmentStatus.md index b6be3e335c..1989adab6b 100644 --- a/kubernetes/docs/V1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1VolumeAttachmentStatus.md @@ -1,5 +1,6 @@ # V1VolumeAttachmentStatus +VolumeAttachmentStatus is the status of a VolumeAttachment request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeDevice.md b/kubernetes/docs/V1VolumeDevice.md index bc97066e5a..aa9deebb43 100644 --- a/kubernetes/docs/V1VolumeDevice.md +++ b/kubernetes/docs/V1VolumeDevice.md @@ -1,5 +1,6 @@ # V1VolumeDevice +volumeDevice describes a mapping of a raw block device within a container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeError.md b/kubernetes/docs/V1VolumeError.md index 8851c8a211..c139009a3f 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -1,5 +1,6 @@ # V1VolumeError +VolumeError captures an error encountered during a volume operation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeMount.md b/kubernetes/docs/V1VolumeMount.md index f79853cea9..8d15b17791 100644 --- a/kubernetes/docs/V1VolumeMount.md +++ b/kubernetes/docs/V1VolumeMount.md @@ -1,5 +1,6 @@ # V1VolumeMount +VolumeMount describes a mounting of a Volume within a container. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeNodeAffinity.md b/kubernetes/docs/V1VolumeNodeAffinity.md index 391990fdbe..f390572d2d 100644 --- a/kubernetes/docs/V1VolumeNodeAffinity.md +++ b/kubernetes/docs/V1VolumeNodeAffinity.md @@ -1,5 +1,6 @@ # V1VolumeNodeAffinity +VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md index 8f2b485360..d40b966926 100644 --- a/kubernetes/docs/V1VolumeProjection.md +++ b/kubernetes/docs/V1VolumeProjection.md @@ -1,5 +1,6 @@ # V1VolumeProjection +Projection that may be projected along with other supported volume types ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md b/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md index 8b8780e859..46552fd0e8 100644 --- a/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md +++ b/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md @@ -1,5 +1,6 @@ # V1VsphereVirtualDiskVolumeSource +Represents a vSphere volume resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1WatchEvent.md b/kubernetes/docs/V1WatchEvent.md index 9e5e10f01b..547de72110 100644 --- a/kubernetes/docs/V1WatchEvent.md +++ b/kubernetes/docs/V1WatchEvent.md @@ -1,5 +1,6 @@ # V1WatchEvent +Event represents a single event to a watched resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1WebhookConversion.md b/kubernetes/docs/V1WebhookConversion.md index 1874ab8b57..a06d94450e 100644 --- a/kubernetes/docs/V1WebhookConversion.md +++ b/kubernetes/docs/V1WebhookConversion.md @@ -1,5 +1,6 @@ # V1WebhookConversion +WebhookConversion describes how to call a conversion webhook ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1WeightedPodAffinityTerm.md b/kubernetes/docs/V1WeightedPodAffinityTerm.md index 93c6b25107..c6b443098f 100644 --- a/kubernetes/docs/V1WeightedPodAffinityTerm.md +++ b/kubernetes/docs/V1WeightedPodAffinityTerm.md @@ -1,5 +1,6 @@ # V1WeightedPodAffinityTerm +The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1WindowsSecurityContextOptions.md b/kubernetes/docs/V1WindowsSecurityContextOptions.md index ea5953ebb7..29e8e17182 100644 --- a/kubernetes/docs/V1WindowsSecurityContextOptions.md +++ b/kubernetes/docs/V1WindowsSecurityContextOptions.md @@ -1,5 +1,6 @@ # V1WindowsSecurityContextOptions +WindowsSecurityContextOptions contain Windows-specific options and credentials. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1AggregationRule.md b/kubernetes/docs/V1alpha1AggregationRule.md index 111ff94ed6..318e3f030f 100644 --- a/kubernetes/docs/V1alpha1AggregationRule.md +++ b/kubernetes/docs/V1alpha1AggregationRule.md @@ -1,5 +1,6 @@ # V1alpha1AggregationRule +AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1AuditSink.md b/kubernetes/docs/V1alpha1AuditSink.md index ceed5c3d90..0596ef4fe1 100644 --- a/kubernetes/docs/V1alpha1AuditSink.md +++ b/kubernetes/docs/V1alpha1AuditSink.md @@ -1,5 +1,6 @@ # V1alpha1AuditSink +AuditSink represents a cluster level audit sink ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1AuditSinkList.md b/kubernetes/docs/V1alpha1AuditSinkList.md index 2fb200fb48..efb9b1e84b 100644 --- a/kubernetes/docs/V1alpha1AuditSinkList.md +++ b/kubernetes/docs/V1alpha1AuditSinkList.md @@ -1,5 +1,6 @@ # V1alpha1AuditSinkList +AuditSinkList is a list of AuditSink items. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1AuditSinkSpec.md b/kubernetes/docs/V1alpha1AuditSinkSpec.md index 412b27278a..fb11f4111f 100644 --- a/kubernetes/docs/V1alpha1AuditSinkSpec.md +++ b/kubernetes/docs/V1alpha1AuditSinkSpec.md @@ -1,5 +1,6 @@ # V1alpha1AuditSinkSpec +AuditSinkSpec holds the spec for the audit sink ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1ClusterRole.md b/kubernetes/docs/V1alpha1ClusterRole.md index 9249b2a7ab..3de290ec9f 100644 --- a/kubernetes/docs/V1alpha1ClusterRole.md +++ b/kubernetes/docs/V1alpha1ClusterRole.md @@ -1,5 +1,6 @@ # V1alpha1ClusterRole +ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1ClusterRoleBinding.md b/kubernetes/docs/V1alpha1ClusterRoleBinding.md index 82efdd4118..1ae894332a 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleBinding.md +++ b/kubernetes/docs/V1alpha1ClusterRoleBinding.md @@ -1,5 +1,6 @@ # V1alpha1ClusterRoleBinding +ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md index 5f71be3af3..77f29baee4 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md @@ -1,5 +1,6 @@ # V1alpha1ClusterRoleBindingList +ClusterRoleBindingList is a collection of ClusterRoleBindings ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1ClusterRoleList.md b/kubernetes/docs/V1alpha1ClusterRoleList.md index cc397f7557..b52881d004 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleList.md +++ b/kubernetes/docs/V1alpha1ClusterRoleList.md @@ -1,5 +1,6 @@ # V1alpha1ClusterRoleList +ClusterRoleList is a collection of ClusterRoles ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1Endpoint.md b/kubernetes/docs/V1alpha1Endpoint.md index c81c33e224..9e5bfcb5c0 100644 --- a/kubernetes/docs/V1alpha1Endpoint.md +++ b/kubernetes/docs/V1alpha1Endpoint.md @@ -1,5 +1,6 @@ # V1alpha1Endpoint +Endpoint represents a single logical \"backend\" implementing a service. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1EndpointConditions.md b/kubernetes/docs/V1alpha1EndpointConditions.md index f220614bfc..15e6d730ff 100644 --- a/kubernetes/docs/V1alpha1EndpointConditions.md +++ b/kubernetes/docs/V1alpha1EndpointConditions.md @@ -1,5 +1,6 @@ # V1alpha1EndpointConditions +EndpointConditions represents the current condition of an endpoint. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1EndpointPort.md b/kubernetes/docs/V1alpha1EndpointPort.md index a2cd1a7c97..9c36401ad5 100644 --- a/kubernetes/docs/V1alpha1EndpointPort.md +++ b/kubernetes/docs/V1alpha1EndpointPort.md @@ -1,5 +1,6 @@ # V1alpha1EndpointPort +EndpointPort represents a Port used by an EndpointSlice ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1EndpointSlice.md b/kubernetes/docs/V1alpha1EndpointSlice.md index b3e10a42f8..c1db16fcd4 100644 --- a/kubernetes/docs/V1alpha1EndpointSlice.md +++ b/kubernetes/docs/V1alpha1EndpointSlice.md @@ -1,5 +1,6 @@ # V1alpha1EndpointSlice +EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1EndpointSliceList.md b/kubernetes/docs/V1alpha1EndpointSliceList.md index 841d696ae2..0b40581ca9 100644 --- a/kubernetes/docs/V1alpha1EndpointSliceList.md +++ b/kubernetes/docs/V1alpha1EndpointSliceList.md @@ -1,5 +1,6 @@ # V1alpha1EndpointSliceList +EndpointSliceList represents a list of endpoint slices ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1Overhead.md b/kubernetes/docs/V1alpha1Overhead.md index e8a4d32cf8..33142fc292 100644 --- a/kubernetes/docs/V1alpha1Overhead.md +++ b/kubernetes/docs/V1alpha1Overhead.md @@ -1,5 +1,6 @@ # V1alpha1Overhead +Overhead structure represents the resource overhead associated with running a pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1PodPreset.md b/kubernetes/docs/V1alpha1PodPreset.md index cc80d23ae6..ed4ea55e5b 100644 --- a/kubernetes/docs/V1alpha1PodPreset.md +++ b/kubernetes/docs/V1alpha1PodPreset.md @@ -1,5 +1,6 @@ # V1alpha1PodPreset +PodPreset is a policy resource that defines additional runtime requirements for a Pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1PodPresetList.md b/kubernetes/docs/V1alpha1PodPresetList.md index d2ce073a8d..889eb97046 100644 --- a/kubernetes/docs/V1alpha1PodPresetList.md +++ b/kubernetes/docs/V1alpha1PodPresetList.md @@ -1,5 +1,6 @@ # V1alpha1PodPresetList +PodPresetList is a list of PodPreset objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1PodPresetSpec.md b/kubernetes/docs/V1alpha1PodPresetSpec.md index 4307807874..699169fd1b 100644 --- a/kubernetes/docs/V1alpha1PodPresetSpec.md +++ b/kubernetes/docs/V1alpha1PodPresetSpec.md @@ -1,5 +1,6 @@ # V1alpha1PodPresetSpec +PodPresetSpec is a description of a pod preset. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1Policy.md b/kubernetes/docs/V1alpha1Policy.md index 6abf3622e7..d5f23acd9f 100644 --- a/kubernetes/docs/V1alpha1Policy.md +++ b/kubernetes/docs/V1alpha1Policy.md @@ -1,5 +1,6 @@ # V1alpha1Policy +Policy defines the configuration of how audit events are logged ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1PolicyRule.md b/kubernetes/docs/V1alpha1PolicyRule.md index abd917604e..6c9184df9d 100644 --- a/kubernetes/docs/V1alpha1PolicyRule.md +++ b/kubernetes/docs/V1alpha1PolicyRule.md @@ -1,5 +1,6 @@ # V1alpha1PolicyRule +PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1PriorityClass.md b/kubernetes/docs/V1alpha1PriorityClass.md index 1809e343b9..619dc866b9 100644 --- a/kubernetes/docs/V1alpha1PriorityClass.md +++ b/kubernetes/docs/V1alpha1PriorityClass.md @@ -1,5 +1,6 @@ # V1alpha1PriorityClass +DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1PriorityClassList.md b/kubernetes/docs/V1alpha1PriorityClassList.md index 1fe5760c56..79aceef307 100644 --- a/kubernetes/docs/V1alpha1PriorityClassList.md +++ b/kubernetes/docs/V1alpha1PriorityClassList.md @@ -1,5 +1,6 @@ # V1alpha1PriorityClassList +PriorityClassList is a collection of priority classes. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1Role.md b/kubernetes/docs/V1alpha1Role.md index c4e2e123d1..369bf3ea3b 100644 --- a/kubernetes/docs/V1alpha1Role.md +++ b/kubernetes/docs/V1alpha1Role.md @@ -1,5 +1,6 @@ # V1alpha1Role +Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1RoleBinding.md b/kubernetes/docs/V1alpha1RoleBinding.md index 71bc0b5420..eb4492833b 100644 --- a/kubernetes/docs/V1alpha1RoleBinding.md +++ b/kubernetes/docs/V1alpha1RoleBinding.md @@ -1,5 +1,6 @@ # V1alpha1RoleBinding +RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1RoleBindingList.md b/kubernetes/docs/V1alpha1RoleBindingList.md index b449724275..f08727f7e8 100644 --- a/kubernetes/docs/V1alpha1RoleBindingList.md +++ b/kubernetes/docs/V1alpha1RoleBindingList.md @@ -1,5 +1,6 @@ # V1alpha1RoleBindingList +RoleBindingList is a collection of RoleBindings ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1RoleList.md b/kubernetes/docs/V1alpha1RoleList.md index b85e579aec..067e1a09c6 100644 --- a/kubernetes/docs/V1alpha1RoleList.md +++ b/kubernetes/docs/V1alpha1RoleList.md @@ -1,5 +1,6 @@ # V1alpha1RoleList +RoleList is a collection of Roles ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1RoleRef.md b/kubernetes/docs/V1alpha1RoleRef.md index b72606f7b8..a97f89dc95 100644 --- a/kubernetes/docs/V1alpha1RoleRef.md +++ b/kubernetes/docs/V1alpha1RoleRef.md @@ -1,5 +1,6 @@ # V1alpha1RoleRef +RoleRef contains information that points to the role being used ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1RuntimeClass.md b/kubernetes/docs/V1alpha1RuntimeClass.md index 4fb1a9738d..5542cc2bd4 100644 --- a/kubernetes/docs/V1alpha1RuntimeClass.md +++ b/kubernetes/docs/V1alpha1RuntimeClass.md @@ -1,5 +1,6 @@ # V1alpha1RuntimeClass +RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1RuntimeClassList.md b/kubernetes/docs/V1alpha1RuntimeClassList.md index 2fe55e1cb9..504ce033af 100644 --- a/kubernetes/docs/V1alpha1RuntimeClassList.md +++ b/kubernetes/docs/V1alpha1RuntimeClassList.md @@ -1,5 +1,6 @@ # V1alpha1RuntimeClassList +RuntimeClassList is a list of RuntimeClass objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1RuntimeClassSpec.md b/kubernetes/docs/V1alpha1RuntimeClassSpec.md index 213ebef554..315948624e 100644 --- a/kubernetes/docs/V1alpha1RuntimeClassSpec.md +++ b/kubernetes/docs/V1alpha1RuntimeClassSpec.md @@ -1,5 +1,6 @@ # V1alpha1RuntimeClassSpec +RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1Scheduling.md b/kubernetes/docs/V1alpha1Scheduling.md index beb783dedb..47cbfec56d 100644 --- a/kubernetes/docs/V1alpha1Scheduling.md +++ b/kubernetes/docs/V1alpha1Scheduling.md @@ -1,5 +1,6 @@ # V1alpha1Scheduling +Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1ServiceReference.md b/kubernetes/docs/V1alpha1ServiceReference.md index bac580f4d1..6fc8bbef6b 100644 --- a/kubernetes/docs/V1alpha1ServiceReference.md +++ b/kubernetes/docs/V1alpha1ServiceReference.md @@ -1,5 +1,6 @@ # V1alpha1ServiceReference +ServiceReference holds a reference to Service.legacy.k8s.io ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1Subject.md b/kubernetes/docs/V1alpha1Subject.md index 7365b08849..1e1d5153bc 100644 --- a/kubernetes/docs/V1alpha1Subject.md +++ b/kubernetes/docs/V1alpha1Subject.md @@ -1,5 +1,6 @@ # V1alpha1Subject +Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1VolumeAttachment.md b/kubernetes/docs/V1alpha1VolumeAttachment.md index 24eeafd6d3..ce79bce80d 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachment.md +++ b/kubernetes/docs/V1alpha1VolumeAttachment.md @@ -1,5 +1,6 @@ # V1alpha1VolumeAttachment +VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentList.md b/kubernetes/docs/V1alpha1VolumeAttachmentList.md index 01d0367783..de2881aea5 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentList.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentList.md @@ -1,5 +1,6 @@ # V1alpha1VolumeAttachmentList +VolumeAttachmentList is a collection of VolumeAttachment objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentSource.md b/kubernetes/docs/V1alpha1VolumeAttachmentSource.md index 2f0ce31d35..9e555a1e34 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentSource.md @@ -1,5 +1,6 @@ # V1alpha1VolumeAttachmentSource +VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md b/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md index 19faf42707..e749516be3 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md @@ -1,5 +1,6 @@ # V1alpha1VolumeAttachmentSpec +VolumeAttachmentSpec is the specification of a VolumeAttachment request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md b/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md index 0ae284ab40..e86aacfa3b 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md @@ -1,5 +1,6 @@ # V1alpha1VolumeAttachmentStatus +VolumeAttachmentStatus is the status of a VolumeAttachment request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1VolumeError.md b/kubernetes/docs/V1alpha1VolumeError.md index e0521bbd1c..50cc52dfdd 100644 --- a/kubernetes/docs/V1alpha1VolumeError.md +++ b/kubernetes/docs/V1alpha1VolumeError.md @@ -1,5 +1,6 @@ # V1alpha1VolumeError +VolumeError captures an error encountered during a volume operation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1Webhook.md b/kubernetes/docs/V1alpha1Webhook.md index 2d134ea877..cd1276c94a 100644 --- a/kubernetes/docs/V1alpha1Webhook.md +++ b/kubernetes/docs/V1alpha1Webhook.md @@ -1,5 +1,6 @@ # V1alpha1Webhook +Webhook holds the configuration of the webhook ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1WebhookClientConfig.md b/kubernetes/docs/V1alpha1WebhookClientConfig.md index 9b7941dbd0..b775191377 100644 --- a/kubernetes/docs/V1alpha1WebhookClientConfig.md +++ b/kubernetes/docs/V1alpha1WebhookClientConfig.md @@ -1,5 +1,6 @@ # V1alpha1WebhookClientConfig +WebhookClientConfig contains the information to make a connection with the webhook ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1alpha1WebhookThrottleConfig.md b/kubernetes/docs/V1alpha1WebhookThrottleConfig.md index 5a2f8e32d9..5bcb4611b6 100644 --- a/kubernetes/docs/V1alpha1WebhookThrottleConfig.md +++ b/kubernetes/docs/V1alpha1WebhookThrottleConfig.md @@ -1,5 +1,6 @@ # V1alpha1WebhookThrottleConfig +WebhookThrottleConfig holds the configuration for throttling events ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1APIService.md b/kubernetes/docs/V1beta1APIService.md index 90b2eb56d4..c780098201 100644 --- a/kubernetes/docs/V1beta1APIService.md +++ b/kubernetes/docs/V1beta1APIService.md @@ -1,5 +1,6 @@ # V1beta1APIService +APIService represents a server for a particular GroupVersion. Name must be \"version.group\". ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1APIServiceCondition.md b/kubernetes/docs/V1beta1APIServiceCondition.md index 3cacf4e54f..dd37084164 100644 --- a/kubernetes/docs/V1beta1APIServiceCondition.md +++ b/kubernetes/docs/V1beta1APIServiceCondition.md @@ -1,5 +1,6 @@ # V1beta1APIServiceCondition +APIServiceCondition describes the state of an APIService at a particular point ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1APIServiceList.md b/kubernetes/docs/V1beta1APIServiceList.md index 8f3e3108f6..a1b8302315 100644 --- a/kubernetes/docs/V1beta1APIServiceList.md +++ b/kubernetes/docs/V1beta1APIServiceList.md @@ -1,5 +1,6 @@ # V1beta1APIServiceList +APIServiceList is a list of APIService objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1APIServiceSpec.md b/kubernetes/docs/V1beta1APIServiceSpec.md index 563f8894cb..cdcabbcaae 100644 --- a/kubernetes/docs/V1beta1APIServiceSpec.md +++ b/kubernetes/docs/V1beta1APIServiceSpec.md @@ -1,5 +1,6 @@ # V1beta1APIServiceSpec +APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1APIServiceStatus.md b/kubernetes/docs/V1beta1APIServiceStatus.md index 9e8c3ef1d8..bbf8b9e5eb 100644 --- a/kubernetes/docs/V1beta1APIServiceStatus.md +++ b/kubernetes/docs/V1beta1APIServiceStatus.md @@ -1,5 +1,6 @@ # V1beta1APIServiceStatus +APIServiceStatus contains derived information about an API server ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1AggregationRule.md b/kubernetes/docs/V1beta1AggregationRule.md index 0ab6c21eb6..491eecb21a 100644 --- a/kubernetes/docs/V1beta1AggregationRule.md +++ b/kubernetes/docs/V1beta1AggregationRule.md @@ -1,5 +1,6 @@ # V1beta1AggregationRule +AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CSIDriver.md b/kubernetes/docs/V1beta1CSIDriver.md index 22f63ffc35..c7f2b635ab 100644 --- a/kubernetes/docs/V1beta1CSIDriver.md +++ b/kubernetes/docs/V1beta1CSIDriver.md @@ -1,5 +1,6 @@ # V1beta1CSIDriver +CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CSIDriverList.md b/kubernetes/docs/V1beta1CSIDriverList.md index 4b4f490b42..31e0b8d839 100644 --- a/kubernetes/docs/V1beta1CSIDriverList.md +++ b/kubernetes/docs/V1beta1CSIDriverList.md @@ -1,5 +1,6 @@ # V1beta1CSIDriverList +CSIDriverList is a collection of CSIDriver objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CSIDriverSpec.md b/kubernetes/docs/V1beta1CSIDriverSpec.md index 3bd60c814a..ef73b42a6a 100644 --- a/kubernetes/docs/V1beta1CSIDriverSpec.md +++ b/kubernetes/docs/V1beta1CSIDriverSpec.md @@ -1,5 +1,6 @@ # V1beta1CSIDriverSpec +CSIDriverSpec is the specification of a CSIDriver. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CSINode.md b/kubernetes/docs/V1beta1CSINode.md index 002d66c018..c0dd406ea0 100644 --- a/kubernetes/docs/V1beta1CSINode.md +++ b/kubernetes/docs/V1beta1CSINode.md @@ -1,5 +1,6 @@ # V1beta1CSINode +CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CSINodeDriver.md b/kubernetes/docs/V1beta1CSINodeDriver.md index 6c379b294e..d21c42d33a 100644 --- a/kubernetes/docs/V1beta1CSINodeDriver.md +++ b/kubernetes/docs/V1beta1CSINodeDriver.md @@ -1,5 +1,6 @@ # V1beta1CSINodeDriver +CSINodeDriver holds information about the specification of one CSI driver installed on a node ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CSINodeList.md b/kubernetes/docs/V1beta1CSINodeList.md index f40af0eba2..b11ccfb3bb 100644 --- a/kubernetes/docs/V1beta1CSINodeList.md +++ b/kubernetes/docs/V1beta1CSINodeList.md @@ -1,5 +1,6 @@ # V1beta1CSINodeList +CSINodeList is a collection of CSINode objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CSINodeSpec.md b/kubernetes/docs/V1beta1CSINodeSpec.md index 97a8ba58dd..7236461fb7 100644 --- a/kubernetes/docs/V1beta1CSINodeSpec.md +++ b/kubernetes/docs/V1beta1CSINodeSpec.md @@ -1,5 +1,6 @@ # V1beta1CSINodeSpec +CSINodeSpec holds information about the specification of all CSI drivers installed on a node ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CertificateSigningRequest.md b/kubernetes/docs/V1beta1CertificateSigningRequest.md index baf4c9006d..801f054620 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequest.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequest.md @@ -1,5 +1,6 @@ # V1beta1CertificateSigningRequest +Describes a certificate signing request ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md b/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md index dcb459f23b..80b98ae721 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md @@ -1,5 +1,6 @@ # V1beta1CertificateSigningRequestSpec +This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ClusterRole.md b/kubernetes/docs/V1beta1ClusterRole.md index 91d2fc8ee8..d8da72b876 100644 --- a/kubernetes/docs/V1beta1ClusterRole.md +++ b/kubernetes/docs/V1beta1ClusterRole.md @@ -1,5 +1,6 @@ # V1beta1ClusterRole +ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ClusterRoleBinding.md b/kubernetes/docs/V1beta1ClusterRoleBinding.md index fd1f66e07e..c33b8acdfb 100644 --- a/kubernetes/docs/V1beta1ClusterRoleBinding.md +++ b/kubernetes/docs/V1beta1ClusterRoleBinding.md @@ -1,5 +1,6 @@ # V1beta1ClusterRoleBinding +ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ClusterRoleBindingList.md b/kubernetes/docs/V1beta1ClusterRoleBindingList.md index 1f9f48ae3a..0fcdbddd5d 100644 --- a/kubernetes/docs/V1beta1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1beta1ClusterRoleBindingList.md @@ -1,5 +1,6 @@ # V1beta1ClusterRoleBindingList +ClusterRoleBindingList is a collection of ClusterRoleBindings ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ClusterRoleList.md b/kubernetes/docs/V1beta1ClusterRoleList.md index 18a3ab18a9..ce577617de 100644 --- a/kubernetes/docs/V1beta1ClusterRoleList.md +++ b/kubernetes/docs/V1beta1ClusterRoleList.md @@ -1,5 +1,6 @@ # V1beta1ClusterRoleList +ClusterRoleList is a collection of ClusterRoles ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ControllerRevision.md b/kubernetes/docs/V1beta1ControllerRevision.md index e36933b608..7d0a6ee6b5 100644 --- a/kubernetes/docs/V1beta1ControllerRevision.md +++ b/kubernetes/docs/V1beta1ControllerRevision.md @@ -1,5 +1,6 @@ # V1beta1ControllerRevision +DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the release notes for more information. ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and kubernetes.clients should not depend on its stability. It is primarily for internal use by controllers. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ControllerRevisionList.md b/kubernetes/docs/V1beta1ControllerRevisionList.md index 1ca316e422..968bef2a2a 100644 --- a/kubernetes/docs/V1beta1ControllerRevisionList.md +++ b/kubernetes/docs/V1beta1ControllerRevisionList.md @@ -1,5 +1,6 @@ # V1beta1ControllerRevisionList +ControllerRevisionList is a resource containing a list of ControllerRevision objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CronJob.md b/kubernetes/docs/V1beta1CronJob.md index 411ffefe15..84b0dc3b81 100644 --- a/kubernetes/docs/V1beta1CronJob.md +++ b/kubernetes/docs/V1beta1CronJob.md @@ -1,5 +1,6 @@ # V1beta1CronJob +CronJob represents the configuration of a single cron job. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CronJobList.md b/kubernetes/docs/V1beta1CronJobList.md index 6d8e9de39e..a7d9538354 100644 --- a/kubernetes/docs/V1beta1CronJobList.md +++ b/kubernetes/docs/V1beta1CronJobList.md @@ -1,5 +1,6 @@ # V1beta1CronJobList +CronJobList is a collection of cron jobs. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CronJobSpec.md b/kubernetes/docs/V1beta1CronJobSpec.md index 2defb44491..b062f8f408 100644 --- a/kubernetes/docs/V1beta1CronJobSpec.md +++ b/kubernetes/docs/V1beta1CronJobSpec.md @@ -1,5 +1,6 @@ # V1beta1CronJobSpec +CronJobSpec describes how the job execution will look like and when it will actually run. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CronJobStatus.md b/kubernetes/docs/V1beta1CronJobStatus.md index 07d5b8c592..670ec0003c 100644 --- a/kubernetes/docs/V1beta1CronJobStatus.md +++ b/kubernetes/docs/V1beta1CronJobStatus.md @@ -1,5 +1,6 @@ # V1beta1CronJobStatus +CronJobStatus represents the current state of a cron job. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceColumnDefinition.md b/kubernetes/docs/V1beta1CustomResourceColumnDefinition.md index f10cf64ac0..f0773bc9b1 100644 --- a/kubernetes/docs/V1beta1CustomResourceColumnDefinition.md +++ b/kubernetes/docs/V1beta1CustomResourceColumnDefinition.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceColumnDefinition +CustomResourceColumnDefinition specifies a column for server side printing. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceConversion.md b/kubernetes/docs/V1beta1CustomResourceConversion.md index fdd111d750..ef1820b2bd 100644 --- a/kubernetes/docs/V1beta1CustomResourceConversion.md +++ b/kubernetes/docs/V1beta1CustomResourceConversion.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceConversion +CustomResourceConversion describes how to convert different versions of a CR. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceDefinition.md b/kubernetes/docs/V1beta1CustomResourceDefinition.md index bfe98a5588..8f75b2ecb0 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinition.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinition.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceDefinition +CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.19. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md b/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md index 1cf4d92d0e..a839d3e9d1 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceDefinitionCondition +CustomResourceDefinitionCondition contains details for the current condition of this pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionList.md b/kubernetes/docs/V1beta1CustomResourceDefinitionList.md index 2ad40451b7..81397cfcfe 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionList.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionList.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceDefinitionList +CustomResourceDefinitionList is a list of CustomResourceDefinition objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionNames.md b/kubernetes/docs/V1beta1CustomResourceDefinitionNames.md index 3b0f16c903..a991da0d09 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionNames.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionNames.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceDefinitionNames +CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md b/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md index 4078986d5f..ae0d9b42bd 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceDefinitionSpec +CustomResourceDefinitionSpec describes how a user wants their resource to appear ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md b/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md index 00de4c9918..08d4331540 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceDefinitionStatus +CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md b/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md index ccd3ad21f1..73c6445ab6 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceDefinitionVersion +CustomResourceDefinitionVersion describes a version for CRD. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md b/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md index 8719ec2771..3aed5efe6e 100644 --- a/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md +++ b/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceSubresourceScale +CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceSubresources.md b/kubernetes/docs/V1beta1CustomResourceSubresources.md index e8f5d2aff4..1ba6fa9276 100644 --- a/kubernetes/docs/V1beta1CustomResourceSubresources.md +++ b/kubernetes/docs/V1beta1CustomResourceSubresources.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceSubresources +CustomResourceSubresources defines the status and scale subresources for CustomResources. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1CustomResourceValidation.md b/kubernetes/docs/V1beta1CustomResourceValidation.md index c3c6d32244..684e22328b 100644 --- a/kubernetes/docs/V1beta1CustomResourceValidation.md +++ b/kubernetes/docs/V1beta1CustomResourceValidation.md @@ -1,5 +1,6 @@ # V1beta1CustomResourceValidation +CustomResourceValidation is a list of validation methods for CustomResources. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1DaemonSet.md b/kubernetes/docs/V1beta1DaemonSet.md index cb9b0e85fd..0d1799e61d 100644 --- a/kubernetes/docs/V1beta1DaemonSet.md +++ b/kubernetes/docs/V1beta1DaemonSet.md @@ -1,5 +1,6 @@ # V1beta1DaemonSet +DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1DaemonSetCondition.md b/kubernetes/docs/V1beta1DaemonSetCondition.md index c6f3634feb..c0c77feaa6 100644 --- a/kubernetes/docs/V1beta1DaemonSetCondition.md +++ b/kubernetes/docs/V1beta1DaemonSetCondition.md @@ -1,5 +1,6 @@ # V1beta1DaemonSetCondition +DaemonSetCondition describes the state of a DaemonSet at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1DaemonSetList.md b/kubernetes/docs/V1beta1DaemonSetList.md index 53d2f7e823..311cd44ab5 100644 --- a/kubernetes/docs/V1beta1DaemonSetList.md +++ b/kubernetes/docs/V1beta1DaemonSetList.md @@ -1,5 +1,6 @@ # V1beta1DaemonSetList +DaemonSetList is a collection of daemon sets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1DaemonSetSpec.md b/kubernetes/docs/V1beta1DaemonSetSpec.md index 44c33f3fa8..b0a78153f8 100644 --- a/kubernetes/docs/V1beta1DaemonSetSpec.md +++ b/kubernetes/docs/V1beta1DaemonSetSpec.md @@ -1,5 +1,6 @@ # V1beta1DaemonSetSpec +DaemonSetSpec is the specification of a daemon set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1DaemonSetStatus.md b/kubernetes/docs/V1beta1DaemonSetStatus.md index 5ee9d70055..bbd42bb1f1 100644 --- a/kubernetes/docs/V1beta1DaemonSetStatus.md +++ b/kubernetes/docs/V1beta1DaemonSetStatus.md @@ -1,5 +1,6 @@ # V1beta1DaemonSetStatus +DaemonSetStatus represents the current status of a daemon set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1Event.md b/kubernetes/docs/V1beta1Event.md index b40659b785..3fbb168739 100644 --- a/kubernetes/docs/V1beta1Event.md +++ b/kubernetes/docs/V1beta1Event.md @@ -1,5 +1,6 @@ # V1beta1Event +Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1EventList.md b/kubernetes/docs/V1beta1EventList.md index 6d3d6c015d..09309c381b 100644 --- a/kubernetes/docs/V1beta1EventList.md +++ b/kubernetes/docs/V1beta1EventList.md @@ -1,5 +1,6 @@ # V1beta1EventList +EventList is a list of Event objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1EventSeries.md b/kubernetes/docs/V1beta1EventSeries.md index 64bca1d9e2..fc90d9f60a 100644 --- a/kubernetes/docs/V1beta1EventSeries.md +++ b/kubernetes/docs/V1beta1EventSeries.md @@ -1,5 +1,6 @@ # V1beta1EventSeries +EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1Eviction.md b/kubernetes/docs/V1beta1Eviction.md index 83321825d8..c5e994ece5 100644 --- a/kubernetes/docs/V1beta1Eviction.md +++ b/kubernetes/docs/V1beta1Eviction.md @@ -1,5 +1,6 @@ # V1beta1Eviction +Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ExternalDocumentation.md b/kubernetes/docs/V1beta1ExternalDocumentation.md index ba031ef6cc..67651ff35a 100644 --- a/kubernetes/docs/V1beta1ExternalDocumentation.md +++ b/kubernetes/docs/V1beta1ExternalDocumentation.md @@ -1,5 +1,6 @@ # V1beta1ExternalDocumentation +ExternalDocumentation allows referencing an external resource for extended documentation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1IPBlock.md b/kubernetes/docs/V1beta1IPBlock.md index 799701a1cc..cf3b1d49e3 100644 --- a/kubernetes/docs/V1beta1IPBlock.md +++ b/kubernetes/docs/V1beta1IPBlock.md @@ -1,5 +1,6 @@ # V1beta1IPBlock +DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1JSONSchemaProps.md b/kubernetes/docs/V1beta1JSONSchemaProps.md index 3d2987c407..7139adc722 100644 --- a/kubernetes/docs/V1beta1JSONSchemaProps.md +++ b/kubernetes/docs/V1beta1JSONSchemaProps.md @@ -1,5 +1,6 @@ # V1beta1JSONSchemaProps +JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1JobTemplateSpec.md b/kubernetes/docs/V1beta1JobTemplateSpec.md index 0ea109e270..f162b4cd18 100644 --- a/kubernetes/docs/V1beta1JobTemplateSpec.md +++ b/kubernetes/docs/V1beta1JobTemplateSpec.md @@ -1,5 +1,6 @@ # V1beta1JobTemplateSpec +JobTemplateSpec describes the data a Job should have when created from a template ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1Lease.md b/kubernetes/docs/V1beta1Lease.md index 420b1f621d..369f6dc6f6 100644 --- a/kubernetes/docs/V1beta1Lease.md +++ b/kubernetes/docs/V1beta1Lease.md @@ -1,5 +1,6 @@ # V1beta1Lease +Lease defines a lease concept. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1LeaseList.md b/kubernetes/docs/V1beta1LeaseList.md index f16257a58e..22343ca299 100644 --- a/kubernetes/docs/V1beta1LeaseList.md +++ b/kubernetes/docs/V1beta1LeaseList.md @@ -1,5 +1,6 @@ # V1beta1LeaseList +LeaseList is a list of Lease objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1LeaseSpec.md b/kubernetes/docs/V1beta1LeaseSpec.md index 598d3a4a0f..cdb11e4530 100644 --- a/kubernetes/docs/V1beta1LeaseSpec.md +++ b/kubernetes/docs/V1beta1LeaseSpec.md @@ -1,5 +1,6 @@ # V1beta1LeaseSpec +LeaseSpec is a specification of a Lease. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md b/kubernetes/docs/V1beta1LocalSubjectAccessReview.md index c117cb611b..c6ad173293 100644 --- a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md +++ b/kubernetes/docs/V1beta1LocalSubjectAccessReview.md @@ -1,5 +1,6 @@ # V1beta1LocalSubjectAccessReview +LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1MutatingWebhook.md b/kubernetes/docs/V1beta1MutatingWebhook.md index 73b441e7b4..b42c63dcbb 100644 --- a/kubernetes/docs/V1beta1MutatingWebhook.md +++ b/kubernetes/docs/V1beta1MutatingWebhook.md @@ -1,5 +1,6 @@ # V1beta1MutatingWebhook +MutatingWebhook describes an admission webhook and the resources and operations it applies to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md b/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md index cc03cf5d2f..f9acbbafd3 100644 --- a/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md +++ b/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md @@ -1,5 +1,6 @@ # V1beta1MutatingWebhookConfiguration +MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md b/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md index 148699fb42..a05a803a2b 100644 --- a/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md @@ -1,5 +1,6 @@ # V1beta1MutatingWebhookConfigurationList +MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1NetworkPolicy.md b/kubernetes/docs/V1beta1NetworkPolicy.md index 1a806293b8..1478650301 100644 --- a/kubernetes/docs/V1beta1NetworkPolicy.md +++ b/kubernetes/docs/V1beta1NetworkPolicy.md @@ -1,5 +1,6 @@ # V1beta1NetworkPolicy +DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1NetworkPolicyEgressRule.md b/kubernetes/docs/V1beta1NetworkPolicyEgressRule.md index 6563b2d8a4..d77f90d92e 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyEgressRule.md +++ b/kubernetes/docs/V1beta1NetworkPolicyEgressRule.md @@ -1,5 +1,6 @@ # V1beta1NetworkPolicyEgressRule +DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md b/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md index 94e6f74648..7398b69521 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md +++ b/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md @@ -1,5 +1,6 @@ # V1beta1NetworkPolicyIngressRule +DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1NetworkPolicyList.md b/kubernetes/docs/V1beta1NetworkPolicyList.md index d9c08ca02e..6799204ff1 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyList.md +++ b/kubernetes/docs/V1beta1NetworkPolicyList.md @@ -1,5 +1,6 @@ # V1beta1NetworkPolicyList +DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1NetworkPolicyPeer.md b/kubernetes/docs/V1beta1NetworkPolicyPeer.md index a4148efe40..046d183c22 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyPeer.md +++ b/kubernetes/docs/V1beta1NetworkPolicyPeer.md @@ -1,5 +1,6 @@ # V1beta1NetworkPolicyPeer +DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1NetworkPolicyPort.md b/kubernetes/docs/V1beta1NetworkPolicyPort.md index 5a628bb919..165ab70f56 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyPort.md +++ b/kubernetes/docs/V1beta1NetworkPolicyPort.md @@ -1,5 +1,6 @@ # V1beta1NetworkPolicyPort +DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1NetworkPolicySpec.md b/kubernetes/docs/V1beta1NetworkPolicySpec.md index c157c4ff30..84ce2f349d 100644 --- a/kubernetes/docs/V1beta1NetworkPolicySpec.md +++ b/kubernetes/docs/V1beta1NetworkPolicySpec.md @@ -1,5 +1,6 @@ # V1beta1NetworkPolicySpec +DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1NonResourceAttributes.md b/kubernetes/docs/V1beta1NonResourceAttributes.md index 3131ba5320..3e5244e8a4 100644 --- a/kubernetes/docs/V1beta1NonResourceAttributes.md +++ b/kubernetes/docs/V1beta1NonResourceAttributes.md @@ -1,5 +1,6 @@ # V1beta1NonResourceAttributes +NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1NonResourceRule.md b/kubernetes/docs/V1beta1NonResourceRule.md index 0b41469d31..331f3f7437 100644 --- a/kubernetes/docs/V1beta1NonResourceRule.md +++ b/kubernetes/docs/V1beta1NonResourceRule.md @@ -1,5 +1,6 @@ # V1beta1NonResourceRule +NonResourceRule holds information that describes a rule for the non-resource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1Overhead.md b/kubernetes/docs/V1beta1Overhead.md index cb2e948f90..7a55eeb3e8 100644 --- a/kubernetes/docs/V1beta1Overhead.md +++ b/kubernetes/docs/V1beta1Overhead.md @@ -1,5 +1,6 @@ # V1beta1Overhead +Overhead structure represents the resource overhead associated with running a pod. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1PodDisruptionBudget.md b/kubernetes/docs/V1beta1PodDisruptionBudget.md index 87346766e3..8cc489d445 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudget.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudget.md @@ -1,5 +1,6 @@ # V1beta1PodDisruptionBudget +PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md index bca8f698c5..6dd6eff753 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md @@ -1,5 +1,6 @@ # V1beta1PodDisruptionBudgetList +PodDisruptionBudgetList is a collection of PodDisruptionBudgets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md index 1306345d1b..ad7e5226e2 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md @@ -1,5 +1,6 @@ # V1beta1PodDisruptionBudgetSpec +PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md index 6b02ae7fe2..830349f74e 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md @@ -1,5 +1,6 @@ # V1beta1PodDisruptionBudgetStatus +PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1PolicyRule.md b/kubernetes/docs/V1beta1PolicyRule.md index 68051e521a..2bffe908ee 100644 --- a/kubernetes/docs/V1beta1PolicyRule.md +++ b/kubernetes/docs/V1beta1PolicyRule.md @@ -1,5 +1,6 @@ # V1beta1PolicyRule +PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1PriorityClass.md b/kubernetes/docs/V1beta1PriorityClass.md index 97ad6927b3..585f478151 100644 --- a/kubernetes/docs/V1beta1PriorityClass.md +++ b/kubernetes/docs/V1beta1PriorityClass.md @@ -1,5 +1,6 @@ # V1beta1PriorityClass +DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1PriorityClassList.md b/kubernetes/docs/V1beta1PriorityClassList.md index 936c019eeb..c6107d4228 100644 --- a/kubernetes/docs/V1beta1PriorityClassList.md +++ b/kubernetes/docs/V1beta1PriorityClassList.md @@ -1,5 +1,6 @@ # V1beta1PriorityClassList +PriorityClassList is a collection of priority classes. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ReplicaSet.md b/kubernetes/docs/V1beta1ReplicaSet.md index ecc0699d7c..86485c6909 100644 --- a/kubernetes/docs/V1beta1ReplicaSet.md +++ b/kubernetes/docs/V1beta1ReplicaSet.md @@ -1,5 +1,6 @@ # V1beta1ReplicaSet +DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for more information. ReplicaSet ensures that a specified number of pod replicas are running at any given time. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ReplicaSetCondition.md b/kubernetes/docs/V1beta1ReplicaSetCondition.md index e32d55f682..df07ae3b4c 100644 --- a/kubernetes/docs/V1beta1ReplicaSetCondition.md +++ b/kubernetes/docs/V1beta1ReplicaSetCondition.md @@ -1,5 +1,6 @@ # V1beta1ReplicaSetCondition +ReplicaSetCondition describes the state of a replica set at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ReplicaSetList.md b/kubernetes/docs/V1beta1ReplicaSetList.md index 961728207b..4deb328963 100644 --- a/kubernetes/docs/V1beta1ReplicaSetList.md +++ b/kubernetes/docs/V1beta1ReplicaSetList.md @@ -1,5 +1,6 @@ # V1beta1ReplicaSetList +ReplicaSetList is a collection of ReplicaSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ReplicaSetSpec.md b/kubernetes/docs/V1beta1ReplicaSetSpec.md index 058b007ed4..2ac7bf8ee8 100644 --- a/kubernetes/docs/V1beta1ReplicaSetSpec.md +++ b/kubernetes/docs/V1beta1ReplicaSetSpec.md @@ -1,5 +1,6 @@ # V1beta1ReplicaSetSpec +ReplicaSetSpec is the specification of a ReplicaSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ReplicaSetStatus.md b/kubernetes/docs/V1beta1ReplicaSetStatus.md index 3378a17b65..8b2e0ef6e8 100644 --- a/kubernetes/docs/V1beta1ReplicaSetStatus.md +++ b/kubernetes/docs/V1beta1ReplicaSetStatus.md @@ -1,5 +1,6 @@ # V1beta1ReplicaSetStatus +ReplicaSetStatus represents the current status of a ReplicaSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ResourceAttributes.md b/kubernetes/docs/V1beta1ResourceAttributes.md index 196bd99082..1bcb901d35 100644 --- a/kubernetes/docs/V1beta1ResourceAttributes.md +++ b/kubernetes/docs/V1beta1ResourceAttributes.md @@ -1,5 +1,6 @@ # V1beta1ResourceAttributes +ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ResourceRule.md b/kubernetes/docs/V1beta1ResourceRule.md index 41f100ff30..77b6feb8a9 100644 --- a/kubernetes/docs/V1beta1ResourceRule.md +++ b/kubernetes/docs/V1beta1ResourceRule.md @@ -1,5 +1,6 @@ # V1beta1ResourceRule +ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1Role.md b/kubernetes/docs/V1beta1Role.md index d55081e67f..688c77125a 100644 --- a/kubernetes/docs/V1beta1Role.md +++ b/kubernetes/docs/V1beta1Role.md @@ -1,5 +1,6 @@ # V1beta1Role +Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1RoleBinding.md b/kubernetes/docs/V1beta1RoleBinding.md index ecb823933d..8eaf0f499f 100644 --- a/kubernetes/docs/V1beta1RoleBinding.md +++ b/kubernetes/docs/V1beta1RoleBinding.md @@ -1,5 +1,6 @@ # V1beta1RoleBinding +RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1RoleBindingList.md b/kubernetes/docs/V1beta1RoleBindingList.md index 54421fb246..6c08172256 100644 --- a/kubernetes/docs/V1beta1RoleBindingList.md +++ b/kubernetes/docs/V1beta1RoleBindingList.md @@ -1,5 +1,6 @@ # V1beta1RoleBindingList +RoleBindingList is a collection of RoleBindings ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1RoleList.md b/kubernetes/docs/V1beta1RoleList.md index 15ad91a071..cc06d62b50 100644 --- a/kubernetes/docs/V1beta1RoleList.md +++ b/kubernetes/docs/V1beta1RoleList.md @@ -1,5 +1,6 @@ # V1beta1RoleList +RoleList is a collection of Roles ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1RoleRef.md b/kubernetes/docs/V1beta1RoleRef.md index 65220ffb6a..a380c83f9d 100644 --- a/kubernetes/docs/V1beta1RoleRef.md +++ b/kubernetes/docs/V1beta1RoleRef.md @@ -1,5 +1,6 @@ # V1beta1RoleRef +RoleRef contains information that points to the role being used ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md index 5d5971faff..e2d470062c 100644 --- a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md @@ -1,5 +1,6 @@ # V1beta1RollingUpdateDaemonSet +Spec to control the desired behavior of daemon set rolling update. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1RollingUpdateStatefulSetStrategy.md b/kubernetes/docs/V1beta1RollingUpdateStatefulSetStrategy.md index 7372cd599b..0f6bf1e65f 100644 --- a/kubernetes/docs/V1beta1RollingUpdateStatefulSetStrategy.md +++ b/kubernetes/docs/V1beta1RollingUpdateStatefulSetStrategy.md @@ -1,5 +1,6 @@ # V1beta1RollingUpdateStatefulSetStrategy +RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1RuleWithOperations.md b/kubernetes/docs/V1beta1RuleWithOperations.md index 797ac4c1ed..a7ee44b09d 100644 --- a/kubernetes/docs/V1beta1RuleWithOperations.md +++ b/kubernetes/docs/V1beta1RuleWithOperations.md @@ -1,5 +1,6 @@ # V1beta1RuleWithOperations +RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1RuntimeClass.md b/kubernetes/docs/V1beta1RuntimeClass.md index 7c3719dcaa..a807c9b3e9 100644 --- a/kubernetes/docs/V1beta1RuntimeClass.md +++ b/kubernetes/docs/V1beta1RuntimeClass.md @@ -1,5 +1,6 @@ # V1beta1RuntimeClass +RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1RuntimeClassList.md b/kubernetes/docs/V1beta1RuntimeClassList.md index 521dfdf275..1144d0cf5e 100644 --- a/kubernetes/docs/V1beta1RuntimeClassList.md +++ b/kubernetes/docs/V1beta1RuntimeClassList.md @@ -1,5 +1,6 @@ # V1beta1RuntimeClassList +RuntimeClassList is a list of RuntimeClass objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1Scheduling.md b/kubernetes/docs/V1beta1Scheduling.md index f5773a196f..c01c623f2f 100644 --- a/kubernetes/docs/V1beta1Scheduling.md +++ b/kubernetes/docs/V1beta1Scheduling.md @@ -1,5 +1,6 @@ # V1beta1Scheduling +Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md b/kubernetes/docs/V1beta1SelfSubjectAccessReview.md index 4dcf4f9f0d..d401eb66ee 100644 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md +++ b/kubernetes/docs/V1beta1SelfSubjectAccessReview.md @@ -1,5 +1,6 @@ # V1beta1SelfSubjectAccessReview +SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md index 8ada5ca73f..72976e0bc7 100644 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md @@ -1,5 +1,6 @@ # V1beta1SelfSubjectAccessReviewSpec +SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1SelfSubjectRulesReview.md b/kubernetes/docs/V1beta1SelfSubjectRulesReview.md index 04650d1737..61528af814 100644 --- a/kubernetes/docs/V1beta1SelfSubjectRulesReview.md +++ b/kubernetes/docs/V1beta1SelfSubjectRulesReview.md @@ -1,5 +1,6 @@ # V1beta1SelfSubjectRulesReview +SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1StatefulSet.md b/kubernetes/docs/V1beta1StatefulSet.md index 227ab8aa1d..f496469fea 100644 --- a/kubernetes/docs/V1beta1StatefulSet.md +++ b/kubernetes/docs/V1beta1StatefulSet.md @@ -1,5 +1,6 @@ # V1beta1StatefulSet +DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for more information. StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1StatefulSetCondition.md b/kubernetes/docs/V1beta1StatefulSetCondition.md index 21974b1226..bd9755e173 100644 --- a/kubernetes/docs/V1beta1StatefulSetCondition.md +++ b/kubernetes/docs/V1beta1StatefulSetCondition.md @@ -1,5 +1,6 @@ # V1beta1StatefulSetCondition +StatefulSetCondition describes the state of a statefulset at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1StatefulSetList.md b/kubernetes/docs/V1beta1StatefulSetList.md index 71c45c6ec4..c2e6c13adc 100644 --- a/kubernetes/docs/V1beta1StatefulSetList.md +++ b/kubernetes/docs/V1beta1StatefulSetList.md @@ -1,5 +1,6 @@ # V1beta1StatefulSetList +StatefulSetList is a collection of StatefulSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1StatefulSetSpec.md b/kubernetes/docs/V1beta1StatefulSetSpec.md index 23865e07a8..8f12387900 100644 --- a/kubernetes/docs/V1beta1StatefulSetSpec.md +++ b/kubernetes/docs/V1beta1StatefulSetSpec.md @@ -1,5 +1,6 @@ # V1beta1StatefulSetSpec +A StatefulSetSpec is the specification of a StatefulSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1StatefulSetStatus.md b/kubernetes/docs/V1beta1StatefulSetStatus.md index f3893f1e94..a308397656 100644 --- a/kubernetes/docs/V1beta1StatefulSetStatus.md +++ b/kubernetes/docs/V1beta1StatefulSetStatus.md @@ -1,5 +1,6 @@ # V1beta1StatefulSetStatus +StatefulSetStatus represents the current state of a StatefulSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md b/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md index 147347d822..20940130d8 100644 --- a/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md @@ -1,5 +1,6 @@ # V1beta1StatefulSetUpdateStrategy +StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1StorageClass.md b/kubernetes/docs/V1beta1StorageClass.md index 6bb26335a0..9193c5fe7a 100644 --- a/kubernetes/docs/V1beta1StorageClass.md +++ b/kubernetes/docs/V1beta1StorageClass.md @@ -1,5 +1,6 @@ # V1beta1StorageClass +StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1StorageClassList.md b/kubernetes/docs/V1beta1StorageClassList.md index 92c0eaf4de..39d06dc940 100644 --- a/kubernetes/docs/V1beta1StorageClassList.md +++ b/kubernetes/docs/V1beta1StorageClassList.md @@ -1,5 +1,6 @@ # V1beta1StorageClassList +StorageClassList is a collection of storage classes. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1Subject.md b/kubernetes/docs/V1beta1Subject.md index 2423ffdeee..8b39bb4e5f 100644 --- a/kubernetes/docs/V1beta1Subject.md +++ b/kubernetes/docs/V1beta1Subject.md @@ -1,5 +1,6 @@ # V1beta1Subject +Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1SubjectAccessReview.md b/kubernetes/docs/V1beta1SubjectAccessReview.md index d08fb1eef9..60576eac9f 100644 --- a/kubernetes/docs/V1beta1SubjectAccessReview.md +++ b/kubernetes/docs/V1beta1SubjectAccessReview.md @@ -1,5 +1,6 @@ # V1beta1SubjectAccessReview +SubjectAccessReview checks whether or not a user or group can perform an action. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md index af50d1b3bc..ead4f86a12 100644 --- a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md @@ -1,5 +1,6 @@ # V1beta1SubjectAccessReviewSpec +SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md b/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md index 83769a81a8..cffae67a94 100644 --- a/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md +++ b/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md @@ -1,5 +1,6 @@ # V1beta1SubjectAccessReviewStatus +SubjectAccessReviewStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1SubjectRulesReviewStatus.md b/kubernetes/docs/V1beta1SubjectRulesReviewStatus.md index 9f8c3fc9ac..a4ff20a118 100644 --- a/kubernetes/docs/V1beta1SubjectRulesReviewStatus.md +++ b/kubernetes/docs/V1beta1SubjectRulesReviewStatus.md @@ -1,5 +1,6 @@ # V1beta1SubjectRulesReviewStatus +SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1TokenReview.md b/kubernetes/docs/V1beta1TokenReview.md index b7865c0534..ad0a31cd28 100644 --- a/kubernetes/docs/V1beta1TokenReview.md +++ b/kubernetes/docs/V1beta1TokenReview.md @@ -1,5 +1,6 @@ # V1beta1TokenReview +TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1TokenReviewSpec.md b/kubernetes/docs/V1beta1TokenReviewSpec.md index d85761cb51..f7a70f0dd1 100644 --- a/kubernetes/docs/V1beta1TokenReviewSpec.md +++ b/kubernetes/docs/V1beta1TokenReviewSpec.md @@ -1,5 +1,6 @@ # V1beta1TokenReviewSpec +TokenReviewSpec is a description of the token authentication request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1TokenReviewStatus.md b/kubernetes/docs/V1beta1TokenReviewStatus.md index c1bcae7846..b6f96e1836 100644 --- a/kubernetes/docs/V1beta1TokenReviewStatus.md +++ b/kubernetes/docs/V1beta1TokenReviewStatus.md @@ -1,5 +1,6 @@ # V1beta1TokenReviewStatus +TokenReviewStatus is the result of the token authentication request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1UserInfo.md b/kubernetes/docs/V1beta1UserInfo.md index 7ba32fe5bb..2cd1f08414 100644 --- a/kubernetes/docs/V1beta1UserInfo.md +++ b/kubernetes/docs/V1beta1UserInfo.md @@ -1,5 +1,6 @@ # V1beta1UserInfo +UserInfo holds the information about the user needed to implement the user.Info interface. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ValidatingWebhook.md b/kubernetes/docs/V1beta1ValidatingWebhook.md index f7f65f9cc9..75b2754f26 100644 --- a/kubernetes/docs/V1beta1ValidatingWebhook.md +++ b/kubernetes/docs/V1beta1ValidatingWebhook.md @@ -1,5 +1,6 @@ # V1beta1ValidatingWebhook +ValidatingWebhook describes an admission webhook and the resources and operations it applies to. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md b/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md index eecdca5614..a59a9a5ed0 100644 --- a/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md +++ b/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md @@ -1,5 +1,6 @@ # V1beta1ValidatingWebhookConfiguration +ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md b/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md index f9f32913ba..9b78c23bc4 100644 --- a/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md @@ -1,5 +1,6 @@ # V1beta1ValidatingWebhookConfigurationList +ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1VolumeAttachment.md b/kubernetes/docs/V1beta1VolumeAttachment.md index 8a810963c4..dfc9341003 100644 --- a/kubernetes/docs/V1beta1VolumeAttachment.md +++ b/kubernetes/docs/V1beta1VolumeAttachment.md @@ -1,5 +1,6 @@ # V1beta1VolumeAttachment +VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1VolumeAttachmentList.md b/kubernetes/docs/V1beta1VolumeAttachmentList.md index 87a3fb88c1..3820d0ee1a 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentList.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentList.md @@ -1,5 +1,6 @@ # V1beta1VolumeAttachmentList +VolumeAttachmentList is a collection of VolumeAttachment objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1VolumeAttachmentSource.md b/kubernetes/docs/V1beta1VolumeAttachmentSource.md index dfdfd6aa9b..28b003e7fe 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentSource.md @@ -1,5 +1,6 @@ # V1beta1VolumeAttachmentSource +VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1VolumeAttachmentSpec.md b/kubernetes/docs/V1beta1VolumeAttachmentSpec.md index c0ae1237ac..b0c78ec5d5 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentSpec.md @@ -1,5 +1,6 @@ # V1beta1VolumeAttachmentSpec +VolumeAttachmentSpec is the specification of a VolumeAttachment request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1VolumeAttachmentStatus.md b/kubernetes/docs/V1beta1VolumeAttachmentStatus.md index 8b6a2c8b6e..20c0846ec6 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentStatus.md @@ -1,5 +1,6 @@ # V1beta1VolumeAttachmentStatus +VolumeAttachmentStatus is the status of a VolumeAttachment request. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1VolumeError.md b/kubernetes/docs/V1beta1VolumeError.md index 160dd39b5f..cd55353283 100644 --- a/kubernetes/docs/V1beta1VolumeError.md +++ b/kubernetes/docs/V1beta1VolumeError.md @@ -1,5 +1,6 @@ # V1beta1VolumeError +VolumeError captures an error encountered during a volume operation. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta1VolumeNodeResources.md b/kubernetes/docs/V1beta1VolumeNodeResources.md index d6cec9c248..cc9536d432 100644 --- a/kubernetes/docs/V1beta1VolumeNodeResources.md +++ b/kubernetes/docs/V1beta1VolumeNodeResources.md @@ -1,5 +1,6 @@ # V1beta1VolumeNodeResources +VolumeNodeResources is a set of resource limits for scheduling of volumes. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2ControllerRevision.md b/kubernetes/docs/V1beta2ControllerRevision.md index e283aeb4e0..cde67df222 100644 --- a/kubernetes/docs/V1beta2ControllerRevision.md +++ b/kubernetes/docs/V1beta2ControllerRevision.md @@ -1,5 +1,6 @@ # V1beta2ControllerRevision +DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1/ControllerRevision. See the release notes for more information. ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and kubernetes.clients should not depend on its stability. It is primarily for internal use by controllers. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2ControllerRevisionList.md b/kubernetes/docs/V1beta2ControllerRevisionList.md index 835871bd99..daa36e1394 100644 --- a/kubernetes/docs/V1beta2ControllerRevisionList.md +++ b/kubernetes/docs/V1beta2ControllerRevisionList.md @@ -1,5 +1,6 @@ # V1beta2ControllerRevisionList +ControllerRevisionList is a resource containing a list of ControllerRevision objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DaemonSet.md b/kubernetes/docs/V1beta2DaemonSet.md index 558f7ce1ad..3117ca2e53 100644 --- a/kubernetes/docs/V1beta2DaemonSet.md +++ b/kubernetes/docs/V1beta2DaemonSet.md @@ -1,5 +1,6 @@ # V1beta2DaemonSet +DEPRECATED - This group version of DaemonSet is deprecated by apps/v1/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DaemonSetCondition.md b/kubernetes/docs/V1beta2DaemonSetCondition.md index 1d9e879c22..8c79f76eb3 100644 --- a/kubernetes/docs/V1beta2DaemonSetCondition.md +++ b/kubernetes/docs/V1beta2DaemonSetCondition.md @@ -1,5 +1,6 @@ # V1beta2DaemonSetCondition +DaemonSetCondition describes the state of a DaemonSet at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DaemonSetList.md b/kubernetes/docs/V1beta2DaemonSetList.md index aad4ef653d..edda9c5c0e 100644 --- a/kubernetes/docs/V1beta2DaemonSetList.md +++ b/kubernetes/docs/V1beta2DaemonSetList.md @@ -1,5 +1,6 @@ # V1beta2DaemonSetList +DaemonSetList is a collection of daemon sets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DaemonSetSpec.md b/kubernetes/docs/V1beta2DaemonSetSpec.md index 8332a2fb61..9b6dfb9399 100644 --- a/kubernetes/docs/V1beta2DaemonSetSpec.md +++ b/kubernetes/docs/V1beta2DaemonSetSpec.md @@ -1,5 +1,6 @@ # V1beta2DaemonSetSpec +DaemonSetSpec is the specification of a daemon set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DaemonSetStatus.md b/kubernetes/docs/V1beta2DaemonSetStatus.md index d4a244889b..d7ccf17fcb 100644 --- a/kubernetes/docs/V1beta2DaemonSetStatus.md +++ b/kubernetes/docs/V1beta2DaemonSetStatus.md @@ -1,5 +1,6 @@ # V1beta2DaemonSetStatus +DaemonSetStatus represents the current status of a daemon set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md b/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md index 8e4275f484..c4986f912c 100644 --- a/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md @@ -1,5 +1,6 @@ # V1beta2DaemonSetUpdateStrategy +DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2Deployment.md b/kubernetes/docs/V1beta2Deployment.md index a33be49b42..0b6d3335cf 100644 --- a/kubernetes/docs/V1beta2Deployment.md +++ b/kubernetes/docs/V1beta2Deployment.md @@ -1,5 +1,6 @@ # V1beta2Deployment +DEPRECATED - This group version of Deployment is deprecated by apps/v1/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DeploymentCondition.md b/kubernetes/docs/V1beta2DeploymentCondition.md index 422c2fef65..fb961b49e2 100644 --- a/kubernetes/docs/V1beta2DeploymentCondition.md +++ b/kubernetes/docs/V1beta2DeploymentCondition.md @@ -1,5 +1,6 @@ # V1beta2DeploymentCondition +DeploymentCondition describes the state of a deployment at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DeploymentList.md b/kubernetes/docs/V1beta2DeploymentList.md index b7948c851d..b45013148a 100644 --- a/kubernetes/docs/V1beta2DeploymentList.md +++ b/kubernetes/docs/V1beta2DeploymentList.md @@ -1,5 +1,6 @@ # V1beta2DeploymentList +DeploymentList is a list of Deployments. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DeploymentSpec.md b/kubernetes/docs/V1beta2DeploymentSpec.md index 27210ba33f..b37ae7bd21 100644 --- a/kubernetes/docs/V1beta2DeploymentSpec.md +++ b/kubernetes/docs/V1beta2DeploymentSpec.md @@ -1,5 +1,6 @@ # V1beta2DeploymentSpec +DeploymentSpec is the specification of the desired behavior of the Deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DeploymentStatus.md b/kubernetes/docs/V1beta2DeploymentStatus.md index 7f77304542..9b9e9f446d 100644 --- a/kubernetes/docs/V1beta2DeploymentStatus.md +++ b/kubernetes/docs/V1beta2DeploymentStatus.md @@ -1,5 +1,6 @@ # V1beta2DeploymentStatus +DeploymentStatus is the most recently observed status of the Deployment. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2DeploymentStrategy.md b/kubernetes/docs/V1beta2DeploymentStrategy.md index bf38e00dc9..96f364f4ed 100644 --- a/kubernetes/docs/V1beta2DeploymentStrategy.md +++ b/kubernetes/docs/V1beta2DeploymentStrategy.md @@ -1,5 +1,6 @@ # V1beta2DeploymentStrategy +DeploymentStrategy describes how to replace existing pods with new ones. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2ReplicaSet.md b/kubernetes/docs/V1beta2ReplicaSet.md index 319ba0e667..982c935bba 100644 --- a/kubernetes/docs/V1beta2ReplicaSet.md +++ b/kubernetes/docs/V1beta2ReplicaSet.md @@ -1,5 +1,6 @@ # V1beta2ReplicaSet +DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1/ReplicaSet. See the release notes for more information. ReplicaSet ensures that a specified number of pod replicas are running at any given time. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2ReplicaSetCondition.md b/kubernetes/docs/V1beta2ReplicaSetCondition.md index d07c081472..127f0b0ca4 100644 --- a/kubernetes/docs/V1beta2ReplicaSetCondition.md +++ b/kubernetes/docs/V1beta2ReplicaSetCondition.md @@ -1,5 +1,6 @@ # V1beta2ReplicaSetCondition +ReplicaSetCondition describes the state of a replica set at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2ReplicaSetList.md b/kubernetes/docs/V1beta2ReplicaSetList.md index 02e3bf746e..a734be6df0 100644 --- a/kubernetes/docs/V1beta2ReplicaSetList.md +++ b/kubernetes/docs/V1beta2ReplicaSetList.md @@ -1,5 +1,6 @@ # V1beta2ReplicaSetList +ReplicaSetList is a collection of ReplicaSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2ReplicaSetSpec.md b/kubernetes/docs/V1beta2ReplicaSetSpec.md index f819d9457c..b72c5cf1f5 100644 --- a/kubernetes/docs/V1beta2ReplicaSetSpec.md +++ b/kubernetes/docs/V1beta2ReplicaSetSpec.md @@ -1,5 +1,6 @@ # V1beta2ReplicaSetSpec +ReplicaSetSpec is the specification of a ReplicaSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2ReplicaSetStatus.md b/kubernetes/docs/V1beta2ReplicaSetStatus.md index 3fd4983ad5..2f75c661c3 100644 --- a/kubernetes/docs/V1beta2ReplicaSetStatus.md +++ b/kubernetes/docs/V1beta2ReplicaSetStatus.md @@ -1,5 +1,6 @@ # V1beta2ReplicaSetStatus +ReplicaSetStatus represents the current status of a ReplicaSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md index a142303f40..a930182bac 100644 --- a/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md @@ -1,5 +1,6 @@ # V1beta2RollingUpdateDaemonSet +Spec to control the desired behavior of daemon set rolling update. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2RollingUpdateDeployment.md b/kubernetes/docs/V1beta2RollingUpdateDeployment.md index 5b380dc621..e4180c794b 100644 --- a/kubernetes/docs/V1beta2RollingUpdateDeployment.md +++ b/kubernetes/docs/V1beta2RollingUpdateDeployment.md @@ -1,5 +1,6 @@ # V1beta2RollingUpdateDeployment +Spec to control the desired behavior of rolling update. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2RollingUpdateStatefulSetStrategy.md b/kubernetes/docs/V1beta2RollingUpdateStatefulSetStrategy.md index 89d466b9aa..8466332bb1 100644 --- a/kubernetes/docs/V1beta2RollingUpdateStatefulSetStrategy.md +++ b/kubernetes/docs/V1beta2RollingUpdateStatefulSetStrategy.md @@ -1,5 +1,6 @@ # V1beta2RollingUpdateStatefulSetStrategy +RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2Scale.md b/kubernetes/docs/V1beta2Scale.md index 162d512ae5..9d8887d60c 100644 --- a/kubernetes/docs/V1beta2Scale.md +++ b/kubernetes/docs/V1beta2Scale.md @@ -1,5 +1,6 @@ # V1beta2Scale +Scale represents a scaling request for a resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2ScaleSpec.md b/kubernetes/docs/V1beta2ScaleSpec.md index 0f61489abf..c21b68ca5f 100644 --- a/kubernetes/docs/V1beta2ScaleSpec.md +++ b/kubernetes/docs/V1beta2ScaleSpec.md @@ -1,5 +1,6 @@ # V1beta2ScaleSpec +ScaleSpec describes the attributes of a scale subresource ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2ScaleStatus.md b/kubernetes/docs/V1beta2ScaleStatus.md index b8d5202ebb..1bb427507e 100644 --- a/kubernetes/docs/V1beta2ScaleStatus.md +++ b/kubernetes/docs/V1beta2ScaleStatus.md @@ -1,5 +1,6 @@ # V1beta2ScaleStatus +ScaleStatus represents the current status of a scale subresource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2StatefulSet.md b/kubernetes/docs/V1beta2StatefulSet.md index ed10357d9a..a8bfdd0080 100644 --- a/kubernetes/docs/V1beta2StatefulSet.md +++ b/kubernetes/docs/V1beta2StatefulSet.md @@ -1,5 +1,6 @@ # V1beta2StatefulSet +DEPRECATED - This group version of StatefulSet is deprecated by apps/v1/StatefulSet. See the release notes for more information. StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2StatefulSetCondition.md b/kubernetes/docs/V1beta2StatefulSetCondition.md index eef7b819bd..dae489f519 100644 --- a/kubernetes/docs/V1beta2StatefulSetCondition.md +++ b/kubernetes/docs/V1beta2StatefulSetCondition.md @@ -1,5 +1,6 @@ # V1beta2StatefulSetCondition +StatefulSetCondition describes the state of a statefulset at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2StatefulSetList.md b/kubernetes/docs/V1beta2StatefulSetList.md index 88365bdd39..fa1f78016c 100644 --- a/kubernetes/docs/V1beta2StatefulSetList.md +++ b/kubernetes/docs/V1beta2StatefulSetList.md @@ -1,5 +1,6 @@ # V1beta2StatefulSetList +StatefulSetList is a collection of StatefulSets. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2StatefulSetSpec.md b/kubernetes/docs/V1beta2StatefulSetSpec.md index 5bf3ff29f2..fd57f1595b 100644 --- a/kubernetes/docs/V1beta2StatefulSetSpec.md +++ b/kubernetes/docs/V1beta2StatefulSetSpec.md @@ -1,5 +1,6 @@ # V1beta2StatefulSetSpec +A StatefulSetSpec is the specification of a StatefulSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2StatefulSetStatus.md b/kubernetes/docs/V1beta2StatefulSetStatus.md index bde3b26d61..9cbd365eb7 100644 --- a/kubernetes/docs/V1beta2StatefulSetStatus.md +++ b/kubernetes/docs/V1beta2StatefulSetStatus.md @@ -1,5 +1,6 @@ # V1beta2StatefulSetStatus +StatefulSetStatus represents the current state of a StatefulSet. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md b/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md index 82652ab907..1ab3367ca6 100644 --- a/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md @@ -1,5 +1,6 @@ # V1beta2StatefulSetUpdateStrategy +StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2alpha1CronJob.md b/kubernetes/docs/V2alpha1CronJob.md index 383f1753dc..edd180d40c 100644 --- a/kubernetes/docs/V2alpha1CronJob.md +++ b/kubernetes/docs/V2alpha1CronJob.md @@ -1,5 +1,6 @@ # V2alpha1CronJob +CronJob represents the configuration of a single cron job. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2alpha1CronJobList.md b/kubernetes/docs/V2alpha1CronJobList.md index 1527aef5e8..8c56e41183 100644 --- a/kubernetes/docs/V2alpha1CronJobList.md +++ b/kubernetes/docs/V2alpha1CronJobList.md @@ -1,5 +1,6 @@ # V2alpha1CronJobList +CronJobList is a collection of cron jobs. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2alpha1CronJobSpec.md b/kubernetes/docs/V2alpha1CronJobSpec.md index 88194283ad..13cc31743d 100644 --- a/kubernetes/docs/V2alpha1CronJobSpec.md +++ b/kubernetes/docs/V2alpha1CronJobSpec.md @@ -1,5 +1,6 @@ # V2alpha1CronJobSpec +CronJobSpec describes how the job execution will look like and when it will actually run. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2alpha1CronJobStatus.md b/kubernetes/docs/V2alpha1CronJobStatus.md index 99ecb80ca9..0f5b1e351c 100644 --- a/kubernetes/docs/V2alpha1CronJobStatus.md +++ b/kubernetes/docs/V2alpha1CronJobStatus.md @@ -1,5 +1,6 @@ # V2alpha1CronJobStatus +CronJobStatus represents the current state of a cron job. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2alpha1JobTemplateSpec.md b/kubernetes/docs/V2alpha1JobTemplateSpec.md index c39431ba50..fdf40122c1 100644 --- a/kubernetes/docs/V2alpha1JobTemplateSpec.md +++ b/kubernetes/docs/V2alpha1JobTemplateSpec.md @@ -1,5 +1,6 @@ # V2alpha1JobTemplateSpec +JobTemplateSpec describes the data a Job should have when created from a template ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1CrossVersionObjectReference.md b/kubernetes/docs/V2beta1CrossVersionObjectReference.md index 7e3a01948b..d5bb108e73 100644 --- a/kubernetes/docs/V2beta1CrossVersionObjectReference.md +++ b/kubernetes/docs/V2beta1CrossVersionObjectReference.md @@ -1,5 +1,6 @@ # V2beta1CrossVersionObjectReference +CrossVersionObjectReference contains enough information to let you identify the referred resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1ExternalMetricSource.md b/kubernetes/docs/V2beta1ExternalMetricSource.md index 86ea313bfb..0d85b16483 100644 --- a/kubernetes/docs/V2beta1ExternalMetricSource.md +++ b/kubernetes/docs/V2beta1ExternalMetricSource.md @@ -1,5 +1,6 @@ # V2beta1ExternalMetricSource +ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one \"target\" type should be set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1ExternalMetricStatus.md b/kubernetes/docs/V2beta1ExternalMetricStatus.md index 92df7d34ff..a4bb660fd1 100644 --- a/kubernetes/docs/V2beta1ExternalMetricStatus.md +++ b/kubernetes/docs/V2beta1ExternalMetricStatus.md @@ -1,5 +1,6 @@ # V2beta1ExternalMetricStatus +ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md b/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md index 4124fe0f0b..17914f792e 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md @@ -1,5 +1,6 @@ # V2beta1HorizontalPodAutoscaler +HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md index b14119b1b1..b8a682cc5e 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md @@ -1,5 +1,6 @@ # V2beta1HorizontalPodAutoscalerCondition +HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md index 41a8ae0df9..716d15a6bb 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md @@ -1,5 +1,6 @@ # V2beta1HorizontalPodAutoscalerList +HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md index 0277d58f6d..c3812eff9b 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md @@ -1,5 +1,6 @@ # V2beta1HorizontalPodAutoscalerSpec +HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md index 72b84fb9e8..4e831a4cd6 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md @@ -1,5 +1,6 @@ # V2beta1HorizontalPodAutoscalerStatus +HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1MetricSpec.md b/kubernetes/docs/V2beta1MetricSpec.md index b2fe842e9b..671e455394 100644 --- a/kubernetes/docs/V2beta1MetricSpec.md +++ b/kubernetes/docs/V2beta1MetricSpec.md @@ -1,5 +1,6 @@ # V2beta1MetricSpec +MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1MetricStatus.md b/kubernetes/docs/V2beta1MetricStatus.md index f0658edfda..c6ed20d42a 100644 --- a/kubernetes/docs/V2beta1MetricStatus.md +++ b/kubernetes/docs/V2beta1MetricStatus.md @@ -1,5 +1,6 @@ # V2beta1MetricStatus +MetricStatus describes the last-read state of a single metric. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1ObjectMetricSource.md b/kubernetes/docs/V2beta1ObjectMetricSource.md index 3700925d99..29a8aa816f 100644 --- a/kubernetes/docs/V2beta1ObjectMetricSource.md +++ b/kubernetes/docs/V2beta1ObjectMetricSource.md @@ -1,5 +1,6 @@ # V2beta1ObjectMetricSource +ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1ObjectMetricStatus.md b/kubernetes/docs/V2beta1ObjectMetricStatus.md index 34f72a55f2..abb0e8cfb4 100644 --- a/kubernetes/docs/V2beta1ObjectMetricStatus.md +++ b/kubernetes/docs/V2beta1ObjectMetricStatus.md @@ -1,5 +1,6 @@ # V2beta1ObjectMetricStatus +ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1PodsMetricSource.md b/kubernetes/docs/V2beta1PodsMetricSource.md index 4972c25241..895af2c26b 100644 --- a/kubernetes/docs/V2beta1PodsMetricSource.md +++ b/kubernetes/docs/V2beta1PodsMetricSource.md @@ -1,5 +1,6 @@ # V2beta1PodsMetricSource +PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1PodsMetricStatus.md b/kubernetes/docs/V2beta1PodsMetricStatus.md index ccf23ad7a7..5b208d971a 100644 --- a/kubernetes/docs/V2beta1PodsMetricStatus.md +++ b/kubernetes/docs/V2beta1PodsMetricStatus.md @@ -1,5 +1,6 @@ # V2beta1PodsMetricStatus +PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1ResourceMetricSource.md b/kubernetes/docs/V2beta1ResourceMetricSource.md index 60dfa5798b..22680aa6d2 100644 --- a/kubernetes/docs/V2beta1ResourceMetricSource.md +++ b/kubernetes/docs/V2beta1ResourceMetricSource.md @@ -1,5 +1,6 @@ # V2beta1ResourceMetricSource +ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta1ResourceMetricStatus.md b/kubernetes/docs/V2beta1ResourceMetricStatus.md index 0471b66c42..70f9585b3e 100644 --- a/kubernetes/docs/V2beta1ResourceMetricStatus.md +++ b/kubernetes/docs/V2beta1ResourceMetricStatus.md @@ -1,5 +1,6 @@ # V2beta1ResourceMetricStatus +ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2CrossVersionObjectReference.md b/kubernetes/docs/V2beta2CrossVersionObjectReference.md index cf758bff3e..4668ed0a03 100644 --- a/kubernetes/docs/V2beta2CrossVersionObjectReference.md +++ b/kubernetes/docs/V2beta2CrossVersionObjectReference.md @@ -1,5 +1,6 @@ # V2beta2CrossVersionObjectReference +CrossVersionObjectReference contains enough information to let you identify the referred resource. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2ExternalMetricSource.md b/kubernetes/docs/V2beta2ExternalMetricSource.md index 2583efc360..44d8290f4c 100644 --- a/kubernetes/docs/V2beta2ExternalMetricSource.md +++ b/kubernetes/docs/V2beta2ExternalMetricSource.md @@ -1,5 +1,6 @@ # V2beta2ExternalMetricSource +ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2ExternalMetricStatus.md b/kubernetes/docs/V2beta2ExternalMetricStatus.md index 9a02b67cfe..5484771fb5 100644 --- a/kubernetes/docs/V2beta2ExternalMetricStatus.md +++ b/kubernetes/docs/V2beta2ExternalMetricStatus.md @@ -1,5 +1,6 @@ # V2beta2ExternalMetricStatus +ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md b/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md index 4f37c5b807..9bc1bd3ebb 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md @@ -1,5 +1,6 @@ # V2beta2HorizontalPodAutoscaler +HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md index 0afabc035f..2cc423e814 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md @@ -1,5 +1,6 @@ # V2beta2HorizontalPodAutoscalerCondition +HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md index 978af8f5fd..fc4b15dc48 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md @@ -1,5 +1,6 @@ # V2beta2HorizontalPodAutoscalerList +HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md index 185bbf2921..8199c487e7 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md @@ -1,5 +1,6 @@ # V2beta2HorizontalPodAutoscalerSpec +HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md index 34eaaf2d49..e2c45e0649 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md @@ -1,5 +1,6 @@ # V2beta2HorizontalPodAutoscalerStatus +HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2MetricIdentifier.md b/kubernetes/docs/V2beta2MetricIdentifier.md index 6fb1752033..41b4e381d0 100644 --- a/kubernetes/docs/V2beta2MetricIdentifier.md +++ b/kubernetes/docs/V2beta2MetricIdentifier.md @@ -1,5 +1,6 @@ # V2beta2MetricIdentifier +MetricIdentifier defines the name and optionally selector for a metric ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2MetricSpec.md b/kubernetes/docs/V2beta2MetricSpec.md index 6f2c36c78c..f7831d549a 100644 --- a/kubernetes/docs/V2beta2MetricSpec.md +++ b/kubernetes/docs/V2beta2MetricSpec.md @@ -1,5 +1,6 @@ # V2beta2MetricSpec +MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2MetricStatus.md b/kubernetes/docs/V2beta2MetricStatus.md index 1cace1d8a7..6f00ddddb4 100644 --- a/kubernetes/docs/V2beta2MetricStatus.md +++ b/kubernetes/docs/V2beta2MetricStatus.md @@ -1,5 +1,6 @@ # V2beta2MetricStatus +MetricStatus describes the last-read state of a single metric. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2MetricTarget.md b/kubernetes/docs/V2beta2MetricTarget.md index 0f8d815c8c..4f398a68f6 100644 --- a/kubernetes/docs/V2beta2MetricTarget.md +++ b/kubernetes/docs/V2beta2MetricTarget.md @@ -1,5 +1,6 @@ # V2beta2MetricTarget +MetricTarget defines the target value, average value, or average utilization of a specific metric ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2MetricValueStatus.md b/kubernetes/docs/V2beta2MetricValueStatus.md index 103e1efc70..ecdc9c121e 100644 --- a/kubernetes/docs/V2beta2MetricValueStatus.md +++ b/kubernetes/docs/V2beta2MetricValueStatus.md @@ -1,5 +1,6 @@ # V2beta2MetricValueStatus +MetricValueStatus holds the current value for a metric ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2ObjectMetricSource.md b/kubernetes/docs/V2beta2ObjectMetricSource.md index db8b55f798..55fd27f73e 100644 --- a/kubernetes/docs/V2beta2ObjectMetricSource.md +++ b/kubernetes/docs/V2beta2ObjectMetricSource.md @@ -1,5 +1,6 @@ # V2beta2ObjectMetricSource +ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2ObjectMetricStatus.md b/kubernetes/docs/V2beta2ObjectMetricStatus.md index d68872070a..766da9d8f9 100644 --- a/kubernetes/docs/V2beta2ObjectMetricStatus.md +++ b/kubernetes/docs/V2beta2ObjectMetricStatus.md @@ -1,5 +1,6 @@ # V2beta2ObjectMetricStatus +ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2PodsMetricSource.md b/kubernetes/docs/V2beta2PodsMetricSource.md index 18e60c12bb..e2a8d98809 100644 --- a/kubernetes/docs/V2beta2PodsMetricSource.md +++ b/kubernetes/docs/V2beta2PodsMetricSource.md @@ -1,5 +1,6 @@ # V2beta2PodsMetricSource +PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2PodsMetricStatus.md b/kubernetes/docs/V2beta2PodsMetricStatus.md index a3dfc16e41..fe04e811dd 100644 --- a/kubernetes/docs/V2beta2PodsMetricStatus.md +++ b/kubernetes/docs/V2beta2PodsMetricStatus.md @@ -1,5 +1,6 @@ # V2beta2PodsMetricStatus +PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2ResourceMetricSource.md b/kubernetes/docs/V2beta2ResourceMetricSource.md index 96c5962949..671bb83c9b 100644 --- a/kubernetes/docs/V2beta2ResourceMetricSource.md +++ b/kubernetes/docs/V2beta2ResourceMetricSource.md @@ -1,5 +1,6 @@ # V2beta2ResourceMetricSource +ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/V2beta2ResourceMetricStatus.md b/kubernetes/docs/V2beta2ResourceMetricStatus.md index fc5b32ab87..350ec4045b 100644 --- a/kubernetes/docs/V2beta2ResourceMetricStatus.md +++ b/kubernetes/docs/V2beta2ResourceMetricStatus.md @@ -1,5 +1,6 @@ # V2beta2ResourceMetricStatus +ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/docs/VersionApi.md b/kubernetes/docs/VersionApi.md index 4d3ec90a2f..ce8753bef0 100644 --- a/kubernetes/docs/VersionApi.md +++ b/kubernetes/docs/VersionApi.md @@ -16,28 +16,32 @@ get the code version ### Example -* Api Key Authentication (BearerToken): +* Api Key Authentication (BearerToken): ```python from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint - -# Configure API key authorization: BearerToken configuration = kubernetes.client.Configuration() +# Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' -# create an instance of the API class -api_instance = kubernetes.client.VersionApi(kubernetes.client.ApiClient(configuration)) - -try: - api_response = api_instance.get_code() - pprint(api_response) -except ApiException as e: - print("Exception when calling VersionApi->get_code: %s\n" % e) +# Defining host is optional and default to http://localhost +configuration.host = "http://localhost" + +# Enter a context with an instance of the API kubernetes.client +with kubernetes.client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = kubernetes.client.VersionApi(api_client) + + try: + api_response = api_instance.get_code() + pprint(api_response) + except ApiException as e: + print("Exception when calling VersionApi->get_code: %s\n" % e) ``` ### Parameters @@ -56,5 +60,11 @@ This endpoint does not need any parameter. - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/kubernetes/docs/VersionInfo.md b/kubernetes/docs/VersionInfo.md index d9acfd10ef..4a954bf3d7 100644 --- a/kubernetes/docs/VersionInfo.md +++ b/kubernetes/docs/VersionInfo.md @@ -1,5 +1,6 @@ # VersionInfo +Info contains versioning information. how we'll want to distribute that information. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/kubernetes/test/__init__.py b/kubernetes/test/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/kubernetes/test/test_admissionregistration_api.py b/kubernetes/test/test_admissionregistration_api.py deleted file mode 100644 index 9ee0c012a8..0000000000 --- a/kubernetes/test/test_admissionregistration_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.admissionregistration_api import AdmissionregistrationApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAdmissionregistrationApi(unittest.TestCase): - """AdmissionregistrationApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.admissionregistration_api.AdmissionregistrationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_admissionregistration_v1_api.py b/kubernetes/test/test_admissionregistration_v1_api.py deleted file mode 100644 index b381231940..0000000000 --- a/kubernetes/test/test_admissionregistration_v1_api.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.admissionregistration_v1_api import AdmissionregistrationV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAdmissionregistrationV1Api(unittest.TestCase): - """AdmissionregistrationV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.admissionregistration_v1_api.AdmissionregistrationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_mutating_webhook_configuration(self): - """Test case for create_mutating_webhook_configuration - - """ - pass - - def test_create_validating_webhook_configuration(self): - """Test case for create_validating_webhook_configuration - - """ - pass - - def test_delete_collection_mutating_webhook_configuration(self): - """Test case for delete_collection_mutating_webhook_configuration - - """ - pass - - def test_delete_collection_validating_webhook_configuration(self): - """Test case for delete_collection_validating_webhook_configuration - - """ - pass - - def test_delete_mutating_webhook_configuration(self): - """Test case for delete_mutating_webhook_configuration - - """ - pass - - def test_delete_validating_webhook_configuration(self): - """Test case for delete_validating_webhook_configuration - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_mutating_webhook_configuration(self): - """Test case for list_mutating_webhook_configuration - - """ - pass - - def test_list_validating_webhook_configuration(self): - """Test case for list_validating_webhook_configuration - - """ - pass - - def test_patch_mutating_webhook_configuration(self): - """Test case for patch_mutating_webhook_configuration - - """ - pass - - def test_patch_validating_webhook_configuration(self): - """Test case for patch_validating_webhook_configuration - - """ - pass - - def test_read_mutating_webhook_configuration(self): - """Test case for read_mutating_webhook_configuration - - """ - pass - - def test_read_validating_webhook_configuration(self): - """Test case for read_validating_webhook_configuration - - """ - pass - - def test_replace_mutating_webhook_configuration(self): - """Test case for replace_mutating_webhook_configuration - - """ - pass - - def test_replace_validating_webhook_configuration(self): - """Test case for replace_validating_webhook_configuration - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_admissionregistration_v1_service_reference.py b/kubernetes/test/test_admissionregistration_v1_service_reference.py deleted file mode 100644 index badccd2acd..0000000000 --- a/kubernetes/test/test_admissionregistration_v1_service_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.admissionregistration_v1_service_reference import AdmissionregistrationV1ServiceReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAdmissionregistrationV1ServiceReference(unittest.TestCase): - """AdmissionregistrationV1ServiceReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdmissionregistrationV1ServiceReference(self): - """Test AdmissionregistrationV1ServiceReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.admissionregistration_v1_service_reference.AdmissionregistrationV1ServiceReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_admissionregistration_v1_webhook_client_config.py b/kubernetes/test/test_admissionregistration_v1_webhook_client_config.py deleted file mode 100644 index 70271ea599..0000000000 --- a/kubernetes/test/test_admissionregistration_v1_webhook_client_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.admissionregistration_v1_webhook_client_config import AdmissionregistrationV1WebhookClientConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAdmissionregistrationV1WebhookClientConfig(unittest.TestCase): - """AdmissionregistrationV1WebhookClientConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdmissionregistrationV1WebhookClientConfig(self): - """Test AdmissionregistrationV1WebhookClientConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.admissionregistration_v1_webhook_client_config.AdmissionregistrationV1WebhookClientConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_admissionregistration_v1beta1_api.py b/kubernetes/test/test_admissionregistration_v1beta1_api.py deleted file mode 100644 index a6eae42316..0000000000 --- a/kubernetes/test/test_admissionregistration_v1beta1_api.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.admissionregistration_v1beta1_api import AdmissionregistrationV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAdmissionregistrationV1beta1Api(unittest.TestCase): - """AdmissionregistrationV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.admissionregistration_v1beta1_api.AdmissionregistrationV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_mutating_webhook_configuration(self): - """Test case for create_mutating_webhook_configuration - - """ - pass - - def test_create_validating_webhook_configuration(self): - """Test case for create_validating_webhook_configuration - - """ - pass - - def test_delete_collection_mutating_webhook_configuration(self): - """Test case for delete_collection_mutating_webhook_configuration - - """ - pass - - def test_delete_collection_validating_webhook_configuration(self): - """Test case for delete_collection_validating_webhook_configuration - - """ - pass - - def test_delete_mutating_webhook_configuration(self): - """Test case for delete_mutating_webhook_configuration - - """ - pass - - def test_delete_validating_webhook_configuration(self): - """Test case for delete_validating_webhook_configuration - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_mutating_webhook_configuration(self): - """Test case for list_mutating_webhook_configuration - - """ - pass - - def test_list_validating_webhook_configuration(self): - """Test case for list_validating_webhook_configuration - - """ - pass - - def test_patch_mutating_webhook_configuration(self): - """Test case for patch_mutating_webhook_configuration - - """ - pass - - def test_patch_validating_webhook_configuration(self): - """Test case for patch_validating_webhook_configuration - - """ - pass - - def test_read_mutating_webhook_configuration(self): - """Test case for read_mutating_webhook_configuration - - """ - pass - - def test_read_validating_webhook_configuration(self): - """Test case for read_validating_webhook_configuration - - """ - pass - - def test_replace_mutating_webhook_configuration(self): - """Test case for replace_mutating_webhook_configuration - - """ - pass - - def test_replace_validating_webhook_configuration(self): - """Test case for replace_validating_webhook_configuration - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_admissionregistration_v1beta1_service_reference.py b/kubernetes/test/test_admissionregistration_v1beta1_service_reference.py deleted file mode 100644 index cf99c395c3..0000000000 --- a/kubernetes/test/test_admissionregistration_v1beta1_service_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.admissionregistration_v1beta1_service_reference import AdmissionregistrationV1beta1ServiceReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAdmissionregistrationV1beta1ServiceReference(unittest.TestCase): - """AdmissionregistrationV1beta1ServiceReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdmissionregistrationV1beta1ServiceReference(self): - """Test AdmissionregistrationV1beta1ServiceReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.admissionregistration_v1beta1_service_reference.AdmissionregistrationV1beta1ServiceReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_admissionregistration_v1beta1_webhook_client_config.py b/kubernetes/test/test_admissionregistration_v1beta1_webhook_client_config.py deleted file mode 100644 index 476bab21a2..0000000000 --- a/kubernetes/test/test_admissionregistration_v1beta1_webhook_client_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.admissionregistration_v1beta1_webhook_client_config import AdmissionregistrationV1beta1WebhookClientConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAdmissionregistrationV1beta1WebhookClientConfig(unittest.TestCase): - """AdmissionregistrationV1beta1WebhookClientConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdmissionregistrationV1beta1WebhookClientConfig(self): - """Test AdmissionregistrationV1beta1WebhookClientConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.admissionregistration_v1beta1_webhook_client_config.AdmissionregistrationV1beta1WebhookClientConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiextensions_api.py b/kubernetes/test/test_apiextensions_api.py deleted file mode 100644 index dcf40fcbca..0000000000 --- a/kubernetes/test/test_apiextensions_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apiextensions_api import ApiextensionsApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiextensionsApi(unittest.TestCase): - """ApiextensionsApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apiextensions_api.ApiextensionsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiextensions_v1_api.py b/kubernetes/test/test_apiextensions_v1_api.py deleted file mode 100644 index 3c515c0c45..0000000000 --- a/kubernetes/test/test_apiextensions_v1_api.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apiextensions_v1_api import ApiextensionsV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiextensionsV1Api(unittest.TestCase): - """ApiextensionsV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apiextensions_v1_api.ApiextensionsV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_custom_resource_definition(self): - """Test case for create_custom_resource_definition - - """ - pass - - def test_delete_collection_custom_resource_definition(self): - """Test case for delete_collection_custom_resource_definition - - """ - pass - - def test_delete_custom_resource_definition(self): - """Test case for delete_custom_resource_definition - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_custom_resource_definition(self): - """Test case for list_custom_resource_definition - - """ - pass - - def test_patch_custom_resource_definition(self): - """Test case for patch_custom_resource_definition - - """ - pass - - def test_patch_custom_resource_definition_status(self): - """Test case for patch_custom_resource_definition_status - - """ - pass - - def test_read_custom_resource_definition(self): - """Test case for read_custom_resource_definition - - """ - pass - - def test_read_custom_resource_definition_status(self): - """Test case for read_custom_resource_definition_status - - """ - pass - - def test_replace_custom_resource_definition(self): - """Test case for replace_custom_resource_definition - - """ - pass - - def test_replace_custom_resource_definition_status(self): - """Test case for replace_custom_resource_definition_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiextensions_v1_service_reference.py b/kubernetes/test/test_apiextensions_v1_service_reference.py deleted file mode 100644 index ad58af7cb0..0000000000 --- a/kubernetes/test/test_apiextensions_v1_service_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apiextensions_v1_service_reference import ApiextensionsV1ServiceReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiextensionsV1ServiceReference(unittest.TestCase): - """ApiextensionsV1ServiceReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiextensionsV1ServiceReference(self): - """Test ApiextensionsV1ServiceReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apiextensions_v1_service_reference.ApiextensionsV1ServiceReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiextensions_v1_webhook_client_config.py b/kubernetes/test/test_apiextensions_v1_webhook_client_config.py deleted file mode 100644 index 2cdaadd237..0000000000 --- a/kubernetes/test/test_apiextensions_v1_webhook_client_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apiextensions_v1_webhook_client_config import ApiextensionsV1WebhookClientConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiextensionsV1WebhookClientConfig(unittest.TestCase): - """ApiextensionsV1WebhookClientConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiextensionsV1WebhookClientConfig(self): - """Test ApiextensionsV1WebhookClientConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apiextensions_v1_webhook_client_config.ApiextensionsV1WebhookClientConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiextensions_v1beta1_api.py b/kubernetes/test/test_apiextensions_v1beta1_api.py deleted file mode 100644 index 46588f9a9d..0000000000 --- a/kubernetes/test/test_apiextensions_v1beta1_api.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apiextensions_v1beta1_api import ApiextensionsV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiextensionsV1beta1Api(unittest.TestCase): - """ApiextensionsV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apiextensions_v1beta1_api.ApiextensionsV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_custom_resource_definition(self): - """Test case for create_custom_resource_definition - - """ - pass - - def test_delete_collection_custom_resource_definition(self): - """Test case for delete_collection_custom_resource_definition - - """ - pass - - def test_delete_custom_resource_definition(self): - """Test case for delete_custom_resource_definition - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_custom_resource_definition(self): - """Test case for list_custom_resource_definition - - """ - pass - - def test_patch_custom_resource_definition(self): - """Test case for patch_custom_resource_definition - - """ - pass - - def test_patch_custom_resource_definition_status(self): - """Test case for patch_custom_resource_definition_status - - """ - pass - - def test_read_custom_resource_definition(self): - """Test case for read_custom_resource_definition - - """ - pass - - def test_read_custom_resource_definition_status(self): - """Test case for read_custom_resource_definition_status - - """ - pass - - def test_replace_custom_resource_definition(self): - """Test case for replace_custom_resource_definition - - """ - pass - - def test_replace_custom_resource_definition_status(self): - """Test case for replace_custom_resource_definition_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiextensions_v1beta1_service_reference.py b/kubernetes/test/test_apiextensions_v1beta1_service_reference.py deleted file mode 100644 index 5d28c13ac7..0000000000 --- a/kubernetes/test/test_apiextensions_v1beta1_service_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apiextensions_v1beta1_service_reference import ApiextensionsV1beta1ServiceReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiextensionsV1beta1ServiceReference(unittest.TestCase): - """ApiextensionsV1beta1ServiceReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiextensionsV1beta1ServiceReference(self): - """Test ApiextensionsV1beta1ServiceReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apiextensions_v1beta1_service_reference.ApiextensionsV1beta1ServiceReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiextensions_v1beta1_webhook_client_config.py b/kubernetes/test/test_apiextensions_v1beta1_webhook_client_config.py deleted file mode 100644 index 091e37228e..0000000000 --- a/kubernetes/test/test_apiextensions_v1beta1_webhook_client_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apiextensions_v1beta1_webhook_client_config import ApiextensionsV1beta1WebhookClientConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiextensionsV1beta1WebhookClientConfig(unittest.TestCase): - """ApiextensionsV1beta1WebhookClientConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiextensionsV1beta1WebhookClientConfig(self): - """Test ApiextensionsV1beta1WebhookClientConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apiextensions_v1beta1_webhook_client_config.ApiextensionsV1beta1WebhookClientConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiregistration_api.py b/kubernetes/test/test_apiregistration_api.py deleted file mode 100644 index b33765a7cf..0000000000 --- a/kubernetes/test/test_apiregistration_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apiregistration_api import ApiregistrationApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiregistrationApi(unittest.TestCase): - """ApiregistrationApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apiregistration_api.ApiregistrationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiregistration_v1_api.py b/kubernetes/test/test_apiregistration_v1_api.py deleted file mode 100644 index 0ac605a571..0000000000 --- a/kubernetes/test/test_apiregistration_v1_api.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apiregistration_v1_api import ApiregistrationV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiregistrationV1Api(unittest.TestCase): - """ApiregistrationV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apiregistration_v1_api.ApiregistrationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_api_service(self): - """Test case for create_api_service - - """ - pass - - def test_delete_api_service(self): - """Test case for delete_api_service - - """ - pass - - def test_delete_collection_api_service(self): - """Test case for delete_collection_api_service - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_api_service(self): - """Test case for list_api_service - - """ - pass - - def test_patch_api_service(self): - """Test case for patch_api_service - - """ - pass - - def test_patch_api_service_status(self): - """Test case for patch_api_service_status - - """ - pass - - def test_read_api_service(self): - """Test case for read_api_service - - """ - pass - - def test_read_api_service_status(self): - """Test case for read_api_service_status - - """ - pass - - def test_replace_api_service(self): - """Test case for replace_api_service - - """ - pass - - def test_replace_api_service_status(self): - """Test case for replace_api_service_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiregistration_v1_service_reference.py b/kubernetes/test/test_apiregistration_v1_service_reference.py deleted file mode 100644 index fdad428d9a..0000000000 --- a/kubernetes/test/test_apiregistration_v1_service_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apiregistration_v1_service_reference import ApiregistrationV1ServiceReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiregistrationV1ServiceReference(unittest.TestCase): - """ApiregistrationV1ServiceReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiregistrationV1ServiceReference(self): - """Test ApiregistrationV1ServiceReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apiregistration_v1_service_reference.ApiregistrationV1ServiceReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiregistration_v1beta1_api.py b/kubernetes/test/test_apiregistration_v1beta1_api.py deleted file mode 100644 index be4a1f0571..0000000000 --- a/kubernetes/test/test_apiregistration_v1beta1_api.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apiregistration_v1beta1_api import ApiregistrationV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiregistrationV1beta1Api(unittest.TestCase): - """ApiregistrationV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apiregistration_v1beta1_api.ApiregistrationV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_api_service(self): - """Test case for create_api_service - - """ - pass - - def test_delete_api_service(self): - """Test case for delete_api_service - - """ - pass - - def test_delete_collection_api_service(self): - """Test case for delete_collection_api_service - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_api_service(self): - """Test case for list_api_service - - """ - pass - - def test_patch_api_service(self): - """Test case for patch_api_service - - """ - pass - - def test_patch_api_service_status(self): - """Test case for patch_api_service_status - - """ - pass - - def test_read_api_service(self): - """Test case for read_api_service - - """ - pass - - def test_read_api_service_status(self): - """Test case for read_api_service_status - - """ - pass - - def test_replace_api_service(self): - """Test case for replace_api_service - - """ - pass - - def test_replace_api_service_status(self): - """Test case for replace_api_service_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apiregistration_v1beta1_service_reference.py b/kubernetes/test/test_apiregistration_v1beta1_service_reference.py deleted file mode 100644 index 6dd6702674..0000000000 --- a/kubernetes/test/test_apiregistration_v1beta1_service_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apiregistration_v1beta1_service_reference import ApiregistrationV1beta1ServiceReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApiregistrationV1beta1ServiceReference(unittest.TestCase): - """ApiregistrationV1beta1ServiceReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testApiregistrationV1beta1ServiceReference(self): - """Test ApiregistrationV1beta1ServiceReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apiregistration_v1beta1_service_reference.ApiregistrationV1beta1ServiceReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apis_api.py b/kubernetes/test/test_apis_api.py deleted file mode 100644 index 960fa5e465..0000000000 --- a/kubernetes/test/test_apis_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apis_api import ApisApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestApisApi(unittest.TestCase): - """ApisApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apis_api.ApisApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_versions(self): - """Test case for get_api_versions - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_api.py b/kubernetes/test/test_apps_api.py deleted file mode 100644 index de3eef6ada..0000000000 --- a/kubernetes/test/test_apps_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apps_api import AppsApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsApi(unittest.TestCase): - """AppsApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apps_api.AppsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1_api.py b/kubernetes/test/test_apps_v1_api.py deleted file mode 100644 index bf4e1886c9..0000000000 --- a/kubernetes/test/test_apps_v1_api.py +++ /dev/null @@ -1,405 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apps_v1_api import AppsV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1Api(unittest.TestCase): - """AppsV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apps_v1_api.AppsV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_controller_revision(self): - """Test case for create_namespaced_controller_revision - - """ - pass - - def test_create_namespaced_daemon_set(self): - """Test case for create_namespaced_daemon_set - - """ - pass - - def test_create_namespaced_deployment(self): - """Test case for create_namespaced_deployment - - """ - pass - - def test_create_namespaced_replica_set(self): - """Test case for create_namespaced_replica_set - - """ - pass - - def test_create_namespaced_stateful_set(self): - """Test case for create_namespaced_stateful_set - - """ - pass - - def test_delete_collection_namespaced_controller_revision(self): - """Test case for delete_collection_namespaced_controller_revision - - """ - pass - - def test_delete_collection_namespaced_daemon_set(self): - """Test case for delete_collection_namespaced_daemon_set - - """ - pass - - def test_delete_collection_namespaced_deployment(self): - """Test case for delete_collection_namespaced_deployment - - """ - pass - - def test_delete_collection_namespaced_replica_set(self): - """Test case for delete_collection_namespaced_replica_set - - """ - pass - - def test_delete_collection_namespaced_stateful_set(self): - """Test case for delete_collection_namespaced_stateful_set - - """ - pass - - def test_delete_namespaced_controller_revision(self): - """Test case for delete_namespaced_controller_revision - - """ - pass - - def test_delete_namespaced_daemon_set(self): - """Test case for delete_namespaced_daemon_set - - """ - pass - - def test_delete_namespaced_deployment(self): - """Test case for delete_namespaced_deployment - - """ - pass - - def test_delete_namespaced_replica_set(self): - """Test case for delete_namespaced_replica_set - - """ - pass - - def test_delete_namespaced_stateful_set(self): - """Test case for delete_namespaced_stateful_set - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_controller_revision_for_all_namespaces(self): - """Test case for list_controller_revision_for_all_namespaces - - """ - pass - - def test_list_daemon_set_for_all_namespaces(self): - """Test case for list_daemon_set_for_all_namespaces - - """ - pass - - def test_list_deployment_for_all_namespaces(self): - """Test case for list_deployment_for_all_namespaces - - """ - pass - - def test_list_namespaced_controller_revision(self): - """Test case for list_namespaced_controller_revision - - """ - pass - - def test_list_namespaced_daemon_set(self): - """Test case for list_namespaced_daemon_set - - """ - pass - - def test_list_namespaced_deployment(self): - """Test case for list_namespaced_deployment - - """ - pass - - def test_list_namespaced_replica_set(self): - """Test case for list_namespaced_replica_set - - """ - pass - - def test_list_namespaced_stateful_set(self): - """Test case for list_namespaced_stateful_set - - """ - pass - - def test_list_replica_set_for_all_namespaces(self): - """Test case for list_replica_set_for_all_namespaces - - """ - pass - - def test_list_stateful_set_for_all_namespaces(self): - """Test case for list_stateful_set_for_all_namespaces - - """ - pass - - def test_patch_namespaced_controller_revision(self): - """Test case for patch_namespaced_controller_revision - - """ - pass - - def test_patch_namespaced_daemon_set(self): - """Test case for patch_namespaced_daemon_set - - """ - pass - - def test_patch_namespaced_daemon_set_status(self): - """Test case for patch_namespaced_daemon_set_status - - """ - pass - - def test_patch_namespaced_deployment(self): - """Test case for patch_namespaced_deployment - - """ - pass - - def test_patch_namespaced_deployment_scale(self): - """Test case for patch_namespaced_deployment_scale - - """ - pass - - def test_patch_namespaced_deployment_status(self): - """Test case for patch_namespaced_deployment_status - - """ - pass - - def test_patch_namespaced_replica_set(self): - """Test case for patch_namespaced_replica_set - - """ - pass - - def test_patch_namespaced_replica_set_scale(self): - """Test case for patch_namespaced_replica_set_scale - - """ - pass - - def test_patch_namespaced_replica_set_status(self): - """Test case for patch_namespaced_replica_set_status - - """ - pass - - def test_patch_namespaced_stateful_set(self): - """Test case for patch_namespaced_stateful_set - - """ - pass - - def test_patch_namespaced_stateful_set_scale(self): - """Test case for patch_namespaced_stateful_set_scale - - """ - pass - - def test_patch_namespaced_stateful_set_status(self): - """Test case for patch_namespaced_stateful_set_status - - """ - pass - - def test_read_namespaced_controller_revision(self): - """Test case for read_namespaced_controller_revision - - """ - pass - - def test_read_namespaced_daemon_set(self): - """Test case for read_namespaced_daemon_set - - """ - pass - - def test_read_namespaced_daemon_set_status(self): - """Test case for read_namespaced_daemon_set_status - - """ - pass - - def test_read_namespaced_deployment(self): - """Test case for read_namespaced_deployment - - """ - pass - - def test_read_namespaced_deployment_scale(self): - """Test case for read_namespaced_deployment_scale - - """ - pass - - def test_read_namespaced_deployment_status(self): - """Test case for read_namespaced_deployment_status - - """ - pass - - def test_read_namespaced_replica_set(self): - """Test case for read_namespaced_replica_set - - """ - pass - - def test_read_namespaced_replica_set_scale(self): - """Test case for read_namespaced_replica_set_scale - - """ - pass - - def test_read_namespaced_replica_set_status(self): - """Test case for read_namespaced_replica_set_status - - """ - pass - - def test_read_namespaced_stateful_set(self): - """Test case for read_namespaced_stateful_set - - """ - pass - - def test_read_namespaced_stateful_set_scale(self): - """Test case for read_namespaced_stateful_set_scale - - """ - pass - - def test_read_namespaced_stateful_set_status(self): - """Test case for read_namespaced_stateful_set_status - - """ - pass - - def test_replace_namespaced_controller_revision(self): - """Test case for replace_namespaced_controller_revision - - """ - pass - - def test_replace_namespaced_daemon_set(self): - """Test case for replace_namespaced_daemon_set - - """ - pass - - def test_replace_namespaced_daemon_set_status(self): - """Test case for replace_namespaced_daemon_set_status - - """ - pass - - def test_replace_namespaced_deployment(self): - """Test case for replace_namespaced_deployment - - """ - pass - - def test_replace_namespaced_deployment_scale(self): - """Test case for replace_namespaced_deployment_scale - - """ - pass - - def test_replace_namespaced_deployment_status(self): - """Test case for replace_namespaced_deployment_status - - """ - pass - - def test_replace_namespaced_replica_set(self): - """Test case for replace_namespaced_replica_set - - """ - pass - - def test_replace_namespaced_replica_set_scale(self): - """Test case for replace_namespaced_replica_set_scale - - """ - pass - - def test_replace_namespaced_replica_set_status(self): - """Test case for replace_namespaced_replica_set_status - - """ - pass - - def test_replace_namespaced_stateful_set(self): - """Test case for replace_namespaced_stateful_set - - """ - pass - - def test_replace_namespaced_stateful_set_scale(self): - """Test case for replace_namespaced_stateful_set_scale - - """ - pass - - def test_replace_namespaced_stateful_set_status(self): - """Test case for replace_namespaced_stateful_set_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_api.py b/kubernetes/test/test_apps_v1beta1_api.py deleted file mode 100644 index 925262a6fc..0000000000 --- a/kubernetes/test/test_apps_v1beta1_api.py +++ /dev/null @@ -1,261 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apps_v1beta1_api import AppsV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1Api(unittest.TestCase): - """AppsV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apps_v1beta1_api.AppsV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_controller_revision(self): - """Test case for create_namespaced_controller_revision - - """ - pass - - def test_create_namespaced_deployment(self): - """Test case for create_namespaced_deployment - - """ - pass - - def test_create_namespaced_deployment_rollback(self): - """Test case for create_namespaced_deployment_rollback - - """ - pass - - def test_create_namespaced_stateful_set(self): - """Test case for create_namespaced_stateful_set - - """ - pass - - def test_delete_collection_namespaced_controller_revision(self): - """Test case for delete_collection_namespaced_controller_revision - - """ - pass - - def test_delete_collection_namespaced_deployment(self): - """Test case for delete_collection_namespaced_deployment - - """ - pass - - def test_delete_collection_namespaced_stateful_set(self): - """Test case for delete_collection_namespaced_stateful_set - - """ - pass - - def test_delete_namespaced_controller_revision(self): - """Test case for delete_namespaced_controller_revision - - """ - pass - - def test_delete_namespaced_deployment(self): - """Test case for delete_namespaced_deployment - - """ - pass - - def test_delete_namespaced_stateful_set(self): - """Test case for delete_namespaced_stateful_set - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_controller_revision_for_all_namespaces(self): - """Test case for list_controller_revision_for_all_namespaces - - """ - pass - - def test_list_deployment_for_all_namespaces(self): - """Test case for list_deployment_for_all_namespaces - - """ - pass - - def test_list_namespaced_controller_revision(self): - """Test case for list_namespaced_controller_revision - - """ - pass - - def test_list_namespaced_deployment(self): - """Test case for list_namespaced_deployment - - """ - pass - - def test_list_namespaced_stateful_set(self): - """Test case for list_namespaced_stateful_set - - """ - pass - - def test_list_stateful_set_for_all_namespaces(self): - """Test case for list_stateful_set_for_all_namespaces - - """ - pass - - def test_patch_namespaced_controller_revision(self): - """Test case for patch_namespaced_controller_revision - - """ - pass - - def test_patch_namespaced_deployment(self): - """Test case for patch_namespaced_deployment - - """ - pass - - def test_patch_namespaced_deployment_scale(self): - """Test case for patch_namespaced_deployment_scale - - """ - pass - - def test_patch_namespaced_deployment_status(self): - """Test case for patch_namespaced_deployment_status - - """ - pass - - def test_patch_namespaced_stateful_set(self): - """Test case for patch_namespaced_stateful_set - - """ - pass - - def test_patch_namespaced_stateful_set_scale(self): - """Test case for patch_namespaced_stateful_set_scale - - """ - pass - - def test_patch_namespaced_stateful_set_status(self): - """Test case for patch_namespaced_stateful_set_status - - """ - pass - - def test_read_namespaced_controller_revision(self): - """Test case for read_namespaced_controller_revision - - """ - pass - - def test_read_namespaced_deployment(self): - """Test case for read_namespaced_deployment - - """ - pass - - def test_read_namespaced_deployment_scale(self): - """Test case for read_namespaced_deployment_scale - - """ - pass - - def test_read_namespaced_deployment_status(self): - """Test case for read_namespaced_deployment_status - - """ - pass - - def test_read_namespaced_stateful_set(self): - """Test case for read_namespaced_stateful_set - - """ - pass - - def test_read_namespaced_stateful_set_scale(self): - """Test case for read_namespaced_stateful_set_scale - - """ - pass - - def test_read_namespaced_stateful_set_status(self): - """Test case for read_namespaced_stateful_set_status - - """ - pass - - def test_replace_namespaced_controller_revision(self): - """Test case for replace_namespaced_controller_revision - - """ - pass - - def test_replace_namespaced_deployment(self): - """Test case for replace_namespaced_deployment - - """ - pass - - def test_replace_namespaced_deployment_scale(self): - """Test case for replace_namespaced_deployment_scale - - """ - pass - - def test_replace_namespaced_deployment_status(self): - """Test case for replace_namespaced_deployment_status - - """ - pass - - def test_replace_namespaced_stateful_set(self): - """Test case for replace_namespaced_stateful_set - - """ - pass - - def test_replace_namespaced_stateful_set_scale(self): - """Test case for replace_namespaced_stateful_set_scale - - """ - pass - - def test_replace_namespaced_stateful_set_status(self): - """Test case for replace_namespaced_stateful_set_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment.py b/kubernetes/test/test_apps_v1beta1_deployment.py deleted file mode 100644 index fb839a1cc2..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_deployment import AppsV1beta1Deployment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1Deployment(unittest.TestCase): - """AppsV1beta1Deployment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1Deployment(self): - """Test AppsV1beta1Deployment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_deployment.AppsV1beta1Deployment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_condition.py b/kubernetes/test/test_apps_v1beta1_deployment_condition.py deleted file mode 100644 index c2cc126c32..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_deployment_condition import AppsV1beta1DeploymentCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1DeploymentCondition(unittest.TestCase): - """AppsV1beta1DeploymentCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentCondition(self): - """Test AppsV1beta1DeploymentCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_deployment_condition.AppsV1beta1DeploymentCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_list.py b/kubernetes/test/test_apps_v1beta1_deployment_list.py deleted file mode 100644 index 06549cec08..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_deployment_list import AppsV1beta1DeploymentList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1DeploymentList(unittest.TestCase): - """AppsV1beta1DeploymentList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentList(self): - """Test AppsV1beta1DeploymentList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_deployment_list.AppsV1beta1DeploymentList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_rollback.py b/kubernetes/test/test_apps_v1beta1_deployment_rollback.py deleted file mode 100644 index 92f96e8d7d..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_rollback.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_deployment_rollback import AppsV1beta1DeploymentRollback # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1DeploymentRollback(unittest.TestCase): - """AppsV1beta1DeploymentRollback unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentRollback(self): - """Test AppsV1beta1DeploymentRollback""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_deployment_rollback.AppsV1beta1DeploymentRollback() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_spec.py b/kubernetes/test/test_apps_v1beta1_deployment_spec.py deleted file mode 100644 index 8915c40c9a..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_deployment_spec import AppsV1beta1DeploymentSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1DeploymentSpec(unittest.TestCase): - """AppsV1beta1DeploymentSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentSpec(self): - """Test AppsV1beta1DeploymentSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_deployment_spec.AppsV1beta1DeploymentSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_status.py b/kubernetes/test/test_apps_v1beta1_deployment_status.py deleted file mode 100644 index 33735d881a..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_deployment_status import AppsV1beta1DeploymentStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1DeploymentStatus(unittest.TestCase): - """AppsV1beta1DeploymentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentStatus(self): - """Test AppsV1beta1DeploymentStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_deployment_status.AppsV1beta1DeploymentStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_deployment_strategy.py b/kubernetes/test/test_apps_v1beta1_deployment_strategy.py deleted file mode 100644 index a68eb4c3f4..0000000000 --- a/kubernetes/test/test_apps_v1beta1_deployment_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_deployment_strategy import AppsV1beta1DeploymentStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1DeploymentStrategy(unittest.TestCase): - """AppsV1beta1DeploymentStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1DeploymentStrategy(self): - """Test AppsV1beta1DeploymentStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_deployment_strategy.AppsV1beta1DeploymentStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_rollback_config.py b/kubernetes/test/test_apps_v1beta1_rollback_config.py deleted file mode 100644 index f22ba48863..0000000000 --- a/kubernetes/test/test_apps_v1beta1_rollback_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_rollback_config import AppsV1beta1RollbackConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1RollbackConfig(unittest.TestCase): - """AppsV1beta1RollbackConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1RollbackConfig(self): - """Test AppsV1beta1RollbackConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_rollback_config.AppsV1beta1RollbackConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py deleted file mode 100644 index f3c790fd3b..0000000000 --- a/kubernetes/test/test_apps_v1beta1_rolling_update_deployment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_rolling_update_deployment import AppsV1beta1RollingUpdateDeployment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1RollingUpdateDeployment(unittest.TestCase): - """AppsV1beta1RollingUpdateDeployment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1RollingUpdateDeployment(self): - """Test AppsV1beta1RollingUpdateDeployment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_rolling_update_deployment.AppsV1beta1RollingUpdateDeployment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_scale.py b/kubernetes/test/test_apps_v1beta1_scale.py deleted file mode 100644 index 3848093a7c..0000000000 --- a/kubernetes/test/test_apps_v1beta1_scale.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_scale import AppsV1beta1Scale # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1Scale(unittest.TestCase): - """AppsV1beta1Scale unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1Scale(self): - """Test AppsV1beta1Scale""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_scale.AppsV1beta1Scale() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_scale_spec.py b/kubernetes/test/test_apps_v1beta1_scale_spec.py deleted file mode 100644 index b844776500..0000000000 --- a/kubernetes/test/test_apps_v1beta1_scale_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_scale_spec import AppsV1beta1ScaleSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1ScaleSpec(unittest.TestCase): - """AppsV1beta1ScaleSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1ScaleSpec(self): - """Test AppsV1beta1ScaleSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_scale_spec.AppsV1beta1ScaleSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta1_scale_status.py b/kubernetes/test/test_apps_v1beta1_scale_status.py deleted file mode 100644 index fae8bf5933..0000000000 --- a/kubernetes/test/test_apps_v1beta1_scale_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.apps_v1beta1_scale_status import AppsV1beta1ScaleStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta1ScaleStatus(unittest.TestCase): - """AppsV1beta1ScaleStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAppsV1beta1ScaleStatus(self): - """Test AppsV1beta1ScaleStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.apps_v1beta1_scale_status.AppsV1beta1ScaleStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_apps_v1beta2_api.py b/kubernetes/test/test_apps_v1beta2_api.py deleted file mode 100644 index 4b31a19875..0000000000 --- a/kubernetes/test/test_apps_v1beta2_api.py +++ /dev/null @@ -1,405 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.apps_v1beta2_api import AppsV1beta2Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAppsV1beta2Api(unittest.TestCase): - """AppsV1beta2Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.apps_v1beta2_api.AppsV1beta2Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_controller_revision(self): - """Test case for create_namespaced_controller_revision - - """ - pass - - def test_create_namespaced_daemon_set(self): - """Test case for create_namespaced_daemon_set - - """ - pass - - def test_create_namespaced_deployment(self): - """Test case for create_namespaced_deployment - - """ - pass - - def test_create_namespaced_replica_set(self): - """Test case for create_namespaced_replica_set - - """ - pass - - def test_create_namespaced_stateful_set(self): - """Test case for create_namespaced_stateful_set - - """ - pass - - def test_delete_collection_namespaced_controller_revision(self): - """Test case for delete_collection_namespaced_controller_revision - - """ - pass - - def test_delete_collection_namespaced_daemon_set(self): - """Test case for delete_collection_namespaced_daemon_set - - """ - pass - - def test_delete_collection_namespaced_deployment(self): - """Test case for delete_collection_namespaced_deployment - - """ - pass - - def test_delete_collection_namespaced_replica_set(self): - """Test case for delete_collection_namespaced_replica_set - - """ - pass - - def test_delete_collection_namespaced_stateful_set(self): - """Test case for delete_collection_namespaced_stateful_set - - """ - pass - - def test_delete_namespaced_controller_revision(self): - """Test case for delete_namespaced_controller_revision - - """ - pass - - def test_delete_namespaced_daemon_set(self): - """Test case for delete_namespaced_daemon_set - - """ - pass - - def test_delete_namespaced_deployment(self): - """Test case for delete_namespaced_deployment - - """ - pass - - def test_delete_namespaced_replica_set(self): - """Test case for delete_namespaced_replica_set - - """ - pass - - def test_delete_namespaced_stateful_set(self): - """Test case for delete_namespaced_stateful_set - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_controller_revision_for_all_namespaces(self): - """Test case for list_controller_revision_for_all_namespaces - - """ - pass - - def test_list_daemon_set_for_all_namespaces(self): - """Test case for list_daemon_set_for_all_namespaces - - """ - pass - - def test_list_deployment_for_all_namespaces(self): - """Test case for list_deployment_for_all_namespaces - - """ - pass - - def test_list_namespaced_controller_revision(self): - """Test case for list_namespaced_controller_revision - - """ - pass - - def test_list_namespaced_daemon_set(self): - """Test case for list_namespaced_daemon_set - - """ - pass - - def test_list_namespaced_deployment(self): - """Test case for list_namespaced_deployment - - """ - pass - - def test_list_namespaced_replica_set(self): - """Test case for list_namespaced_replica_set - - """ - pass - - def test_list_namespaced_stateful_set(self): - """Test case for list_namespaced_stateful_set - - """ - pass - - def test_list_replica_set_for_all_namespaces(self): - """Test case for list_replica_set_for_all_namespaces - - """ - pass - - def test_list_stateful_set_for_all_namespaces(self): - """Test case for list_stateful_set_for_all_namespaces - - """ - pass - - def test_patch_namespaced_controller_revision(self): - """Test case for patch_namespaced_controller_revision - - """ - pass - - def test_patch_namespaced_daemon_set(self): - """Test case for patch_namespaced_daemon_set - - """ - pass - - def test_patch_namespaced_daemon_set_status(self): - """Test case for patch_namespaced_daemon_set_status - - """ - pass - - def test_patch_namespaced_deployment(self): - """Test case for patch_namespaced_deployment - - """ - pass - - def test_patch_namespaced_deployment_scale(self): - """Test case for patch_namespaced_deployment_scale - - """ - pass - - def test_patch_namespaced_deployment_status(self): - """Test case for patch_namespaced_deployment_status - - """ - pass - - def test_patch_namespaced_replica_set(self): - """Test case for patch_namespaced_replica_set - - """ - pass - - def test_patch_namespaced_replica_set_scale(self): - """Test case for patch_namespaced_replica_set_scale - - """ - pass - - def test_patch_namespaced_replica_set_status(self): - """Test case for patch_namespaced_replica_set_status - - """ - pass - - def test_patch_namespaced_stateful_set(self): - """Test case for patch_namespaced_stateful_set - - """ - pass - - def test_patch_namespaced_stateful_set_scale(self): - """Test case for patch_namespaced_stateful_set_scale - - """ - pass - - def test_patch_namespaced_stateful_set_status(self): - """Test case for patch_namespaced_stateful_set_status - - """ - pass - - def test_read_namespaced_controller_revision(self): - """Test case for read_namespaced_controller_revision - - """ - pass - - def test_read_namespaced_daemon_set(self): - """Test case for read_namespaced_daemon_set - - """ - pass - - def test_read_namespaced_daemon_set_status(self): - """Test case for read_namespaced_daemon_set_status - - """ - pass - - def test_read_namespaced_deployment(self): - """Test case for read_namespaced_deployment - - """ - pass - - def test_read_namespaced_deployment_scale(self): - """Test case for read_namespaced_deployment_scale - - """ - pass - - def test_read_namespaced_deployment_status(self): - """Test case for read_namespaced_deployment_status - - """ - pass - - def test_read_namespaced_replica_set(self): - """Test case for read_namespaced_replica_set - - """ - pass - - def test_read_namespaced_replica_set_scale(self): - """Test case for read_namespaced_replica_set_scale - - """ - pass - - def test_read_namespaced_replica_set_status(self): - """Test case for read_namespaced_replica_set_status - - """ - pass - - def test_read_namespaced_stateful_set(self): - """Test case for read_namespaced_stateful_set - - """ - pass - - def test_read_namespaced_stateful_set_scale(self): - """Test case for read_namespaced_stateful_set_scale - - """ - pass - - def test_read_namespaced_stateful_set_status(self): - """Test case for read_namespaced_stateful_set_status - - """ - pass - - def test_replace_namespaced_controller_revision(self): - """Test case for replace_namespaced_controller_revision - - """ - pass - - def test_replace_namespaced_daemon_set(self): - """Test case for replace_namespaced_daemon_set - - """ - pass - - def test_replace_namespaced_daemon_set_status(self): - """Test case for replace_namespaced_daemon_set_status - - """ - pass - - def test_replace_namespaced_deployment(self): - """Test case for replace_namespaced_deployment - - """ - pass - - def test_replace_namespaced_deployment_scale(self): - """Test case for replace_namespaced_deployment_scale - - """ - pass - - def test_replace_namespaced_deployment_status(self): - """Test case for replace_namespaced_deployment_status - - """ - pass - - def test_replace_namespaced_replica_set(self): - """Test case for replace_namespaced_replica_set - - """ - pass - - def test_replace_namespaced_replica_set_scale(self): - """Test case for replace_namespaced_replica_set_scale - - """ - pass - - def test_replace_namespaced_replica_set_status(self): - """Test case for replace_namespaced_replica_set_status - - """ - pass - - def test_replace_namespaced_stateful_set(self): - """Test case for replace_namespaced_stateful_set - - """ - pass - - def test_replace_namespaced_stateful_set_scale(self): - """Test case for replace_namespaced_stateful_set_scale - - """ - pass - - def test_replace_namespaced_stateful_set_status(self): - """Test case for replace_namespaced_stateful_set_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_auditregistration_api.py b/kubernetes/test/test_auditregistration_api.py deleted file mode 100644 index 8d0ca0ee17..0000000000 --- a/kubernetes/test/test_auditregistration_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.auditregistration_api import AuditregistrationApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAuditregistrationApi(unittest.TestCase): - """AuditregistrationApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.auditregistration_api.AuditregistrationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_auditregistration_v1alpha1_api.py b/kubernetes/test/test_auditregistration_v1alpha1_api.py deleted file mode 100644 index 1119f385df..0000000000 --- a/kubernetes/test/test_auditregistration_v1alpha1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.auditregistration_v1alpha1_api import AuditregistrationV1alpha1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAuditregistrationV1alpha1Api(unittest.TestCase): - """AuditregistrationV1alpha1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.auditregistration_v1alpha1_api.AuditregistrationV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_audit_sink(self): - """Test case for create_audit_sink - - """ - pass - - def test_delete_audit_sink(self): - """Test case for delete_audit_sink - - """ - pass - - def test_delete_collection_audit_sink(self): - """Test case for delete_collection_audit_sink - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_audit_sink(self): - """Test case for list_audit_sink - - """ - pass - - def test_patch_audit_sink(self): - """Test case for patch_audit_sink - - """ - pass - - def test_read_audit_sink(self): - """Test case for read_audit_sink - - """ - pass - - def test_replace_audit_sink(self): - """Test case for replace_audit_sink - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authentication_api.py b/kubernetes/test/test_authentication_api.py deleted file mode 100644 index 36acc1dc1c..0000000000 --- a/kubernetes/test/test_authentication_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.authentication_api import AuthenticationApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAuthenticationApi(unittest.TestCase): - """AuthenticationApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.authentication_api.AuthenticationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authentication_v1_api.py b/kubernetes/test/test_authentication_v1_api.py deleted file mode 100644 index 4a1d9b4be3..0000000000 --- a/kubernetes/test/test_authentication_v1_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.authentication_v1_api import AuthenticationV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAuthenticationV1Api(unittest.TestCase): - """AuthenticationV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.authentication_v1_api.AuthenticationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_token_review(self): - """Test case for create_token_review - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authentication_v1beta1_api.py b/kubernetes/test/test_authentication_v1beta1_api.py deleted file mode 100644 index 2a4ad71aec..0000000000 --- a/kubernetes/test/test_authentication_v1beta1_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.authentication_v1beta1_api import AuthenticationV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAuthenticationV1beta1Api(unittest.TestCase): - """AuthenticationV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.authentication_v1beta1_api.AuthenticationV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_token_review(self): - """Test case for create_token_review - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authorization_api.py b/kubernetes/test/test_authorization_api.py deleted file mode 100644 index 2e84a37aa4..0000000000 --- a/kubernetes/test/test_authorization_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.authorization_api import AuthorizationApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAuthorizationApi(unittest.TestCase): - """AuthorizationApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.authorization_api.AuthorizationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authorization_v1_api.py b/kubernetes/test/test_authorization_v1_api.py deleted file mode 100644 index cc168f4d8d..0000000000 --- a/kubernetes/test/test_authorization_v1_api.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.authorization_v1_api import AuthorizationV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAuthorizationV1Api(unittest.TestCase): - """AuthorizationV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.authorization_v1_api.AuthorizationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_local_subject_access_review(self): - """Test case for create_namespaced_local_subject_access_review - - """ - pass - - def test_create_self_subject_access_review(self): - """Test case for create_self_subject_access_review - - """ - pass - - def test_create_self_subject_rules_review(self): - """Test case for create_self_subject_rules_review - - """ - pass - - def test_create_subject_access_review(self): - """Test case for create_subject_access_review - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_authorization_v1beta1_api.py b/kubernetes/test/test_authorization_v1beta1_api.py deleted file mode 100644 index cbe4066db0..0000000000 --- a/kubernetes/test/test_authorization_v1beta1_api.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.authorization_v1beta1_api import AuthorizationV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAuthorizationV1beta1Api(unittest.TestCase): - """AuthorizationV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.authorization_v1beta1_api.AuthorizationV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_local_subject_access_review(self): - """Test case for create_namespaced_local_subject_access_review - - """ - pass - - def test_create_self_subject_access_review(self): - """Test case for create_self_subject_access_review - - """ - pass - - def test_create_self_subject_rules_review(self): - """Test case for create_self_subject_rules_review - - """ - pass - - def test_create_subject_access_review(self): - """Test case for create_subject_access_review - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_autoscaling_api.py b/kubernetes/test/test_autoscaling_api.py deleted file mode 100644 index 0b4f9b35eb..0000000000 --- a/kubernetes/test/test_autoscaling_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.autoscaling_api import AutoscalingApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAutoscalingApi(unittest.TestCase): - """AutoscalingApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.autoscaling_api.AutoscalingApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_autoscaling_v1_api.py b/kubernetes/test/test_autoscaling_v1_api.py deleted file mode 100644 index fd4ba0d90e..0000000000 --- a/kubernetes/test/test_autoscaling_v1_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.autoscaling_v1_api import AutoscalingV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAutoscalingV1Api(unittest.TestCase): - """AutoscalingV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.autoscaling_v1_api.AutoscalingV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_horizontal_pod_autoscaler(self): - """Test case for create_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_collection_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """Test case for list_horizontal_pod_autoscaler_for_all_namespaces - - """ - pass - - def test_list_namespaced_horizontal_pod_autoscaler(self): - """Test case for list_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler(self): - """Test case for read_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for read_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_autoscaling_v2beta1_api.py b/kubernetes/test/test_autoscaling_v2beta1_api.py deleted file mode 100644 index a452e52071..0000000000 --- a/kubernetes/test/test_autoscaling_v2beta1_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.autoscaling_v2beta1_api import AutoscalingV2beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAutoscalingV2beta1Api(unittest.TestCase): - """AutoscalingV2beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.autoscaling_v2beta1_api.AutoscalingV2beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_horizontal_pod_autoscaler(self): - """Test case for create_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_collection_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """Test case for list_horizontal_pod_autoscaler_for_all_namespaces - - """ - pass - - def test_list_namespaced_horizontal_pod_autoscaler(self): - """Test case for list_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler(self): - """Test case for read_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for read_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_autoscaling_v2beta2_api.py b/kubernetes/test/test_autoscaling_v2beta2_api.py deleted file mode 100644 index daf7110813..0000000000 --- a/kubernetes/test/test_autoscaling_v2beta2_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.autoscaling_v2beta2_api import AutoscalingV2beta2Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestAutoscalingV2beta2Api(unittest.TestCase): - """AutoscalingV2beta2Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.autoscaling_v2beta2_api.AutoscalingV2beta2Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_horizontal_pod_autoscaler(self): - """Test case for create_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_collection_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_collection_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_delete_namespaced_horizontal_pod_autoscaler(self): - """Test case for delete_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_horizontal_pod_autoscaler_for_all_namespaces(self): - """Test case for list_horizontal_pod_autoscaler_for_all_namespaces - - """ - pass - - def test_list_namespaced_horizontal_pod_autoscaler(self): - """Test case for list_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_patch_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for patch_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler(self): - """Test case for read_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_read_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for read_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler - - """ - pass - - def test_replace_namespaced_horizontal_pod_autoscaler_status(self): - """Test case for replace_namespaced_horizontal_pod_autoscaler_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_batch_api.py b/kubernetes/test/test_batch_api.py deleted file mode 100644 index 1578cb95c8..0000000000 --- a/kubernetes/test/test_batch_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.batch_api import BatchApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestBatchApi(unittest.TestCase): - """BatchApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.batch_api.BatchApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_batch_v1_api.py b/kubernetes/test/test_batch_v1_api.py deleted file mode 100644 index 23b6635330..0000000000 --- a/kubernetes/test/test_batch_v1_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.batch_v1_api import BatchV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestBatchV1Api(unittest.TestCase): - """BatchV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.batch_v1_api.BatchV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_job(self): - """Test case for create_namespaced_job - - """ - pass - - def test_delete_collection_namespaced_job(self): - """Test case for delete_collection_namespaced_job - - """ - pass - - def test_delete_namespaced_job(self): - """Test case for delete_namespaced_job - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_job_for_all_namespaces(self): - """Test case for list_job_for_all_namespaces - - """ - pass - - def test_list_namespaced_job(self): - """Test case for list_namespaced_job - - """ - pass - - def test_patch_namespaced_job(self): - """Test case for patch_namespaced_job - - """ - pass - - def test_patch_namespaced_job_status(self): - """Test case for patch_namespaced_job_status - - """ - pass - - def test_read_namespaced_job(self): - """Test case for read_namespaced_job - - """ - pass - - def test_read_namespaced_job_status(self): - """Test case for read_namespaced_job_status - - """ - pass - - def test_replace_namespaced_job(self): - """Test case for replace_namespaced_job - - """ - pass - - def test_replace_namespaced_job_status(self): - """Test case for replace_namespaced_job_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_batch_v1beta1_api.py b/kubernetes/test/test_batch_v1beta1_api.py deleted file mode 100644 index 72fd00a81b..0000000000 --- a/kubernetes/test/test_batch_v1beta1_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.batch_v1beta1_api import BatchV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestBatchV1beta1Api(unittest.TestCase): - """BatchV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.batch_v1beta1_api.BatchV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_cron_job(self): - """Test case for create_namespaced_cron_job - - """ - pass - - def test_delete_collection_namespaced_cron_job(self): - """Test case for delete_collection_namespaced_cron_job - - """ - pass - - def test_delete_namespaced_cron_job(self): - """Test case for delete_namespaced_cron_job - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_cron_job_for_all_namespaces(self): - """Test case for list_cron_job_for_all_namespaces - - """ - pass - - def test_list_namespaced_cron_job(self): - """Test case for list_namespaced_cron_job - - """ - pass - - def test_patch_namespaced_cron_job(self): - """Test case for patch_namespaced_cron_job - - """ - pass - - def test_patch_namespaced_cron_job_status(self): - """Test case for patch_namespaced_cron_job_status - - """ - pass - - def test_read_namespaced_cron_job(self): - """Test case for read_namespaced_cron_job - - """ - pass - - def test_read_namespaced_cron_job_status(self): - """Test case for read_namespaced_cron_job_status - - """ - pass - - def test_replace_namespaced_cron_job(self): - """Test case for replace_namespaced_cron_job - - """ - pass - - def test_replace_namespaced_cron_job_status(self): - """Test case for replace_namespaced_cron_job_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_batch_v2alpha1_api.py b/kubernetes/test/test_batch_v2alpha1_api.py deleted file mode 100644 index 9518410822..0000000000 --- a/kubernetes/test/test_batch_v2alpha1_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.batch_v2alpha1_api import BatchV2alpha1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestBatchV2alpha1Api(unittest.TestCase): - """BatchV2alpha1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.batch_v2alpha1_api.BatchV2alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_cron_job(self): - """Test case for create_namespaced_cron_job - - """ - pass - - def test_delete_collection_namespaced_cron_job(self): - """Test case for delete_collection_namespaced_cron_job - - """ - pass - - def test_delete_namespaced_cron_job(self): - """Test case for delete_namespaced_cron_job - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_cron_job_for_all_namespaces(self): - """Test case for list_cron_job_for_all_namespaces - - """ - pass - - def test_list_namespaced_cron_job(self): - """Test case for list_namespaced_cron_job - - """ - pass - - def test_patch_namespaced_cron_job(self): - """Test case for patch_namespaced_cron_job - - """ - pass - - def test_patch_namespaced_cron_job_status(self): - """Test case for patch_namespaced_cron_job_status - - """ - pass - - def test_read_namespaced_cron_job(self): - """Test case for read_namespaced_cron_job - - """ - pass - - def test_read_namespaced_cron_job_status(self): - """Test case for read_namespaced_cron_job_status - - """ - pass - - def test_replace_namespaced_cron_job(self): - """Test case for replace_namespaced_cron_job - - """ - pass - - def test_replace_namespaced_cron_job_status(self): - """Test case for replace_namespaced_cron_job_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_certificates_api.py b/kubernetes/test/test_certificates_api.py deleted file mode 100644 index 82e7dd9313..0000000000 --- a/kubernetes/test/test_certificates_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.certificates_api import CertificatesApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestCertificatesApi(unittest.TestCase): - """CertificatesApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.certificates_api.CertificatesApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_certificates_v1beta1_api.py b/kubernetes/test/test_certificates_v1beta1_api.py deleted file mode 100644 index 38ae10b926..0000000000 --- a/kubernetes/test/test_certificates_v1beta1_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.certificates_v1beta1_api import CertificatesV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestCertificatesV1beta1Api(unittest.TestCase): - """CertificatesV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.certificates_v1beta1_api.CertificatesV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_certificate_signing_request(self): - """Test case for create_certificate_signing_request - - """ - pass - - def test_delete_certificate_signing_request(self): - """Test case for delete_certificate_signing_request - - """ - pass - - def test_delete_collection_certificate_signing_request(self): - """Test case for delete_collection_certificate_signing_request - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_certificate_signing_request(self): - """Test case for list_certificate_signing_request - - """ - pass - - def test_patch_certificate_signing_request(self): - """Test case for patch_certificate_signing_request - - """ - pass - - def test_patch_certificate_signing_request_status(self): - """Test case for patch_certificate_signing_request_status - - """ - pass - - def test_read_certificate_signing_request(self): - """Test case for read_certificate_signing_request - - """ - pass - - def test_read_certificate_signing_request_status(self): - """Test case for read_certificate_signing_request_status - - """ - pass - - def test_replace_certificate_signing_request(self): - """Test case for replace_certificate_signing_request - - """ - pass - - def test_replace_certificate_signing_request_approval(self): - """Test case for replace_certificate_signing_request_approval - - """ - pass - - def test_replace_certificate_signing_request_status(self): - """Test case for replace_certificate_signing_request_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_coordination_api.py b/kubernetes/test/test_coordination_api.py deleted file mode 100644 index 49d35eeaae..0000000000 --- a/kubernetes/test/test_coordination_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.coordination_api import CoordinationApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestCoordinationApi(unittest.TestCase): - """CoordinationApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.coordination_api.CoordinationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_coordination_v1_api.py b/kubernetes/test/test_coordination_v1_api.py deleted file mode 100644 index 894391f4c0..0000000000 --- a/kubernetes/test/test_coordination_v1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.coordination_v1_api import CoordinationV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestCoordinationV1Api(unittest.TestCase): - """CoordinationV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.coordination_v1_api.CoordinationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_lease(self): - """Test case for create_namespaced_lease - - """ - pass - - def test_delete_collection_namespaced_lease(self): - """Test case for delete_collection_namespaced_lease - - """ - pass - - def test_delete_namespaced_lease(self): - """Test case for delete_namespaced_lease - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_lease_for_all_namespaces(self): - """Test case for list_lease_for_all_namespaces - - """ - pass - - def test_list_namespaced_lease(self): - """Test case for list_namespaced_lease - - """ - pass - - def test_patch_namespaced_lease(self): - """Test case for patch_namespaced_lease - - """ - pass - - def test_read_namespaced_lease(self): - """Test case for read_namespaced_lease - - """ - pass - - def test_replace_namespaced_lease(self): - """Test case for replace_namespaced_lease - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_coordination_v1beta1_api.py b/kubernetes/test/test_coordination_v1beta1_api.py deleted file mode 100644 index 67db8fbcab..0000000000 --- a/kubernetes/test/test_coordination_v1beta1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.coordination_v1beta1_api import CoordinationV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestCoordinationV1beta1Api(unittest.TestCase): - """CoordinationV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.coordination_v1beta1_api.CoordinationV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_lease(self): - """Test case for create_namespaced_lease - - """ - pass - - def test_delete_collection_namespaced_lease(self): - """Test case for delete_collection_namespaced_lease - - """ - pass - - def test_delete_namespaced_lease(self): - """Test case for delete_namespaced_lease - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_lease_for_all_namespaces(self): - """Test case for list_lease_for_all_namespaces - - """ - pass - - def test_list_namespaced_lease(self): - """Test case for list_namespaced_lease - - """ - pass - - def test_patch_namespaced_lease(self): - """Test case for patch_namespaced_lease - - """ - pass - - def test_read_namespaced_lease(self): - """Test case for read_namespaced_lease - - """ - pass - - def test_replace_namespaced_lease(self): - """Test case for replace_namespaced_lease - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_core_api.py b/kubernetes/test/test_core_api.py deleted file mode 100644 index 8abea6e96c..0000000000 --- a/kubernetes/test/test_core_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.core_api import CoreApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestCoreApi(unittest.TestCase): - """CoreApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.core_api.CoreApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_versions(self): - """Test case for get_api_versions - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_core_v1_api.py b/kubernetes/test/test_core_v1_api.py deleted file mode 100644 index 6e27ec0cce..0000000000 --- a/kubernetes/test/test_core_v1_api.py +++ /dev/null @@ -1,1227 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.core_v1_api import CoreV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestCoreV1Api(unittest.TestCase): - """CoreV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.core_v1_api.CoreV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_connect_delete_namespaced_pod_proxy(self): - """Test case for connect_delete_namespaced_pod_proxy - - """ - pass - - def test_connect_delete_namespaced_pod_proxy_with_path(self): - """Test case for connect_delete_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_delete_namespaced_service_proxy(self): - """Test case for connect_delete_namespaced_service_proxy - - """ - pass - - def test_connect_delete_namespaced_service_proxy_with_path(self): - """Test case for connect_delete_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_delete_node_proxy(self): - """Test case for connect_delete_node_proxy - - """ - pass - - def test_connect_delete_node_proxy_with_path(self): - """Test case for connect_delete_node_proxy_with_path - - """ - pass - - def test_connect_get_namespaced_pod_attach(self): - """Test case for connect_get_namespaced_pod_attach - - """ - pass - - def test_connect_get_namespaced_pod_exec(self): - """Test case for connect_get_namespaced_pod_exec - - """ - pass - - def test_connect_get_namespaced_pod_portforward(self): - """Test case for connect_get_namespaced_pod_portforward - - """ - pass - - def test_connect_get_namespaced_pod_proxy(self): - """Test case for connect_get_namespaced_pod_proxy - - """ - pass - - def test_connect_get_namespaced_pod_proxy_with_path(self): - """Test case for connect_get_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_get_namespaced_service_proxy(self): - """Test case for connect_get_namespaced_service_proxy - - """ - pass - - def test_connect_get_namespaced_service_proxy_with_path(self): - """Test case for connect_get_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_get_node_proxy(self): - """Test case for connect_get_node_proxy - - """ - pass - - def test_connect_get_node_proxy_with_path(self): - """Test case for connect_get_node_proxy_with_path - - """ - pass - - def test_connect_head_namespaced_pod_proxy(self): - """Test case for connect_head_namespaced_pod_proxy - - """ - pass - - def test_connect_head_namespaced_pod_proxy_with_path(self): - """Test case for connect_head_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_head_namespaced_service_proxy(self): - """Test case for connect_head_namespaced_service_proxy - - """ - pass - - def test_connect_head_namespaced_service_proxy_with_path(self): - """Test case for connect_head_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_head_node_proxy(self): - """Test case for connect_head_node_proxy - - """ - pass - - def test_connect_head_node_proxy_with_path(self): - """Test case for connect_head_node_proxy_with_path - - """ - pass - - def test_connect_options_namespaced_pod_proxy(self): - """Test case for connect_options_namespaced_pod_proxy - - """ - pass - - def test_connect_options_namespaced_pod_proxy_with_path(self): - """Test case for connect_options_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_options_namespaced_service_proxy(self): - """Test case for connect_options_namespaced_service_proxy - - """ - pass - - def test_connect_options_namespaced_service_proxy_with_path(self): - """Test case for connect_options_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_options_node_proxy(self): - """Test case for connect_options_node_proxy - - """ - pass - - def test_connect_options_node_proxy_with_path(self): - """Test case for connect_options_node_proxy_with_path - - """ - pass - - def test_connect_patch_namespaced_pod_proxy(self): - """Test case for connect_patch_namespaced_pod_proxy - - """ - pass - - def test_connect_patch_namespaced_pod_proxy_with_path(self): - """Test case for connect_patch_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_patch_namespaced_service_proxy(self): - """Test case for connect_patch_namespaced_service_proxy - - """ - pass - - def test_connect_patch_namespaced_service_proxy_with_path(self): - """Test case for connect_patch_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_patch_node_proxy(self): - """Test case for connect_patch_node_proxy - - """ - pass - - def test_connect_patch_node_proxy_with_path(self): - """Test case for connect_patch_node_proxy_with_path - - """ - pass - - def test_connect_post_namespaced_pod_attach(self): - """Test case for connect_post_namespaced_pod_attach - - """ - pass - - def test_connect_post_namespaced_pod_exec(self): - """Test case for connect_post_namespaced_pod_exec - - """ - pass - - def test_connect_post_namespaced_pod_portforward(self): - """Test case for connect_post_namespaced_pod_portforward - - """ - pass - - def test_connect_post_namespaced_pod_proxy(self): - """Test case for connect_post_namespaced_pod_proxy - - """ - pass - - def test_connect_post_namespaced_pod_proxy_with_path(self): - """Test case for connect_post_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_post_namespaced_service_proxy(self): - """Test case for connect_post_namespaced_service_proxy - - """ - pass - - def test_connect_post_namespaced_service_proxy_with_path(self): - """Test case for connect_post_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_post_node_proxy(self): - """Test case for connect_post_node_proxy - - """ - pass - - def test_connect_post_node_proxy_with_path(self): - """Test case for connect_post_node_proxy_with_path - - """ - pass - - def test_connect_put_namespaced_pod_proxy(self): - """Test case for connect_put_namespaced_pod_proxy - - """ - pass - - def test_connect_put_namespaced_pod_proxy_with_path(self): - """Test case for connect_put_namespaced_pod_proxy_with_path - - """ - pass - - def test_connect_put_namespaced_service_proxy(self): - """Test case for connect_put_namespaced_service_proxy - - """ - pass - - def test_connect_put_namespaced_service_proxy_with_path(self): - """Test case for connect_put_namespaced_service_proxy_with_path - - """ - pass - - def test_connect_put_node_proxy(self): - """Test case for connect_put_node_proxy - - """ - pass - - def test_connect_put_node_proxy_with_path(self): - """Test case for connect_put_node_proxy_with_path - - """ - pass - - def test_create_namespace(self): - """Test case for create_namespace - - """ - pass - - def test_create_namespaced_binding(self): - """Test case for create_namespaced_binding - - """ - pass - - def test_create_namespaced_config_map(self): - """Test case for create_namespaced_config_map - - """ - pass - - def test_create_namespaced_endpoints(self): - """Test case for create_namespaced_endpoints - - """ - pass - - def test_create_namespaced_event(self): - """Test case for create_namespaced_event - - """ - pass - - def test_create_namespaced_limit_range(self): - """Test case for create_namespaced_limit_range - - """ - pass - - def test_create_namespaced_persistent_volume_claim(self): - """Test case for create_namespaced_persistent_volume_claim - - """ - pass - - def test_create_namespaced_pod(self): - """Test case for create_namespaced_pod - - """ - pass - - def test_create_namespaced_pod_binding(self): - """Test case for create_namespaced_pod_binding - - """ - pass - - def test_create_namespaced_pod_eviction(self): - """Test case for create_namespaced_pod_eviction - - """ - pass - - def test_create_namespaced_pod_template(self): - """Test case for create_namespaced_pod_template - - """ - pass - - def test_create_namespaced_replication_controller(self): - """Test case for create_namespaced_replication_controller - - """ - pass - - def test_create_namespaced_resource_quota(self): - """Test case for create_namespaced_resource_quota - - """ - pass - - def test_create_namespaced_secret(self): - """Test case for create_namespaced_secret - - """ - pass - - def test_create_namespaced_service(self): - """Test case for create_namespaced_service - - """ - pass - - def test_create_namespaced_service_account(self): - """Test case for create_namespaced_service_account - - """ - pass - - def test_create_namespaced_service_account_token(self): - """Test case for create_namespaced_service_account_token - - """ - pass - - def test_create_node(self): - """Test case for create_node - - """ - pass - - def test_create_persistent_volume(self): - """Test case for create_persistent_volume - - """ - pass - - def test_delete_collection_namespaced_config_map(self): - """Test case for delete_collection_namespaced_config_map - - """ - pass - - def test_delete_collection_namespaced_endpoints(self): - """Test case for delete_collection_namespaced_endpoints - - """ - pass - - def test_delete_collection_namespaced_event(self): - """Test case for delete_collection_namespaced_event - - """ - pass - - def test_delete_collection_namespaced_limit_range(self): - """Test case for delete_collection_namespaced_limit_range - - """ - pass - - def test_delete_collection_namespaced_persistent_volume_claim(self): - """Test case for delete_collection_namespaced_persistent_volume_claim - - """ - pass - - def test_delete_collection_namespaced_pod(self): - """Test case for delete_collection_namespaced_pod - - """ - pass - - def test_delete_collection_namespaced_pod_template(self): - """Test case for delete_collection_namespaced_pod_template - - """ - pass - - def test_delete_collection_namespaced_replication_controller(self): - """Test case for delete_collection_namespaced_replication_controller - - """ - pass - - def test_delete_collection_namespaced_resource_quota(self): - """Test case for delete_collection_namespaced_resource_quota - - """ - pass - - def test_delete_collection_namespaced_secret(self): - """Test case for delete_collection_namespaced_secret - - """ - pass - - def test_delete_collection_namespaced_service_account(self): - """Test case for delete_collection_namespaced_service_account - - """ - pass - - def test_delete_collection_node(self): - """Test case for delete_collection_node - - """ - pass - - def test_delete_collection_persistent_volume(self): - """Test case for delete_collection_persistent_volume - - """ - pass - - def test_delete_namespace(self): - """Test case for delete_namespace - - """ - pass - - def test_delete_namespaced_config_map(self): - """Test case for delete_namespaced_config_map - - """ - pass - - def test_delete_namespaced_endpoints(self): - """Test case for delete_namespaced_endpoints - - """ - pass - - def test_delete_namespaced_event(self): - """Test case for delete_namespaced_event - - """ - pass - - def test_delete_namespaced_limit_range(self): - """Test case for delete_namespaced_limit_range - - """ - pass - - def test_delete_namespaced_persistent_volume_claim(self): - """Test case for delete_namespaced_persistent_volume_claim - - """ - pass - - def test_delete_namespaced_pod(self): - """Test case for delete_namespaced_pod - - """ - pass - - def test_delete_namespaced_pod_template(self): - """Test case for delete_namespaced_pod_template - - """ - pass - - def test_delete_namespaced_replication_controller(self): - """Test case for delete_namespaced_replication_controller - - """ - pass - - def test_delete_namespaced_resource_quota(self): - """Test case for delete_namespaced_resource_quota - - """ - pass - - def test_delete_namespaced_secret(self): - """Test case for delete_namespaced_secret - - """ - pass - - def test_delete_namespaced_service(self): - """Test case for delete_namespaced_service - - """ - pass - - def test_delete_namespaced_service_account(self): - """Test case for delete_namespaced_service_account - - """ - pass - - def test_delete_node(self): - """Test case for delete_node - - """ - pass - - def test_delete_persistent_volume(self): - """Test case for delete_persistent_volume - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_component_status(self): - """Test case for list_component_status - - """ - pass - - def test_list_config_map_for_all_namespaces(self): - """Test case for list_config_map_for_all_namespaces - - """ - pass - - def test_list_endpoints_for_all_namespaces(self): - """Test case for list_endpoints_for_all_namespaces - - """ - pass - - def test_list_event_for_all_namespaces(self): - """Test case for list_event_for_all_namespaces - - """ - pass - - def test_list_limit_range_for_all_namespaces(self): - """Test case for list_limit_range_for_all_namespaces - - """ - pass - - def test_list_namespace(self): - """Test case for list_namespace - - """ - pass - - def test_list_namespaced_config_map(self): - """Test case for list_namespaced_config_map - - """ - pass - - def test_list_namespaced_endpoints(self): - """Test case for list_namespaced_endpoints - - """ - pass - - def test_list_namespaced_event(self): - """Test case for list_namespaced_event - - """ - pass - - def test_list_namespaced_limit_range(self): - """Test case for list_namespaced_limit_range - - """ - pass - - def test_list_namespaced_persistent_volume_claim(self): - """Test case for list_namespaced_persistent_volume_claim - - """ - pass - - def test_list_namespaced_pod(self): - """Test case for list_namespaced_pod - - """ - pass - - def test_list_namespaced_pod_template(self): - """Test case for list_namespaced_pod_template - - """ - pass - - def test_list_namespaced_replication_controller(self): - """Test case for list_namespaced_replication_controller - - """ - pass - - def test_list_namespaced_resource_quota(self): - """Test case for list_namespaced_resource_quota - - """ - pass - - def test_list_namespaced_secret(self): - """Test case for list_namespaced_secret - - """ - pass - - def test_list_namespaced_service(self): - """Test case for list_namespaced_service - - """ - pass - - def test_list_namespaced_service_account(self): - """Test case for list_namespaced_service_account - - """ - pass - - def test_list_node(self): - """Test case for list_node - - """ - pass - - def test_list_persistent_volume(self): - """Test case for list_persistent_volume - - """ - pass - - def test_list_persistent_volume_claim_for_all_namespaces(self): - """Test case for list_persistent_volume_claim_for_all_namespaces - - """ - pass - - def test_list_pod_for_all_namespaces(self): - """Test case for list_pod_for_all_namespaces - - """ - pass - - def test_list_pod_template_for_all_namespaces(self): - """Test case for list_pod_template_for_all_namespaces - - """ - pass - - def test_list_replication_controller_for_all_namespaces(self): - """Test case for list_replication_controller_for_all_namespaces - - """ - pass - - def test_list_resource_quota_for_all_namespaces(self): - """Test case for list_resource_quota_for_all_namespaces - - """ - pass - - def test_list_secret_for_all_namespaces(self): - """Test case for list_secret_for_all_namespaces - - """ - pass - - def test_list_service_account_for_all_namespaces(self): - """Test case for list_service_account_for_all_namespaces - - """ - pass - - def test_list_service_for_all_namespaces(self): - """Test case for list_service_for_all_namespaces - - """ - pass - - def test_patch_namespace(self): - """Test case for patch_namespace - - """ - pass - - def test_patch_namespace_status(self): - """Test case for patch_namespace_status - - """ - pass - - def test_patch_namespaced_config_map(self): - """Test case for patch_namespaced_config_map - - """ - pass - - def test_patch_namespaced_endpoints(self): - """Test case for patch_namespaced_endpoints - - """ - pass - - def test_patch_namespaced_event(self): - """Test case for patch_namespaced_event - - """ - pass - - def test_patch_namespaced_limit_range(self): - """Test case for patch_namespaced_limit_range - - """ - pass - - def test_patch_namespaced_persistent_volume_claim(self): - """Test case for patch_namespaced_persistent_volume_claim - - """ - pass - - def test_patch_namespaced_persistent_volume_claim_status(self): - """Test case for patch_namespaced_persistent_volume_claim_status - - """ - pass - - def test_patch_namespaced_pod(self): - """Test case for patch_namespaced_pod - - """ - pass - - def test_patch_namespaced_pod_status(self): - """Test case for patch_namespaced_pod_status - - """ - pass - - def test_patch_namespaced_pod_template(self): - """Test case for patch_namespaced_pod_template - - """ - pass - - def test_patch_namespaced_replication_controller(self): - """Test case for patch_namespaced_replication_controller - - """ - pass - - def test_patch_namespaced_replication_controller_scale(self): - """Test case for patch_namespaced_replication_controller_scale - - """ - pass - - def test_patch_namespaced_replication_controller_status(self): - """Test case for patch_namespaced_replication_controller_status - - """ - pass - - def test_patch_namespaced_resource_quota(self): - """Test case for patch_namespaced_resource_quota - - """ - pass - - def test_patch_namespaced_resource_quota_status(self): - """Test case for patch_namespaced_resource_quota_status - - """ - pass - - def test_patch_namespaced_secret(self): - """Test case for patch_namespaced_secret - - """ - pass - - def test_patch_namespaced_service(self): - """Test case for patch_namespaced_service - - """ - pass - - def test_patch_namespaced_service_account(self): - """Test case for patch_namespaced_service_account - - """ - pass - - def test_patch_namespaced_service_status(self): - """Test case for patch_namespaced_service_status - - """ - pass - - def test_patch_node(self): - """Test case for patch_node - - """ - pass - - def test_patch_node_status(self): - """Test case for patch_node_status - - """ - pass - - def test_patch_persistent_volume(self): - """Test case for patch_persistent_volume - - """ - pass - - def test_patch_persistent_volume_status(self): - """Test case for patch_persistent_volume_status - - """ - pass - - def test_read_component_status(self): - """Test case for read_component_status - - """ - pass - - def test_read_namespace(self): - """Test case for read_namespace - - """ - pass - - def test_read_namespace_status(self): - """Test case for read_namespace_status - - """ - pass - - def test_read_namespaced_config_map(self): - """Test case for read_namespaced_config_map - - """ - pass - - def test_read_namespaced_endpoints(self): - """Test case for read_namespaced_endpoints - - """ - pass - - def test_read_namespaced_event(self): - """Test case for read_namespaced_event - - """ - pass - - def test_read_namespaced_limit_range(self): - """Test case for read_namespaced_limit_range - - """ - pass - - def test_read_namespaced_persistent_volume_claim(self): - """Test case for read_namespaced_persistent_volume_claim - - """ - pass - - def test_read_namespaced_persistent_volume_claim_status(self): - """Test case for read_namespaced_persistent_volume_claim_status - - """ - pass - - def test_read_namespaced_pod(self): - """Test case for read_namespaced_pod - - """ - pass - - def test_read_namespaced_pod_log(self): - """Test case for read_namespaced_pod_log - - """ - pass - - def test_read_namespaced_pod_status(self): - """Test case for read_namespaced_pod_status - - """ - pass - - def test_read_namespaced_pod_template(self): - """Test case for read_namespaced_pod_template - - """ - pass - - def test_read_namespaced_replication_controller(self): - """Test case for read_namespaced_replication_controller - - """ - pass - - def test_read_namespaced_replication_controller_scale(self): - """Test case for read_namespaced_replication_controller_scale - - """ - pass - - def test_read_namespaced_replication_controller_status(self): - """Test case for read_namespaced_replication_controller_status - - """ - pass - - def test_read_namespaced_resource_quota(self): - """Test case for read_namespaced_resource_quota - - """ - pass - - def test_read_namespaced_resource_quota_status(self): - """Test case for read_namespaced_resource_quota_status - - """ - pass - - def test_read_namespaced_secret(self): - """Test case for read_namespaced_secret - - """ - pass - - def test_read_namespaced_service(self): - """Test case for read_namespaced_service - - """ - pass - - def test_read_namespaced_service_account(self): - """Test case for read_namespaced_service_account - - """ - pass - - def test_read_namespaced_service_status(self): - """Test case for read_namespaced_service_status - - """ - pass - - def test_read_node(self): - """Test case for read_node - - """ - pass - - def test_read_node_status(self): - """Test case for read_node_status - - """ - pass - - def test_read_persistent_volume(self): - """Test case for read_persistent_volume - - """ - pass - - def test_read_persistent_volume_status(self): - """Test case for read_persistent_volume_status - - """ - pass - - def test_replace_namespace(self): - """Test case for replace_namespace - - """ - pass - - def test_replace_namespace_finalize(self): - """Test case for replace_namespace_finalize - - """ - pass - - def test_replace_namespace_status(self): - """Test case for replace_namespace_status - - """ - pass - - def test_replace_namespaced_config_map(self): - """Test case for replace_namespaced_config_map - - """ - pass - - def test_replace_namespaced_endpoints(self): - """Test case for replace_namespaced_endpoints - - """ - pass - - def test_replace_namespaced_event(self): - """Test case for replace_namespaced_event - - """ - pass - - def test_replace_namespaced_limit_range(self): - """Test case for replace_namespaced_limit_range - - """ - pass - - def test_replace_namespaced_persistent_volume_claim(self): - """Test case for replace_namespaced_persistent_volume_claim - - """ - pass - - def test_replace_namespaced_persistent_volume_claim_status(self): - """Test case for replace_namespaced_persistent_volume_claim_status - - """ - pass - - def test_replace_namespaced_pod(self): - """Test case for replace_namespaced_pod - - """ - pass - - def test_replace_namespaced_pod_status(self): - """Test case for replace_namespaced_pod_status - - """ - pass - - def test_replace_namespaced_pod_template(self): - """Test case for replace_namespaced_pod_template - - """ - pass - - def test_replace_namespaced_replication_controller(self): - """Test case for replace_namespaced_replication_controller - - """ - pass - - def test_replace_namespaced_replication_controller_scale(self): - """Test case for replace_namespaced_replication_controller_scale - - """ - pass - - def test_replace_namespaced_replication_controller_status(self): - """Test case for replace_namespaced_replication_controller_status - - """ - pass - - def test_replace_namespaced_resource_quota(self): - """Test case for replace_namespaced_resource_quota - - """ - pass - - def test_replace_namespaced_resource_quota_status(self): - """Test case for replace_namespaced_resource_quota_status - - """ - pass - - def test_replace_namespaced_secret(self): - """Test case for replace_namespaced_secret - - """ - pass - - def test_replace_namespaced_service(self): - """Test case for replace_namespaced_service - - """ - pass - - def test_replace_namespaced_service_account(self): - """Test case for replace_namespaced_service_account - - """ - pass - - def test_replace_namespaced_service_status(self): - """Test case for replace_namespaced_service_status - - """ - pass - - def test_replace_node(self): - """Test case for replace_node - - """ - pass - - def test_replace_node_status(self): - """Test case for replace_node_status - - """ - pass - - def test_replace_persistent_volume(self): - """Test case for replace_persistent_volume - - """ - pass - - def test_replace_persistent_volume_status(self): - """Test case for replace_persistent_volume_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_custom_objects_api.py b/kubernetes/test/test_custom_objects_api.py deleted file mode 100644 index f4b0c929f6..0000000000 --- a/kubernetes/test/test_custom_objects_api.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.custom_objects_api import CustomObjectsApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestCustomObjectsApi(unittest.TestCase): - """CustomObjectsApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.custom_objects_api.CustomObjectsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create_cluster_custom_object(self): - """Test case for create_cluster_custom_object - - """ - pass - - def test_create_namespaced_custom_object(self): - """Test case for create_namespaced_custom_object - - """ - pass - - def test_delete_cluster_custom_object(self): - """Test case for delete_cluster_custom_object - - """ - pass - - def test_delete_cluster_custom_object_0(self): - """Test case for delete_cluster_custom_object_0 - - """ - pass - - def test_delete_namespaced_custom_object(self): - """Test case for delete_namespaced_custom_object - - """ - pass - - def test_delete_namespaced_custom_object_0(self): - """Test case for delete_namespaced_custom_object_0 - - """ - pass - - def test_get_cluster_custom_object(self): - """Test case for get_cluster_custom_object - - """ - pass - - def test_get_cluster_custom_object_scale(self): - """Test case for get_cluster_custom_object_scale - - """ - pass - - def test_get_cluster_custom_object_status(self): - """Test case for get_cluster_custom_object_status - - """ - pass - - def test_get_namespaced_custom_object(self): - """Test case for get_namespaced_custom_object - - """ - pass - - def test_get_namespaced_custom_object_scale(self): - """Test case for get_namespaced_custom_object_scale - - """ - pass - - def test_get_namespaced_custom_object_status(self): - """Test case for get_namespaced_custom_object_status - - """ - pass - - def test_list_cluster_custom_object(self): - """Test case for list_cluster_custom_object - - """ - pass - - def test_list_namespaced_custom_object(self): - """Test case for list_namespaced_custom_object - - """ - pass - - def test_patch_cluster_custom_object(self): - """Test case for patch_cluster_custom_object - - """ - pass - - def test_patch_cluster_custom_object_scale(self): - """Test case for patch_cluster_custom_object_scale - - """ - pass - - def test_patch_cluster_custom_object_status(self): - """Test case for patch_cluster_custom_object_status - - """ - pass - - def test_patch_namespaced_custom_object(self): - """Test case for patch_namespaced_custom_object - - """ - pass - - def test_patch_namespaced_custom_object_scale(self): - """Test case for patch_namespaced_custom_object_scale - - """ - pass - - def test_patch_namespaced_custom_object_status(self): - """Test case for patch_namespaced_custom_object_status - - """ - pass - - def test_replace_cluster_custom_object(self): - """Test case for replace_cluster_custom_object - - """ - pass - - def test_replace_cluster_custom_object_scale(self): - """Test case for replace_cluster_custom_object_scale - - """ - pass - - def test_replace_cluster_custom_object_status(self): - """Test case for replace_cluster_custom_object_status - - """ - pass - - def test_replace_namespaced_custom_object(self): - """Test case for replace_namespaced_custom_object - - """ - pass - - def test_replace_namespaced_custom_object_scale(self): - """Test case for replace_namespaced_custom_object_scale - - """ - pass - - def test_replace_namespaced_custom_object_status(self): - """Test case for replace_namespaced_custom_object_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_discovery_api.py b/kubernetes/test/test_discovery_api.py deleted file mode 100644 index bb82aa28fc..0000000000 --- a/kubernetes/test/test_discovery_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.discovery_api import DiscoveryApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestDiscoveryApi(unittest.TestCase): - """DiscoveryApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.discovery_api.DiscoveryApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_discovery_v1alpha1_api.py b/kubernetes/test/test_discovery_v1alpha1_api.py deleted file mode 100644 index 791546e1f7..0000000000 --- a/kubernetes/test/test_discovery_v1alpha1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.discovery_v1alpha1_api import DiscoveryV1alpha1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestDiscoveryV1alpha1Api(unittest.TestCase): - """DiscoveryV1alpha1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.discovery_v1alpha1_api.DiscoveryV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_endpoint_slice(self): - """Test case for create_namespaced_endpoint_slice - - """ - pass - - def test_delete_collection_namespaced_endpoint_slice(self): - """Test case for delete_collection_namespaced_endpoint_slice - - """ - pass - - def test_delete_namespaced_endpoint_slice(self): - """Test case for delete_namespaced_endpoint_slice - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_endpoint_slice_for_all_namespaces(self): - """Test case for list_endpoint_slice_for_all_namespaces - - """ - pass - - def test_list_namespaced_endpoint_slice(self): - """Test case for list_namespaced_endpoint_slice - - """ - pass - - def test_patch_namespaced_endpoint_slice(self): - """Test case for patch_namespaced_endpoint_slice - - """ - pass - - def test_read_namespaced_endpoint_slice(self): - """Test case for read_namespaced_endpoint_slice - - """ - pass - - def test_replace_namespaced_endpoint_slice(self): - """Test case for replace_namespaced_endpoint_slice - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_events_api.py b/kubernetes/test/test_events_api.py deleted file mode 100644 index 0139bf4815..0000000000 --- a/kubernetes/test/test_events_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.events_api import EventsApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestEventsApi(unittest.TestCase): - """EventsApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.events_api.EventsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_events_v1beta1_api.py b/kubernetes/test/test_events_v1beta1_api.py deleted file mode 100644 index c54a9f452f..0000000000 --- a/kubernetes/test/test_events_v1beta1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.events_v1beta1_api import EventsV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestEventsV1beta1Api(unittest.TestCase): - """EventsV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.events_v1beta1_api.EventsV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_event(self): - """Test case for create_namespaced_event - - """ - pass - - def test_delete_collection_namespaced_event(self): - """Test case for delete_collection_namespaced_event - - """ - pass - - def test_delete_namespaced_event(self): - """Test case for delete_namespaced_event - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_event_for_all_namespaces(self): - """Test case for list_event_for_all_namespaces - - """ - pass - - def test_list_namespaced_event(self): - """Test case for list_namespaced_event - - """ - pass - - def test_patch_namespaced_event(self): - """Test case for patch_namespaced_event - - """ - pass - - def test_read_namespaced_event(self): - """Test case for read_namespaced_event - - """ - pass - - def test_replace_namespaced_event(self): - """Test case for replace_namespaced_event - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_api.py b/kubernetes/test/test_extensions_api.py deleted file mode 100644 index 5df4b66536..0000000000 --- a/kubernetes/test/test_extensions_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.extensions_api import ExtensionsApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsApi(unittest.TestCase): - """ExtensionsApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.extensions_api.ExtensionsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_allowed_csi_driver.py b/kubernetes/test/test_extensions_v1beta1_allowed_csi_driver.py deleted file mode 100644 index d33d313f82..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_allowed_csi_driver.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_allowed_csi_driver import ExtensionsV1beta1AllowedCSIDriver # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1AllowedCSIDriver(unittest.TestCase): - """ExtensionsV1beta1AllowedCSIDriver unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1AllowedCSIDriver(self): - """Test ExtensionsV1beta1AllowedCSIDriver""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_allowed_csi_driver.ExtensionsV1beta1AllowedCSIDriver() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_allowed_flex_volume.py b/kubernetes/test/test_extensions_v1beta1_allowed_flex_volume.py deleted file mode 100644 index 8821f8636e..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_allowed_flex_volume.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_allowed_flex_volume import ExtensionsV1beta1AllowedFlexVolume # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1AllowedFlexVolume(unittest.TestCase): - """ExtensionsV1beta1AllowedFlexVolume unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1AllowedFlexVolume(self): - """Test ExtensionsV1beta1AllowedFlexVolume""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_allowed_flex_volume.ExtensionsV1beta1AllowedFlexVolume() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_allowed_host_path.py b/kubernetes/test/test_extensions_v1beta1_allowed_host_path.py deleted file mode 100644 index 6fce83e4f4..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_allowed_host_path.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_allowed_host_path import ExtensionsV1beta1AllowedHostPath # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1AllowedHostPath(unittest.TestCase): - """ExtensionsV1beta1AllowedHostPath unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1AllowedHostPath(self): - """Test ExtensionsV1beta1AllowedHostPath""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_allowed_host_path.ExtensionsV1beta1AllowedHostPath() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_api.py b/kubernetes/test/test_extensions_v1beta1_api.py deleted file mode 100644 index f13346bec1..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_api.py +++ /dev/null @@ -1,453 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.extensions_v1beta1_api import ExtensionsV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1Api(unittest.TestCase): - """ExtensionsV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.extensions_v1beta1_api.ExtensionsV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_daemon_set(self): - """Test case for create_namespaced_daemon_set - - """ - pass - - def test_create_namespaced_deployment(self): - """Test case for create_namespaced_deployment - - """ - pass - - def test_create_namespaced_deployment_rollback(self): - """Test case for create_namespaced_deployment_rollback - - """ - pass - - def test_create_namespaced_ingress(self): - """Test case for create_namespaced_ingress - - """ - pass - - def test_create_namespaced_network_policy(self): - """Test case for create_namespaced_network_policy - - """ - pass - - def test_create_namespaced_replica_set(self): - """Test case for create_namespaced_replica_set - - """ - pass - - def test_create_pod_security_policy(self): - """Test case for create_pod_security_policy - - """ - pass - - def test_delete_collection_namespaced_daemon_set(self): - """Test case for delete_collection_namespaced_daemon_set - - """ - pass - - def test_delete_collection_namespaced_deployment(self): - """Test case for delete_collection_namespaced_deployment - - """ - pass - - def test_delete_collection_namespaced_ingress(self): - """Test case for delete_collection_namespaced_ingress - - """ - pass - - def test_delete_collection_namespaced_network_policy(self): - """Test case for delete_collection_namespaced_network_policy - - """ - pass - - def test_delete_collection_namespaced_replica_set(self): - """Test case for delete_collection_namespaced_replica_set - - """ - pass - - def test_delete_collection_pod_security_policy(self): - """Test case for delete_collection_pod_security_policy - - """ - pass - - def test_delete_namespaced_daemon_set(self): - """Test case for delete_namespaced_daemon_set - - """ - pass - - def test_delete_namespaced_deployment(self): - """Test case for delete_namespaced_deployment - - """ - pass - - def test_delete_namespaced_ingress(self): - """Test case for delete_namespaced_ingress - - """ - pass - - def test_delete_namespaced_network_policy(self): - """Test case for delete_namespaced_network_policy - - """ - pass - - def test_delete_namespaced_replica_set(self): - """Test case for delete_namespaced_replica_set - - """ - pass - - def test_delete_pod_security_policy(self): - """Test case for delete_pod_security_policy - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_daemon_set_for_all_namespaces(self): - """Test case for list_daemon_set_for_all_namespaces - - """ - pass - - def test_list_deployment_for_all_namespaces(self): - """Test case for list_deployment_for_all_namespaces - - """ - pass - - def test_list_ingress_for_all_namespaces(self): - """Test case for list_ingress_for_all_namespaces - - """ - pass - - def test_list_namespaced_daemon_set(self): - """Test case for list_namespaced_daemon_set - - """ - pass - - def test_list_namespaced_deployment(self): - """Test case for list_namespaced_deployment - - """ - pass - - def test_list_namespaced_ingress(self): - """Test case for list_namespaced_ingress - - """ - pass - - def test_list_namespaced_network_policy(self): - """Test case for list_namespaced_network_policy - - """ - pass - - def test_list_namespaced_replica_set(self): - """Test case for list_namespaced_replica_set - - """ - pass - - def test_list_network_policy_for_all_namespaces(self): - """Test case for list_network_policy_for_all_namespaces - - """ - pass - - def test_list_pod_security_policy(self): - """Test case for list_pod_security_policy - - """ - pass - - def test_list_replica_set_for_all_namespaces(self): - """Test case for list_replica_set_for_all_namespaces - - """ - pass - - def test_patch_namespaced_daemon_set(self): - """Test case for patch_namespaced_daemon_set - - """ - pass - - def test_patch_namespaced_daemon_set_status(self): - """Test case for patch_namespaced_daemon_set_status - - """ - pass - - def test_patch_namespaced_deployment(self): - """Test case for patch_namespaced_deployment - - """ - pass - - def test_patch_namespaced_deployment_scale(self): - """Test case for patch_namespaced_deployment_scale - - """ - pass - - def test_patch_namespaced_deployment_status(self): - """Test case for patch_namespaced_deployment_status - - """ - pass - - def test_patch_namespaced_ingress(self): - """Test case for patch_namespaced_ingress - - """ - pass - - def test_patch_namespaced_ingress_status(self): - """Test case for patch_namespaced_ingress_status - - """ - pass - - def test_patch_namespaced_network_policy(self): - """Test case for patch_namespaced_network_policy - - """ - pass - - def test_patch_namespaced_replica_set(self): - """Test case for patch_namespaced_replica_set - - """ - pass - - def test_patch_namespaced_replica_set_scale(self): - """Test case for patch_namespaced_replica_set_scale - - """ - pass - - def test_patch_namespaced_replica_set_status(self): - """Test case for patch_namespaced_replica_set_status - - """ - pass - - def test_patch_namespaced_replication_controller_dummy_scale(self): - """Test case for patch_namespaced_replication_controller_dummy_scale - - """ - pass - - def test_patch_pod_security_policy(self): - """Test case for patch_pod_security_policy - - """ - pass - - def test_read_namespaced_daemon_set(self): - """Test case for read_namespaced_daemon_set - - """ - pass - - def test_read_namespaced_daemon_set_status(self): - """Test case for read_namespaced_daemon_set_status - - """ - pass - - def test_read_namespaced_deployment(self): - """Test case for read_namespaced_deployment - - """ - pass - - def test_read_namespaced_deployment_scale(self): - """Test case for read_namespaced_deployment_scale - - """ - pass - - def test_read_namespaced_deployment_status(self): - """Test case for read_namespaced_deployment_status - - """ - pass - - def test_read_namespaced_ingress(self): - """Test case for read_namespaced_ingress - - """ - pass - - def test_read_namespaced_ingress_status(self): - """Test case for read_namespaced_ingress_status - - """ - pass - - def test_read_namespaced_network_policy(self): - """Test case for read_namespaced_network_policy - - """ - pass - - def test_read_namespaced_replica_set(self): - """Test case for read_namespaced_replica_set - - """ - pass - - def test_read_namespaced_replica_set_scale(self): - """Test case for read_namespaced_replica_set_scale - - """ - pass - - def test_read_namespaced_replica_set_status(self): - """Test case for read_namespaced_replica_set_status - - """ - pass - - def test_read_namespaced_replication_controller_dummy_scale(self): - """Test case for read_namespaced_replication_controller_dummy_scale - - """ - pass - - def test_read_pod_security_policy(self): - """Test case for read_pod_security_policy - - """ - pass - - def test_replace_namespaced_daemon_set(self): - """Test case for replace_namespaced_daemon_set - - """ - pass - - def test_replace_namespaced_daemon_set_status(self): - """Test case for replace_namespaced_daemon_set_status - - """ - pass - - def test_replace_namespaced_deployment(self): - """Test case for replace_namespaced_deployment - - """ - pass - - def test_replace_namespaced_deployment_scale(self): - """Test case for replace_namespaced_deployment_scale - - """ - pass - - def test_replace_namespaced_deployment_status(self): - """Test case for replace_namespaced_deployment_status - - """ - pass - - def test_replace_namespaced_ingress(self): - """Test case for replace_namespaced_ingress - - """ - pass - - def test_replace_namespaced_ingress_status(self): - """Test case for replace_namespaced_ingress_status - - """ - pass - - def test_replace_namespaced_network_policy(self): - """Test case for replace_namespaced_network_policy - - """ - pass - - def test_replace_namespaced_replica_set(self): - """Test case for replace_namespaced_replica_set - - """ - pass - - def test_replace_namespaced_replica_set_scale(self): - """Test case for replace_namespaced_replica_set_scale - - """ - pass - - def test_replace_namespaced_replica_set_status(self): - """Test case for replace_namespaced_replica_set_status - - """ - pass - - def test_replace_namespaced_replication_controller_dummy_scale(self): - """Test case for replace_namespaced_replication_controller_dummy_scale - - """ - pass - - def test_replace_pod_security_policy(self): - """Test case for replace_pod_security_policy - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment.py b/kubernetes/test/test_extensions_v1beta1_deployment.py deleted file mode 100644 index ee089f4f6f..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_deployment import ExtensionsV1beta1Deployment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1Deployment(unittest.TestCase): - """ExtensionsV1beta1Deployment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1Deployment(self): - """Test ExtensionsV1beta1Deployment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_deployment.ExtensionsV1beta1Deployment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_condition.py b/kubernetes/test/test_extensions_v1beta1_deployment_condition.py deleted file mode 100644 index 6b2ea96685..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_deployment_condition import ExtensionsV1beta1DeploymentCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1DeploymentCondition(unittest.TestCase): - """ExtensionsV1beta1DeploymentCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentCondition(self): - """Test ExtensionsV1beta1DeploymentCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_deployment_condition.ExtensionsV1beta1DeploymentCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_list.py b/kubernetes/test/test_extensions_v1beta1_deployment_list.py deleted file mode 100644 index 129dd720f0..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_deployment_list import ExtensionsV1beta1DeploymentList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1DeploymentList(unittest.TestCase): - """ExtensionsV1beta1DeploymentList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentList(self): - """Test ExtensionsV1beta1DeploymentList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_deployment_list.ExtensionsV1beta1DeploymentList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py b/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py deleted file mode 100644 index 3718d7a0f1..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_rollback.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_deployment_rollback import ExtensionsV1beta1DeploymentRollback # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1DeploymentRollback(unittest.TestCase): - """ExtensionsV1beta1DeploymentRollback unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentRollback(self): - """Test ExtensionsV1beta1DeploymentRollback""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_deployment_rollback.ExtensionsV1beta1DeploymentRollback() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_spec.py b/kubernetes/test/test_extensions_v1beta1_deployment_spec.py deleted file mode 100644 index 28aad07cd1..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_deployment_spec import ExtensionsV1beta1DeploymentSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1DeploymentSpec(unittest.TestCase): - """ExtensionsV1beta1DeploymentSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentSpec(self): - """Test ExtensionsV1beta1DeploymentSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_deployment_spec.ExtensionsV1beta1DeploymentSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_status.py b/kubernetes/test/test_extensions_v1beta1_deployment_status.py deleted file mode 100644 index f0406ba097..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_deployment_status import ExtensionsV1beta1DeploymentStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1DeploymentStatus(unittest.TestCase): - """ExtensionsV1beta1DeploymentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentStatus(self): - """Test ExtensionsV1beta1DeploymentStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_deployment_status.ExtensionsV1beta1DeploymentStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py b/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py deleted file mode 100644 index 287a3a3e47..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_deployment_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_deployment_strategy import ExtensionsV1beta1DeploymentStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1DeploymentStrategy(unittest.TestCase): - """ExtensionsV1beta1DeploymentStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1DeploymentStrategy(self): - """Test ExtensionsV1beta1DeploymentStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_deployment_strategy.ExtensionsV1beta1DeploymentStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py deleted file mode 100644 index 59a512ba11..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_fs_group_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_fs_group_strategy_options import ExtensionsV1beta1FSGroupStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1FSGroupStrategyOptions(unittest.TestCase): - """ExtensionsV1beta1FSGroupStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1FSGroupStrategyOptions(self): - """Test ExtensionsV1beta1FSGroupStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_fs_group_strategy_options.ExtensionsV1beta1FSGroupStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_host_port_range.py b/kubernetes/test/test_extensions_v1beta1_host_port_range.py deleted file mode 100644 index 549603833d..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_host_port_range.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_host_port_range import ExtensionsV1beta1HostPortRange # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1HostPortRange(unittest.TestCase): - """ExtensionsV1beta1HostPortRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1HostPortRange(self): - """Test ExtensionsV1beta1HostPortRange""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_host_port_range.ExtensionsV1beta1HostPortRange() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_http_ingress_path.py b/kubernetes/test/test_extensions_v1beta1_http_ingress_path.py deleted file mode 100644 index 7295fd3a9e..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_http_ingress_path.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_http_ingress_path import ExtensionsV1beta1HTTPIngressPath # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1HTTPIngressPath(unittest.TestCase): - """ExtensionsV1beta1HTTPIngressPath unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1HTTPIngressPath(self): - """Test ExtensionsV1beta1HTTPIngressPath""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_http_ingress_path.ExtensionsV1beta1HTTPIngressPath() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_http_ingress_rule_value.py b/kubernetes/test/test_extensions_v1beta1_http_ingress_rule_value.py deleted file mode 100644 index b2e3fd3639..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_http_ingress_rule_value.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_http_ingress_rule_value import ExtensionsV1beta1HTTPIngressRuleValue # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1HTTPIngressRuleValue(unittest.TestCase): - """ExtensionsV1beta1HTTPIngressRuleValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1HTTPIngressRuleValue(self): - """Test ExtensionsV1beta1HTTPIngressRuleValue""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_http_ingress_rule_value.ExtensionsV1beta1HTTPIngressRuleValue() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_id_range.py b/kubernetes/test/test_extensions_v1beta1_id_range.py deleted file mode 100644 index b9548cbb25..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_id_range.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_id_range import ExtensionsV1beta1IDRange # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1IDRange(unittest.TestCase): - """ExtensionsV1beta1IDRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1IDRange(self): - """Test ExtensionsV1beta1IDRange""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_id_range.ExtensionsV1beta1IDRange() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_ingress.py b/kubernetes/test/test_extensions_v1beta1_ingress.py deleted file mode 100644 index 099dc1a68d..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_ingress.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_ingress import ExtensionsV1beta1Ingress # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1Ingress(unittest.TestCase): - """ExtensionsV1beta1Ingress unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1Ingress(self): - """Test ExtensionsV1beta1Ingress""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_ingress.ExtensionsV1beta1Ingress() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_backend.py b/kubernetes/test/test_extensions_v1beta1_ingress_backend.py deleted file mode 100644 index fa81d2739b..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_ingress_backend.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_ingress_backend import ExtensionsV1beta1IngressBackend # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1IngressBackend(unittest.TestCase): - """ExtensionsV1beta1IngressBackend unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1IngressBackend(self): - """Test ExtensionsV1beta1IngressBackend""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_ingress_backend.ExtensionsV1beta1IngressBackend() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_list.py b/kubernetes/test/test_extensions_v1beta1_ingress_list.py deleted file mode 100644 index 1fc487279a..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_ingress_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_ingress_list import ExtensionsV1beta1IngressList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1IngressList(unittest.TestCase): - """ExtensionsV1beta1IngressList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1IngressList(self): - """Test ExtensionsV1beta1IngressList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_ingress_list.ExtensionsV1beta1IngressList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_rule.py b/kubernetes/test/test_extensions_v1beta1_ingress_rule.py deleted file mode 100644 index 07a38bcc5f..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_ingress_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_ingress_rule import ExtensionsV1beta1IngressRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1IngressRule(unittest.TestCase): - """ExtensionsV1beta1IngressRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1IngressRule(self): - """Test ExtensionsV1beta1IngressRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_ingress_rule.ExtensionsV1beta1IngressRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_spec.py b/kubernetes/test/test_extensions_v1beta1_ingress_spec.py deleted file mode 100644 index 885e60a04d..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_ingress_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_ingress_spec import ExtensionsV1beta1IngressSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1IngressSpec(unittest.TestCase): - """ExtensionsV1beta1IngressSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1IngressSpec(self): - """Test ExtensionsV1beta1IngressSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_ingress_spec.ExtensionsV1beta1IngressSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_status.py b/kubernetes/test/test_extensions_v1beta1_ingress_status.py deleted file mode 100644 index a579f3a82a..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_ingress_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_ingress_status import ExtensionsV1beta1IngressStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1IngressStatus(unittest.TestCase): - """ExtensionsV1beta1IngressStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1IngressStatus(self): - """Test ExtensionsV1beta1IngressStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_ingress_status.ExtensionsV1beta1IngressStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_ingress_tls.py b/kubernetes/test/test_extensions_v1beta1_ingress_tls.py deleted file mode 100644 index 38f09b05de..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_ingress_tls.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_ingress_tls import ExtensionsV1beta1IngressTLS # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1IngressTLS(unittest.TestCase): - """ExtensionsV1beta1IngressTLS unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1IngressTLS(self): - """Test ExtensionsV1beta1IngressTLS""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_ingress_tls.ExtensionsV1beta1IngressTLS() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_pod_security_policy.py b/kubernetes/test/test_extensions_v1beta1_pod_security_policy.py deleted file mode 100644 index 10655773d4..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_pod_security_policy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_pod_security_policy import ExtensionsV1beta1PodSecurityPolicy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1PodSecurityPolicy(unittest.TestCase): - """ExtensionsV1beta1PodSecurityPolicy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1PodSecurityPolicy(self): - """Test ExtensionsV1beta1PodSecurityPolicy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_pod_security_policy.ExtensionsV1beta1PodSecurityPolicy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_pod_security_policy_list.py b/kubernetes/test/test_extensions_v1beta1_pod_security_policy_list.py deleted file mode 100644 index d986376a87..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_pod_security_policy_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_pod_security_policy_list import ExtensionsV1beta1PodSecurityPolicyList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1PodSecurityPolicyList(unittest.TestCase): - """ExtensionsV1beta1PodSecurityPolicyList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1PodSecurityPolicyList(self): - """Test ExtensionsV1beta1PodSecurityPolicyList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_pod_security_policy_list.ExtensionsV1beta1PodSecurityPolicyList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_pod_security_policy_spec.py b/kubernetes/test/test_extensions_v1beta1_pod_security_policy_spec.py deleted file mode 100644 index e8daf93159..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_pod_security_policy_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_pod_security_policy_spec import ExtensionsV1beta1PodSecurityPolicySpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1PodSecurityPolicySpec(unittest.TestCase): - """ExtensionsV1beta1PodSecurityPolicySpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1PodSecurityPolicySpec(self): - """Test ExtensionsV1beta1PodSecurityPolicySpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_pod_security_policy_spec.ExtensionsV1beta1PodSecurityPolicySpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_rollback_config.py b/kubernetes/test/test_extensions_v1beta1_rollback_config.py deleted file mode 100644 index e6743f028d..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_rollback_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_rollback_config import ExtensionsV1beta1RollbackConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1RollbackConfig(unittest.TestCase): - """ExtensionsV1beta1RollbackConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1RollbackConfig(self): - """Test ExtensionsV1beta1RollbackConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_rollback_config.ExtensionsV1beta1RollbackConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py b/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py deleted file mode 100644 index 19a64ada51..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_rolling_update_deployment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_rolling_update_deployment import ExtensionsV1beta1RollingUpdateDeployment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1RollingUpdateDeployment(unittest.TestCase): - """ExtensionsV1beta1RollingUpdateDeployment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1RollingUpdateDeployment(self): - """Test ExtensionsV1beta1RollingUpdateDeployment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_rolling_update_deployment.ExtensionsV1beta1RollingUpdateDeployment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_run_as_group_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_run_as_group_strategy_options.py deleted file mode 100644 index 4a8f89eca2..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_run_as_group_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_run_as_group_strategy_options import ExtensionsV1beta1RunAsGroupStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1RunAsGroupStrategyOptions(unittest.TestCase): - """ExtensionsV1beta1RunAsGroupStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1RunAsGroupStrategyOptions(self): - """Test ExtensionsV1beta1RunAsGroupStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_run_as_group_strategy_options.ExtensionsV1beta1RunAsGroupStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_run_as_user_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_run_as_user_strategy_options.py deleted file mode 100644 index 13200e645e..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_run_as_user_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_run_as_user_strategy_options import ExtensionsV1beta1RunAsUserStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1RunAsUserStrategyOptions(unittest.TestCase): - """ExtensionsV1beta1RunAsUserStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1RunAsUserStrategyOptions(self): - """Test ExtensionsV1beta1RunAsUserStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_run_as_user_strategy_options.ExtensionsV1beta1RunAsUserStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py deleted file mode 100644 index b2642fac08..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_runtime_class_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_runtime_class_strategy_options import ExtensionsV1beta1RuntimeClassStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1RuntimeClassStrategyOptions(unittest.TestCase): - """ExtensionsV1beta1RuntimeClassStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1RuntimeClassStrategyOptions(self): - """Test ExtensionsV1beta1RuntimeClassStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_runtime_class_strategy_options.ExtensionsV1beta1RuntimeClassStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale.py b/kubernetes/test/test_extensions_v1beta1_scale.py deleted file mode 100644 index dba1d8d4fc..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_scale.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_scale import ExtensionsV1beta1Scale # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1Scale(unittest.TestCase): - """ExtensionsV1beta1Scale unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1Scale(self): - """Test ExtensionsV1beta1Scale""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_scale.ExtensionsV1beta1Scale() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale_spec.py b/kubernetes/test/test_extensions_v1beta1_scale_spec.py deleted file mode 100644 index 00787f4b90..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_scale_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1ScaleSpec(unittest.TestCase): - """ExtensionsV1beta1ScaleSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1ScaleSpec(self): - """Test ExtensionsV1beta1ScaleSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_scale_spec.ExtensionsV1beta1ScaleSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_scale_status.py b/kubernetes/test/test_extensions_v1beta1_scale_status.py deleted file mode 100644 index 564142d64a..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_scale_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1ScaleStatus(unittest.TestCase): - """ExtensionsV1beta1ScaleStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1ScaleStatus(self): - """Test ExtensionsV1beta1ScaleStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_scale_status.ExtensionsV1beta1ScaleStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_se_linux_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_se_linux_strategy_options.py deleted file mode 100644 index c54062e5a2..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_se_linux_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_se_linux_strategy_options import ExtensionsV1beta1SELinuxStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1SELinuxStrategyOptions(unittest.TestCase): - """ExtensionsV1beta1SELinuxStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1SELinuxStrategyOptions(self): - """Test ExtensionsV1beta1SELinuxStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_se_linux_strategy_options.ExtensionsV1beta1SELinuxStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_extensions_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/test/test_extensions_v1beta1_supplemental_groups_strategy_options.py deleted file mode 100644 index 2e483dbec1..0000000000 --- a/kubernetes/test/test_extensions_v1beta1_supplemental_groups_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.extensions_v1beta1_supplemental_groups_strategy_options import ExtensionsV1beta1SupplementalGroupsStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestExtensionsV1beta1SupplementalGroupsStrategyOptions(unittest.TestCase): - """ExtensionsV1beta1SupplementalGroupsStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExtensionsV1beta1SupplementalGroupsStrategyOptions(self): - """Test ExtensionsV1beta1SupplementalGroupsStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.extensions_v1beta1_supplemental_groups_strategy_options.ExtensionsV1beta1SupplementalGroupsStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_logs_api.py b/kubernetes/test/test_logs_api.py deleted file mode 100644 index 27b3f1ec17..0000000000 --- a/kubernetes/test/test_logs_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.logs_api import LogsApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestLogsApi(unittest.TestCase): - """LogsApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.logs_api.LogsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_log_file_handler(self): - """Test case for log_file_handler - - """ - pass - - def test_log_file_list_handler(self): - """Test case for log_file_list_handler - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_api.py b/kubernetes/test/test_networking_api.py deleted file mode 100644 index 1087abac95..0000000000 --- a/kubernetes/test/test_networking_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.networking_api import NetworkingApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingApi(unittest.TestCase): - """NetworkingApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.networking_api.NetworkingApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1_api.py b/kubernetes/test/test_networking_v1_api.py deleted file mode 100644 index 08c012a811..0000000000 --- a/kubernetes/test/test_networking_v1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.networking_v1_api import NetworkingV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1Api(unittest.TestCase): - """NetworkingV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.networking_v1_api.NetworkingV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_network_policy(self): - """Test case for create_namespaced_network_policy - - """ - pass - - def test_delete_collection_namespaced_network_policy(self): - """Test case for delete_collection_namespaced_network_policy - - """ - pass - - def test_delete_namespaced_network_policy(self): - """Test case for delete_namespaced_network_policy - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_namespaced_network_policy(self): - """Test case for list_namespaced_network_policy - - """ - pass - - def test_list_network_policy_for_all_namespaces(self): - """Test case for list_network_policy_for_all_namespaces - - """ - pass - - def test_patch_namespaced_network_policy(self): - """Test case for patch_namespaced_network_policy - - """ - pass - - def test_read_namespaced_network_policy(self): - """Test case for read_namespaced_network_policy - - """ - pass - - def test_replace_namespaced_network_policy(self): - """Test case for replace_namespaced_network_policy - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_api.py b/kubernetes/test/test_networking_v1beta1_api.py deleted file mode 100644 index d579c22bf3..0000000000 --- a/kubernetes/test/test_networking_v1beta1_api.py +++ /dev/null @@ -1,105 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.networking_v1beta1_api import NetworkingV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1Api(unittest.TestCase): - """NetworkingV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.networking_v1beta1_api.NetworkingV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_ingress(self): - """Test case for create_namespaced_ingress - - """ - pass - - def test_delete_collection_namespaced_ingress(self): - """Test case for delete_collection_namespaced_ingress - - """ - pass - - def test_delete_namespaced_ingress(self): - """Test case for delete_namespaced_ingress - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_ingress_for_all_namespaces(self): - """Test case for list_ingress_for_all_namespaces - - """ - pass - - def test_list_namespaced_ingress(self): - """Test case for list_namespaced_ingress - - """ - pass - - def test_patch_namespaced_ingress(self): - """Test case for patch_namespaced_ingress - - """ - pass - - def test_patch_namespaced_ingress_status(self): - """Test case for patch_namespaced_ingress_status - - """ - pass - - def test_read_namespaced_ingress(self): - """Test case for read_namespaced_ingress - - """ - pass - - def test_read_namespaced_ingress_status(self): - """Test case for read_namespaced_ingress_status - - """ - pass - - def test_replace_namespaced_ingress(self): - """Test case for replace_namespaced_ingress - - """ - pass - - def test_replace_namespaced_ingress_status(self): - """Test case for replace_namespaced_ingress_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_http_ingress_path.py b/kubernetes/test/test_networking_v1beta1_http_ingress_path.py deleted file mode 100644 index f0f14d47f9..0000000000 --- a/kubernetes/test/test_networking_v1beta1_http_ingress_path.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.networking_v1beta1_http_ingress_path import NetworkingV1beta1HTTPIngressPath # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1HTTPIngressPath(unittest.TestCase): - """NetworkingV1beta1HTTPIngressPath unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNetworkingV1beta1HTTPIngressPath(self): - """Test NetworkingV1beta1HTTPIngressPath""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.networking_v1beta1_http_ingress_path.NetworkingV1beta1HTTPIngressPath() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py b/kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py deleted file mode 100644 index 2a8b752871..0000000000 --- a/kubernetes/test/test_networking_v1beta1_http_ingress_rule_value.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.networking_v1beta1_http_ingress_rule_value import NetworkingV1beta1HTTPIngressRuleValue # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1HTTPIngressRuleValue(unittest.TestCase): - """NetworkingV1beta1HTTPIngressRuleValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNetworkingV1beta1HTTPIngressRuleValue(self): - """Test NetworkingV1beta1HTTPIngressRuleValue""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.networking_v1beta1_http_ingress_rule_value.NetworkingV1beta1HTTPIngressRuleValue() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_ingress.py b/kubernetes/test/test_networking_v1beta1_ingress.py deleted file mode 100644 index 3c1d40bf85..0000000000 --- a/kubernetes/test/test_networking_v1beta1_ingress.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.networking_v1beta1_ingress import NetworkingV1beta1Ingress # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1Ingress(unittest.TestCase): - """NetworkingV1beta1Ingress unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNetworkingV1beta1Ingress(self): - """Test NetworkingV1beta1Ingress""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.networking_v1beta1_ingress.NetworkingV1beta1Ingress() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_ingress_backend.py b/kubernetes/test/test_networking_v1beta1_ingress_backend.py deleted file mode 100644 index 870b4e3a29..0000000000 --- a/kubernetes/test/test_networking_v1beta1_ingress_backend.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.networking_v1beta1_ingress_backend import NetworkingV1beta1IngressBackend # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1IngressBackend(unittest.TestCase): - """NetworkingV1beta1IngressBackend unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNetworkingV1beta1IngressBackend(self): - """Test NetworkingV1beta1IngressBackend""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.networking_v1beta1_ingress_backend.NetworkingV1beta1IngressBackend() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_ingress_list.py b/kubernetes/test/test_networking_v1beta1_ingress_list.py deleted file mode 100644 index b9faff4edd..0000000000 --- a/kubernetes/test/test_networking_v1beta1_ingress_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.networking_v1beta1_ingress_list import NetworkingV1beta1IngressList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1IngressList(unittest.TestCase): - """NetworkingV1beta1IngressList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNetworkingV1beta1IngressList(self): - """Test NetworkingV1beta1IngressList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.networking_v1beta1_ingress_list.NetworkingV1beta1IngressList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_ingress_rule.py b/kubernetes/test/test_networking_v1beta1_ingress_rule.py deleted file mode 100644 index 6af810e82e..0000000000 --- a/kubernetes/test/test_networking_v1beta1_ingress_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.networking_v1beta1_ingress_rule import NetworkingV1beta1IngressRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1IngressRule(unittest.TestCase): - """NetworkingV1beta1IngressRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNetworkingV1beta1IngressRule(self): - """Test NetworkingV1beta1IngressRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.networking_v1beta1_ingress_rule.NetworkingV1beta1IngressRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_ingress_spec.py b/kubernetes/test/test_networking_v1beta1_ingress_spec.py deleted file mode 100644 index ff07cee1b8..0000000000 --- a/kubernetes/test/test_networking_v1beta1_ingress_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.networking_v1beta1_ingress_spec import NetworkingV1beta1IngressSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1IngressSpec(unittest.TestCase): - """NetworkingV1beta1IngressSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNetworkingV1beta1IngressSpec(self): - """Test NetworkingV1beta1IngressSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.networking_v1beta1_ingress_spec.NetworkingV1beta1IngressSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_ingress_status.py b/kubernetes/test/test_networking_v1beta1_ingress_status.py deleted file mode 100644 index 6bea59c221..0000000000 --- a/kubernetes/test/test_networking_v1beta1_ingress_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.networking_v1beta1_ingress_status import NetworkingV1beta1IngressStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1IngressStatus(unittest.TestCase): - """NetworkingV1beta1IngressStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNetworkingV1beta1IngressStatus(self): - """Test NetworkingV1beta1IngressStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.networking_v1beta1_ingress_status.NetworkingV1beta1IngressStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_networking_v1beta1_ingress_tls.py b/kubernetes/test/test_networking_v1beta1_ingress_tls.py deleted file mode 100644 index 59b4375a46..0000000000 --- a/kubernetes/test/test_networking_v1beta1_ingress_tls.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.networking_v1beta1_ingress_tls import NetworkingV1beta1IngressTLS # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNetworkingV1beta1IngressTLS(unittest.TestCase): - """NetworkingV1beta1IngressTLS unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testNetworkingV1beta1IngressTLS(self): - """Test NetworkingV1beta1IngressTLS""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.networking_v1beta1_ingress_tls.NetworkingV1beta1IngressTLS() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_node_api.py b/kubernetes/test/test_node_api.py deleted file mode 100644 index 13e05c5844..0000000000 --- a/kubernetes/test/test_node_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.node_api import NodeApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNodeApi(unittest.TestCase): - """NodeApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.node_api.NodeApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_node_v1alpha1_api.py b/kubernetes/test/test_node_v1alpha1_api.py deleted file mode 100644 index 355d8d0f96..0000000000 --- a/kubernetes/test/test_node_v1alpha1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.node_v1alpha1_api import NodeV1alpha1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNodeV1alpha1Api(unittest.TestCase): - """NodeV1alpha1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.node_v1alpha1_api.NodeV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_runtime_class(self): - """Test case for create_runtime_class - - """ - pass - - def test_delete_collection_runtime_class(self): - """Test case for delete_collection_runtime_class - - """ - pass - - def test_delete_runtime_class(self): - """Test case for delete_runtime_class - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_runtime_class(self): - """Test case for list_runtime_class - - """ - pass - - def test_patch_runtime_class(self): - """Test case for patch_runtime_class - - """ - pass - - def test_read_runtime_class(self): - """Test case for read_runtime_class - - """ - pass - - def test_replace_runtime_class(self): - """Test case for replace_runtime_class - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_node_v1beta1_api.py b/kubernetes/test/test_node_v1beta1_api.py deleted file mode 100644 index 1e2a464325..0000000000 --- a/kubernetes/test/test_node_v1beta1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.node_v1beta1_api import NodeV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestNodeV1beta1Api(unittest.TestCase): - """NodeV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.node_v1beta1_api.NodeV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_runtime_class(self): - """Test case for create_runtime_class - - """ - pass - - def test_delete_collection_runtime_class(self): - """Test case for delete_collection_runtime_class - - """ - pass - - def test_delete_runtime_class(self): - """Test case for delete_runtime_class - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_runtime_class(self): - """Test case for list_runtime_class - - """ - pass - - def test_patch_runtime_class(self): - """Test case for patch_runtime_class - - """ - pass - - def test_read_runtime_class(self): - """Test case for read_runtime_class - - """ - pass - - def test_replace_runtime_class(self): - """Test case for replace_runtime_class - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_api.py b/kubernetes/test/test_policy_api.py deleted file mode 100644 index 98a6b23426..0000000000 --- a/kubernetes/test/test_policy_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.policy_api import PolicyApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyApi(unittest.TestCase): - """PolicyApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.policy_api.PolicyApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_allowed_csi_driver.py b/kubernetes/test/test_policy_v1beta1_allowed_csi_driver.py deleted file mode 100644 index beac89f9ff..0000000000 --- a/kubernetes/test/test_policy_v1beta1_allowed_csi_driver.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_allowed_csi_driver import PolicyV1beta1AllowedCSIDriver # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1AllowedCSIDriver(unittest.TestCase): - """PolicyV1beta1AllowedCSIDriver unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1AllowedCSIDriver(self): - """Test PolicyV1beta1AllowedCSIDriver""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_allowed_csi_driver.PolicyV1beta1AllowedCSIDriver() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_allowed_flex_volume.py b/kubernetes/test/test_policy_v1beta1_allowed_flex_volume.py deleted file mode 100644 index 46326b10f6..0000000000 --- a/kubernetes/test/test_policy_v1beta1_allowed_flex_volume.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_allowed_flex_volume import PolicyV1beta1AllowedFlexVolume # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1AllowedFlexVolume(unittest.TestCase): - """PolicyV1beta1AllowedFlexVolume unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1AllowedFlexVolume(self): - """Test PolicyV1beta1AllowedFlexVolume""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_allowed_flex_volume.PolicyV1beta1AllowedFlexVolume() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_allowed_host_path.py b/kubernetes/test/test_policy_v1beta1_allowed_host_path.py deleted file mode 100644 index 70dc222b9f..0000000000 --- a/kubernetes/test/test_policy_v1beta1_allowed_host_path.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_allowed_host_path import PolicyV1beta1AllowedHostPath # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1AllowedHostPath(unittest.TestCase): - """PolicyV1beta1AllowedHostPath unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1AllowedHostPath(self): - """Test PolicyV1beta1AllowedHostPath""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_allowed_host_path.PolicyV1beta1AllowedHostPath() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_api.py b/kubernetes/test/test_policy_v1beta1_api.py deleted file mode 100644 index a415cba20c..0000000000 --- a/kubernetes/test/test_policy_v1beta1_api.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.policy_v1beta1_api import PolicyV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1Api(unittest.TestCase): - """PolicyV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.policy_v1beta1_api.PolicyV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_pod_disruption_budget(self): - """Test case for create_namespaced_pod_disruption_budget - - """ - pass - - def test_create_pod_security_policy(self): - """Test case for create_pod_security_policy - - """ - pass - - def test_delete_collection_namespaced_pod_disruption_budget(self): - """Test case for delete_collection_namespaced_pod_disruption_budget - - """ - pass - - def test_delete_collection_pod_security_policy(self): - """Test case for delete_collection_pod_security_policy - - """ - pass - - def test_delete_namespaced_pod_disruption_budget(self): - """Test case for delete_namespaced_pod_disruption_budget - - """ - pass - - def test_delete_pod_security_policy(self): - """Test case for delete_pod_security_policy - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_namespaced_pod_disruption_budget(self): - """Test case for list_namespaced_pod_disruption_budget - - """ - pass - - def test_list_pod_disruption_budget_for_all_namespaces(self): - """Test case for list_pod_disruption_budget_for_all_namespaces - - """ - pass - - def test_list_pod_security_policy(self): - """Test case for list_pod_security_policy - - """ - pass - - def test_patch_namespaced_pod_disruption_budget(self): - """Test case for patch_namespaced_pod_disruption_budget - - """ - pass - - def test_patch_namespaced_pod_disruption_budget_status(self): - """Test case for patch_namespaced_pod_disruption_budget_status - - """ - pass - - def test_patch_pod_security_policy(self): - """Test case for patch_pod_security_policy - - """ - pass - - def test_read_namespaced_pod_disruption_budget(self): - """Test case for read_namespaced_pod_disruption_budget - - """ - pass - - def test_read_namespaced_pod_disruption_budget_status(self): - """Test case for read_namespaced_pod_disruption_budget_status - - """ - pass - - def test_read_pod_security_policy(self): - """Test case for read_pod_security_policy - - """ - pass - - def test_replace_namespaced_pod_disruption_budget(self): - """Test case for replace_namespaced_pod_disruption_budget - - """ - pass - - def test_replace_namespaced_pod_disruption_budget_status(self): - """Test case for replace_namespaced_pod_disruption_budget_status - - """ - pass - - def test_replace_pod_security_policy(self): - """Test case for replace_pod_security_policy - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_fs_group_strategy_options.py b/kubernetes/test/test_policy_v1beta1_fs_group_strategy_options.py deleted file mode 100644 index 2e59429990..0000000000 --- a/kubernetes/test/test_policy_v1beta1_fs_group_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_fs_group_strategy_options import PolicyV1beta1FSGroupStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1FSGroupStrategyOptions(unittest.TestCase): - """PolicyV1beta1FSGroupStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1FSGroupStrategyOptions(self): - """Test PolicyV1beta1FSGroupStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_fs_group_strategy_options.PolicyV1beta1FSGroupStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_host_port_range.py b/kubernetes/test/test_policy_v1beta1_host_port_range.py deleted file mode 100644 index 8e334a13ea..0000000000 --- a/kubernetes/test/test_policy_v1beta1_host_port_range.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_host_port_range import PolicyV1beta1HostPortRange # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1HostPortRange(unittest.TestCase): - """PolicyV1beta1HostPortRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1HostPortRange(self): - """Test PolicyV1beta1HostPortRange""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_host_port_range.PolicyV1beta1HostPortRange() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_id_range.py b/kubernetes/test/test_policy_v1beta1_id_range.py deleted file mode 100644 index cf644269ef..0000000000 --- a/kubernetes/test/test_policy_v1beta1_id_range.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_id_range import PolicyV1beta1IDRange # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1IDRange(unittest.TestCase): - """PolicyV1beta1IDRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1IDRange(self): - """Test PolicyV1beta1IDRange""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_id_range.PolicyV1beta1IDRange() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_pod_security_policy.py b/kubernetes/test/test_policy_v1beta1_pod_security_policy.py deleted file mode 100644 index f51f21bc77..0000000000 --- a/kubernetes/test/test_policy_v1beta1_pod_security_policy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_pod_security_policy import PolicyV1beta1PodSecurityPolicy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1PodSecurityPolicy(unittest.TestCase): - """PolicyV1beta1PodSecurityPolicy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1PodSecurityPolicy(self): - """Test PolicyV1beta1PodSecurityPolicy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_pod_security_policy.PolicyV1beta1PodSecurityPolicy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_pod_security_policy_list.py b/kubernetes/test/test_policy_v1beta1_pod_security_policy_list.py deleted file mode 100644 index 1be716a09a..0000000000 --- a/kubernetes/test/test_policy_v1beta1_pod_security_policy_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_pod_security_policy_list import PolicyV1beta1PodSecurityPolicyList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1PodSecurityPolicyList(unittest.TestCase): - """PolicyV1beta1PodSecurityPolicyList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1PodSecurityPolicyList(self): - """Test PolicyV1beta1PodSecurityPolicyList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_pod_security_policy_list.PolicyV1beta1PodSecurityPolicyList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_pod_security_policy_spec.py b/kubernetes/test/test_policy_v1beta1_pod_security_policy_spec.py deleted file mode 100644 index 30fdd26ae4..0000000000 --- a/kubernetes/test/test_policy_v1beta1_pod_security_policy_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_pod_security_policy_spec import PolicyV1beta1PodSecurityPolicySpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1PodSecurityPolicySpec(unittest.TestCase): - """PolicyV1beta1PodSecurityPolicySpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1PodSecurityPolicySpec(self): - """Test PolicyV1beta1PodSecurityPolicySpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_pod_security_policy_spec.PolicyV1beta1PodSecurityPolicySpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_run_as_group_strategy_options.py b/kubernetes/test/test_policy_v1beta1_run_as_group_strategy_options.py deleted file mode 100644 index a0e2734588..0000000000 --- a/kubernetes/test/test_policy_v1beta1_run_as_group_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_run_as_group_strategy_options import PolicyV1beta1RunAsGroupStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1RunAsGroupStrategyOptions(unittest.TestCase): - """PolicyV1beta1RunAsGroupStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1RunAsGroupStrategyOptions(self): - """Test PolicyV1beta1RunAsGroupStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_run_as_group_strategy_options.PolicyV1beta1RunAsGroupStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_run_as_user_strategy_options.py b/kubernetes/test/test_policy_v1beta1_run_as_user_strategy_options.py deleted file mode 100644 index 1a601348ff..0000000000 --- a/kubernetes/test/test_policy_v1beta1_run_as_user_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_run_as_user_strategy_options import PolicyV1beta1RunAsUserStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1RunAsUserStrategyOptions(unittest.TestCase): - """PolicyV1beta1RunAsUserStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1RunAsUserStrategyOptions(self): - """Test PolicyV1beta1RunAsUserStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_run_as_user_strategy_options.PolicyV1beta1RunAsUserStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_runtime_class_strategy_options.py b/kubernetes/test/test_policy_v1beta1_runtime_class_strategy_options.py deleted file mode 100644 index 0583561383..0000000000 --- a/kubernetes/test/test_policy_v1beta1_runtime_class_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_runtime_class_strategy_options import PolicyV1beta1RuntimeClassStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1RuntimeClassStrategyOptions(unittest.TestCase): - """PolicyV1beta1RuntimeClassStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1RuntimeClassStrategyOptions(self): - """Test PolicyV1beta1RuntimeClassStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_runtime_class_strategy_options.PolicyV1beta1RuntimeClassStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_se_linux_strategy_options.py b/kubernetes/test/test_policy_v1beta1_se_linux_strategy_options.py deleted file mode 100644 index 318980f270..0000000000 --- a/kubernetes/test/test_policy_v1beta1_se_linux_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_se_linux_strategy_options import PolicyV1beta1SELinuxStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1SELinuxStrategyOptions(unittest.TestCase): - """PolicyV1beta1SELinuxStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1SELinuxStrategyOptions(self): - """Test PolicyV1beta1SELinuxStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_se_linux_strategy_options.PolicyV1beta1SELinuxStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_policy_v1beta1_supplemental_groups_strategy_options.py b/kubernetes/test/test_policy_v1beta1_supplemental_groups_strategy_options.py deleted file mode 100644 index 6624419645..0000000000 --- a/kubernetes/test/test_policy_v1beta1_supplemental_groups_strategy_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.policy_v1beta1_supplemental_groups_strategy_options import PolicyV1beta1SupplementalGroupsStrategyOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestPolicyV1beta1SupplementalGroupsStrategyOptions(unittest.TestCase): - """PolicyV1beta1SupplementalGroupsStrategyOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPolicyV1beta1SupplementalGroupsStrategyOptions(self): - """Test PolicyV1beta1SupplementalGroupsStrategyOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.policy_v1beta1_supplemental_groups_strategy_options.PolicyV1beta1SupplementalGroupsStrategyOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_rbac_authorization_api.py b/kubernetes/test/test_rbac_authorization_api.py deleted file mode 100644 index 48ef941543..0000000000 --- a/kubernetes/test/test_rbac_authorization_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestRbacAuthorizationApi(unittest.TestCase): - """RbacAuthorizationApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.rbac_authorization_api.RbacAuthorizationApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_rbac_authorization_v1_api.py b/kubernetes/test/test_rbac_authorization_v1_api.py deleted file mode 100644 index 85a48c2461..0000000000 --- a/kubernetes/test/test_rbac_authorization_v1_api.py +++ /dev/null @@ -1,219 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestRbacAuthorizationV1Api(unittest.TestCase): - """RbacAuthorizationV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.rbac_authorization_v1_api.RbacAuthorizationV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_cluster_role(self): - """Test case for create_cluster_role - - """ - pass - - def test_create_cluster_role_binding(self): - """Test case for create_cluster_role_binding - - """ - pass - - def test_create_namespaced_role(self): - """Test case for create_namespaced_role - - """ - pass - - def test_create_namespaced_role_binding(self): - """Test case for create_namespaced_role_binding - - """ - pass - - def test_delete_cluster_role(self): - """Test case for delete_cluster_role - - """ - pass - - def test_delete_cluster_role_binding(self): - """Test case for delete_cluster_role_binding - - """ - pass - - def test_delete_collection_cluster_role(self): - """Test case for delete_collection_cluster_role - - """ - pass - - def test_delete_collection_cluster_role_binding(self): - """Test case for delete_collection_cluster_role_binding - - """ - pass - - def test_delete_collection_namespaced_role(self): - """Test case for delete_collection_namespaced_role - - """ - pass - - def test_delete_collection_namespaced_role_binding(self): - """Test case for delete_collection_namespaced_role_binding - - """ - pass - - def test_delete_namespaced_role(self): - """Test case for delete_namespaced_role - - """ - pass - - def test_delete_namespaced_role_binding(self): - """Test case for delete_namespaced_role_binding - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_cluster_role(self): - """Test case for list_cluster_role - - """ - pass - - def test_list_cluster_role_binding(self): - """Test case for list_cluster_role_binding - - """ - pass - - def test_list_namespaced_role(self): - """Test case for list_namespaced_role - - """ - pass - - def test_list_namespaced_role_binding(self): - """Test case for list_namespaced_role_binding - - """ - pass - - def test_list_role_binding_for_all_namespaces(self): - """Test case for list_role_binding_for_all_namespaces - - """ - pass - - def test_list_role_for_all_namespaces(self): - """Test case for list_role_for_all_namespaces - - """ - pass - - def test_patch_cluster_role(self): - """Test case for patch_cluster_role - - """ - pass - - def test_patch_cluster_role_binding(self): - """Test case for patch_cluster_role_binding - - """ - pass - - def test_patch_namespaced_role(self): - """Test case for patch_namespaced_role - - """ - pass - - def test_patch_namespaced_role_binding(self): - """Test case for patch_namespaced_role_binding - - """ - pass - - def test_read_cluster_role(self): - """Test case for read_cluster_role - - """ - pass - - def test_read_cluster_role_binding(self): - """Test case for read_cluster_role_binding - - """ - pass - - def test_read_namespaced_role(self): - """Test case for read_namespaced_role - - """ - pass - - def test_read_namespaced_role_binding(self): - """Test case for read_namespaced_role_binding - - """ - pass - - def test_replace_cluster_role(self): - """Test case for replace_cluster_role - - """ - pass - - def test_replace_cluster_role_binding(self): - """Test case for replace_cluster_role_binding - - """ - pass - - def test_replace_namespaced_role(self): - """Test case for replace_namespaced_role - - """ - pass - - def test_replace_namespaced_role_binding(self): - """Test case for replace_namespaced_role_binding - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_rbac_authorization_v1alpha1_api.py b/kubernetes/test/test_rbac_authorization_v1alpha1_api.py deleted file mode 100644 index 1f6f9e5ad9..0000000000 --- a/kubernetes/test/test_rbac_authorization_v1alpha1_api.py +++ /dev/null @@ -1,219 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.rbac_authorization_v1alpha1_api import RbacAuthorizationV1alpha1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestRbacAuthorizationV1alpha1Api(unittest.TestCase): - """RbacAuthorizationV1alpha1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.rbac_authorization_v1alpha1_api.RbacAuthorizationV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_cluster_role(self): - """Test case for create_cluster_role - - """ - pass - - def test_create_cluster_role_binding(self): - """Test case for create_cluster_role_binding - - """ - pass - - def test_create_namespaced_role(self): - """Test case for create_namespaced_role - - """ - pass - - def test_create_namespaced_role_binding(self): - """Test case for create_namespaced_role_binding - - """ - pass - - def test_delete_cluster_role(self): - """Test case for delete_cluster_role - - """ - pass - - def test_delete_cluster_role_binding(self): - """Test case for delete_cluster_role_binding - - """ - pass - - def test_delete_collection_cluster_role(self): - """Test case for delete_collection_cluster_role - - """ - pass - - def test_delete_collection_cluster_role_binding(self): - """Test case for delete_collection_cluster_role_binding - - """ - pass - - def test_delete_collection_namespaced_role(self): - """Test case for delete_collection_namespaced_role - - """ - pass - - def test_delete_collection_namespaced_role_binding(self): - """Test case for delete_collection_namespaced_role_binding - - """ - pass - - def test_delete_namespaced_role(self): - """Test case for delete_namespaced_role - - """ - pass - - def test_delete_namespaced_role_binding(self): - """Test case for delete_namespaced_role_binding - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_cluster_role(self): - """Test case for list_cluster_role - - """ - pass - - def test_list_cluster_role_binding(self): - """Test case for list_cluster_role_binding - - """ - pass - - def test_list_namespaced_role(self): - """Test case for list_namespaced_role - - """ - pass - - def test_list_namespaced_role_binding(self): - """Test case for list_namespaced_role_binding - - """ - pass - - def test_list_role_binding_for_all_namespaces(self): - """Test case for list_role_binding_for_all_namespaces - - """ - pass - - def test_list_role_for_all_namespaces(self): - """Test case for list_role_for_all_namespaces - - """ - pass - - def test_patch_cluster_role(self): - """Test case for patch_cluster_role - - """ - pass - - def test_patch_cluster_role_binding(self): - """Test case for patch_cluster_role_binding - - """ - pass - - def test_patch_namespaced_role(self): - """Test case for patch_namespaced_role - - """ - pass - - def test_patch_namespaced_role_binding(self): - """Test case for patch_namespaced_role_binding - - """ - pass - - def test_read_cluster_role(self): - """Test case for read_cluster_role - - """ - pass - - def test_read_cluster_role_binding(self): - """Test case for read_cluster_role_binding - - """ - pass - - def test_read_namespaced_role(self): - """Test case for read_namespaced_role - - """ - pass - - def test_read_namespaced_role_binding(self): - """Test case for read_namespaced_role_binding - - """ - pass - - def test_replace_cluster_role(self): - """Test case for replace_cluster_role - - """ - pass - - def test_replace_cluster_role_binding(self): - """Test case for replace_cluster_role_binding - - """ - pass - - def test_replace_namespaced_role(self): - """Test case for replace_namespaced_role - - """ - pass - - def test_replace_namespaced_role_binding(self): - """Test case for replace_namespaced_role_binding - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_rbac_authorization_v1beta1_api.py b/kubernetes/test/test_rbac_authorization_v1beta1_api.py deleted file mode 100644 index 90d7f91314..0000000000 --- a/kubernetes/test/test_rbac_authorization_v1beta1_api.py +++ /dev/null @@ -1,219 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.rbac_authorization_v1beta1_api import RbacAuthorizationV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestRbacAuthorizationV1beta1Api(unittest.TestCase): - """RbacAuthorizationV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.rbac_authorization_v1beta1_api.RbacAuthorizationV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_cluster_role(self): - """Test case for create_cluster_role - - """ - pass - - def test_create_cluster_role_binding(self): - """Test case for create_cluster_role_binding - - """ - pass - - def test_create_namespaced_role(self): - """Test case for create_namespaced_role - - """ - pass - - def test_create_namespaced_role_binding(self): - """Test case for create_namespaced_role_binding - - """ - pass - - def test_delete_cluster_role(self): - """Test case for delete_cluster_role - - """ - pass - - def test_delete_cluster_role_binding(self): - """Test case for delete_cluster_role_binding - - """ - pass - - def test_delete_collection_cluster_role(self): - """Test case for delete_collection_cluster_role - - """ - pass - - def test_delete_collection_cluster_role_binding(self): - """Test case for delete_collection_cluster_role_binding - - """ - pass - - def test_delete_collection_namespaced_role(self): - """Test case for delete_collection_namespaced_role - - """ - pass - - def test_delete_collection_namespaced_role_binding(self): - """Test case for delete_collection_namespaced_role_binding - - """ - pass - - def test_delete_namespaced_role(self): - """Test case for delete_namespaced_role - - """ - pass - - def test_delete_namespaced_role_binding(self): - """Test case for delete_namespaced_role_binding - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_cluster_role(self): - """Test case for list_cluster_role - - """ - pass - - def test_list_cluster_role_binding(self): - """Test case for list_cluster_role_binding - - """ - pass - - def test_list_namespaced_role(self): - """Test case for list_namespaced_role - - """ - pass - - def test_list_namespaced_role_binding(self): - """Test case for list_namespaced_role_binding - - """ - pass - - def test_list_role_binding_for_all_namespaces(self): - """Test case for list_role_binding_for_all_namespaces - - """ - pass - - def test_list_role_for_all_namespaces(self): - """Test case for list_role_for_all_namespaces - - """ - pass - - def test_patch_cluster_role(self): - """Test case for patch_cluster_role - - """ - pass - - def test_patch_cluster_role_binding(self): - """Test case for patch_cluster_role_binding - - """ - pass - - def test_patch_namespaced_role(self): - """Test case for patch_namespaced_role - - """ - pass - - def test_patch_namespaced_role_binding(self): - """Test case for patch_namespaced_role_binding - - """ - pass - - def test_read_cluster_role(self): - """Test case for read_cluster_role - - """ - pass - - def test_read_cluster_role_binding(self): - """Test case for read_cluster_role_binding - - """ - pass - - def test_read_namespaced_role(self): - """Test case for read_namespaced_role - - """ - pass - - def test_read_namespaced_role_binding(self): - """Test case for read_namespaced_role_binding - - """ - pass - - def test_replace_cluster_role(self): - """Test case for replace_cluster_role - - """ - pass - - def test_replace_cluster_role_binding(self): - """Test case for replace_cluster_role_binding - - """ - pass - - def test_replace_namespaced_role(self): - """Test case for replace_namespaced_role - - """ - pass - - def test_replace_namespaced_role_binding(self): - """Test case for replace_namespaced_role_binding - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_scheduling_api.py b/kubernetes/test/test_scheduling_api.py deleted file mode 100644 index 246b4662dc..0000000000 --- a/kubernetes/test/test_scheduling_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.scheduling_api import SchedulingApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestSchedulingApi(unittest.TestCase): - """SchedulingApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.scheduling_api.SchedulingApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_scheduling_v1_api.py b/kubernetes/test/test_scheduling_v1_api.py deleted file mode 100644 index d2ce409bc4..0000000000 --- a/kubernetes/test/test_scheduling_v1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.scheduling_v1_api import SchedulingV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestSchedulingV1Api(unittest.TestCase): - """SchedulingV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.scheduling_v1_api.SchedulingV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_priority_class(self): - """Test case for create_priority_class - - """ - pass - - def test_delete_collection_priority_class(self): - """Test case for delete_collection_priority_class - - """ - pass - - def test_delete_priority_class(self): - """Test case for delete_priority_class - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_priority_class(self): - """Test case for list_priority_class - - """ - pass - - def test_patch_priority_class(self): - """Test case for patch_priority_class - - """ - pass - - def test_read_priority_class(self): - """Test case for read_priority_class - - """ - pass - - def test_replace_priority_class(self): - """Test case for replace_priority_class - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_scheduling_v1alpha1_api.py b/kubernetes/test/test_scheduling_v1alpha1_api.py deleted file mode 100644 index 6bd0fafc08..0000000000 --- a/kubernetes/test/test_scheduling_v1alpha1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.scheduling_v1alpha1_api import SchedulingV1alpha1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestSchedulingV1alpha1Api(unittest.TestCase): - """SchedulingV1alpha1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.scheduling_v1alpha1_api.SchedulingV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_priority_class(self): - """Test case for create_priority_class - - """ - pass - - def test_delete_collection_priority_class(self): - """Test case for delete_collection_priority_class - - """ - pass - - def test_delete_priority_class(self): - """Test case for delete_priority_class - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_priority_class(self): - """Test case for list_priority_class - - """ - pass - - def test_patch_priority_class(self): - """Test case for patch_priority_class - - """ - pass - - def test_read_priority_class(self): - """Test case for read_priority_class - - """ - pass - - def test_replace_priority_class(self): - """Test case for replace_priority_class - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_scheduling_v1beta1_api.py b/kubernetes/test/test_scheduling_v1beta1_api.py deleted file mode 100644 index 2a468cb6bb..0000000000 --- a/kubernetes/test/test_scheduling_v1beta1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.scheduling_v1beta1_api import SchedulingV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestSchedulingV1beta1Api(unittest.TestCase): - """SchedulingV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.scheduling_v1beta1_api.SchedulingV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_priority_class(self): - """Test case for create_priority_class - - """ - pass - - def test_delete_collection_priority_class(self): - """Test case for delete_collection_priority_class - - """ - pass - - def test_delete_priority_class(self): - """Test case for delete_priority_class - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_priority_class(self): - """Test case for list_priority_class - - """ - pass - - def test_patch_priority_class(self): - """Test case for patch_priority_class - - """ - pass - - def test_read_priority_class(self): - """Test case for read_priority_class - - """ - pass - - def test_replace_priority_class(self): - """Test case for replace_priority_class - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_settings_api.py b/kubernetes/test/test_settings_api.py deleted file mode 100644 index 05f4610451..0000000000 --- a/kubernetes/test/test_settings_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.settings_api import SettingsApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestSettingsApi(unittest.TestCase): - """SettingsApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.settings_api.SettingsApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_settings_v1alpha1_api.py b/kubernetes/test/test_settings_v1alpha1_api.py deleted file mode 100644 index 08e9aabc81..0000000000 --- a/kubernetes/test/test_settings_v1alpha1_api.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.settings_v1alpha1_api import SettingsV1alpha1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestSettingsV1alpha1Api(unittest.TestCase): - """SettingsV1alpha1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.settings_v1alpha1_api.SettingsV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_namespaced_pod_preset(self): - """Test case for create_namespaced_pod_preset - - """ - pass - - def test_delete_collection_namespaced_pod_preset(self): - """Test case for delete_collection_namespaced_pod_preset - - """ - pass - - def test_delete_namespaced_pod_preset(self): - """Test case for delete_namespaced_pod_preset - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_namespaced_pod_preset(self): - """Test case for list_namespaced_pod_preset - - """ - pass - - def test_list_pod_preset_for_all_namespaces(self): - """Test case for list_pod_preset_for_all_namespaces - - """ - pass - - def test_patch_namespaced_pod_preset(self): - """Test case for patch_namespaced_pod_preset - - """ - pass - - def test_read_namespaced_pod_preset(self): - """Test case for read_namespaced_pod_preset - - """ - pass - - def test_replace_namespaced_pod_preset(self): - """Test case for replace_namespaced_pod_preset - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_storage_api.py b/kubernetes/test/test_storage_api.py deleted file mode 100644 index b720f6d95e..0000000000 --- a/kubernetes/test/test_storage_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.storage_api import StorageApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestStorageApi(unittest.TestCase): - """StorageApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.storage_api.StorageApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_api_group(self): - """Test case for get_api_group - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_storage_v1_api.py b/kubernetes/test/test_storage_v1_api.py deleted file mode 100644 index 68d9415925..0000000000 --- a/kubernetes/test/test_storage_v1_api.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.storage_v1_api import StorageV1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestStorageV1Api(unittest.TestCase): - """StorageV1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.storage_v1_api.StorageV1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_storage_class(self): - """Test case for create_storage_class - - """ - pass - - def test_create_volume_attachment(self): - """Test case for create_volume_attachment - - """ - pass - - def test_delete_collection_storage_class(self): - """Test case for delete_collection_storage_class - - """ - pass - - def test_delete_collection_volume_attachment(self): - """Test case for delete_collection_volume_attachment - - """ - pass - - def test_delete_storage_class(self): - """Test case for delete_storage_class - - """ - pass - - def test_delete_volume_attachment(self): - """Test case for delete_volume_attachment - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_storage_class(self): - """Test case for list_storage_class - - """ - pass - - def test_list_volume_attachment(self): - """Test case for list_volume_attachment - - """ - pass - - def test_patch_storage_class(self): - """Test case for patch_storage_class - - """ - pass - - def test_patch_volume_attachment(self): - """Test case for patch_volume_attachment - - """ - pass - - def test_patch_volume_attachment_status(self): - """Test case for patch_volume_attachment_status - - """ - pass - - def test_read_storage_class(self): - """Test case for read_storage_class - - """ - pass - - def test_read_volume_attachment(self): - """Test case for read_volume_attachment - - """ - pass - - def test_read_volume_attachment_status(self): - """Test case for read_volume_attachment_status - - """ - pass - - def test_replace_storage_class(self): - """Test case for replace_storage_class - - """ - pass - - def test_replace_volume_attachment(self): - """Test case for replace_volume_attachment - - """ - pass - - def test_replace_volume_attachment_status(self): - """Test case for replace_volume_attachment_status - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_storage_v1alpha1_api.py b/kubernetes/test/test_storage_v1alpha1_api.py deleted file mode 100644 index 4110799432..0000000000 --- a/kubernetes/test/test_storage_v1alpha1_api.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.storage_v1alpha1_api import StorageV1alpha1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestStorageV1alpha1Api(unittest.TestCase): - """StorageV1alpha1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.storage_v1alpha1_api.StorageV1alpha1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_volume_attachment(self): - """Test case for create_volume_attachment - - """ - pass - - def test_delete_collection_volume_attachment(self): - """Test case for delete_collection_volume_attachment - - """ - pass - - def test_delete_volume_attachment(self): - """Test case for delete_volume_attachment - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_volume_attachment(self): - """Test case for list_volume_attachment - - """ - pass - - def test_patch_volume_attachment(self): - """Test case for patch_volume_attachment - - """ - pass - - def test_read_volume_attachment(self): - """Test case for read_volume_attachment - - """ - pass - - def test_replace_volume_attachment(self): - """Test case for replace_volume_attachment - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_storage_v1beta1_api.py b/kubernetes/test/test_storage_v1beta1_api.py deleted file mode 100644 index 1063c4dcd4..0000000000 --- a/kubernetes/test/test_storage_v1beta1_api.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.storage_v1beta1_api import StorageV1beta1Api # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestStorageV1beta1Api(unittest.TestCase): - """StorageV1beta1Api unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.storage_v1beta1_api.StorageV1beta1Api() # noqa: E501 - - def tearDown(self): - pass - - def test_create_csi_driver(self): - """Test case for create_csi_driver - - """ - pass - - def test_create_csi_node(self): - """Test case for create_csi_node - - """ - pass - - def test_create_storage_class(self): - """Test case for create_storage_class - - """ - pass - - def test_create_volume_attachment(self): - """Test case for create_volume_attachment - - """ - pass - - def test_delete_collection_csi_driver(self): - """Test case for delete_collection_csi_driver - - """ - pass - - def test_delete_collection_csi_node(self): - """Test case for delete_collection_csi_node - - """ - pass - - def test_delete_collection_storage_class(self): - """Test case for delete_collection_storage_class - - """ - pass - - def test_delete_collection_volume_attachment(self): - """Test case for delete_collection_volume_attachment - - """ - pass - - def test_delete_csi_driver(self): - """Test case for delete_csi_driver - - """ - pass - - def test_delete_csi_node(self): - """Test case for delete_csi_node - - """ - pass - - def test_delete_storage_class(self): - """Test case for delete_storage_class - - """ - pass - - def test_delete_volume_attachment(self): - """Test case for delete_volume_attachment - - """ - pass - - def test_get_api_resources(self): - """Test case for get_api_resources - - """ - pass - - def test_list_csi_driver(self): - """Test case for list_csi_driver - - """ - pass - - def test_list_csi_node(self): - """Test case for list_csi_node - - """ - pass - - def test_list_storage_class(self): - """Test case for list_storage_class - - """ - pass - - def test_list_volume_attachment(self): - """Test case for list_volume_attachment - - """ - pass - - def test_patch_csi_driver(self): - """Test case for patch_csi_driver - - """ - pass - - def test_patch_csi_node(self): - """Test case for patch_csi_node - - """ - pass - - def test_patch_storage_class(self): - """Test case for patch_storage_class - - """ - pass - - def test_patch_volume_attachment(self): - """Test case for patch_volume_attachment - - """ - pass - - def test_read_csi_driver(self): - """Test case for read_csi_driver - - """ - pass - - def test_read_csi_node(self): - """Test case for read_csi_node - - """ - pass - - def test_read_storage_class(self): - """Test case for read_storage_class - - """ - pass - - def test_read_volume_attachment(self): - """Test case for read_volume_attachment - - """ - pass - - def test_replace_csi_driver(self): - """Test case for replace_csi_driver - - """ - pass - - def test_replace_csi_node(self): - """Test case for replace_csi_node - - """ - pass - - def test_replace_storage_class(self): - """Test case for replace_storage_class - - """ - pass - - def test_replace_volume_attachment(self): - """Test case for replace_volume_attachment - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_affinity.py b/kubernetes/test/test_v1_affinity.py deleted file mode 100644 index f6b0b209c2..0000000000 --- a/kubernetes/test/test_v1_affinity.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_affinity import V1Affinity # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Affinity(unittest.TestCase): - """V1Affinity unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Affinity(self): - """Test V1Affinity""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_affinity.V1Affinity() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_aggregation_rule.py b/kubernetes/test/test_v1_aggregation_rule.py deleted file mode 100644 index 48f9a130b1..0000000000 --- a/kubernetes/test/test_v1_aggregation_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1AggregationRule(unittest.TestCase): - """V1AggregationRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1AggregationRule(self): - """Test V1AggregationRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_aggregation_rule.V1AggregationRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_group.py b/kubernetes/test/test_v1_api_group.py deleted file mode 100644 index 8f1e810501..0000000000 --- a/kubernetes/test/test_v1_api_group.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_group import V1APIGroup # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIGroup(unittest.TestCase): - """V1APIGroup unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIGroup(self): - """Test V1APIGroup""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_group.V1APIGroup() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_group_list.py b/kubernetes/test/test_v1_api_group_list.py deleted file mode 100644 index 8153c67697..0000000000 --- a/kubernetes/test/test_v1_api_group_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_group_list import V1APIGroupList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIGroupList(unittest.TestCase): - """V1APIGroupList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIGroupList(self): - """Test V1APIGroupList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_group_list.V1APIGroupList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_resource.py b/kubernetes/test/test_v1_api_resource.py deleted file mode 100644 index 875279a295..0000000000 --- a/kubernetes/test/test_v1_api_resource.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_resource import V1APIResource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIResource(unittest.TestCase): - """V1APIResource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIResource(self): - """Test V1APIResource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_resource.V1APIResource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_resource_list.py b/kubernetes/test/test_v1_api_resource_list.py deleted file mode 100644 index 4cf5fce588..0000000000 --- a/kubernetes/test/test_v1_api_resource_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_resource_list import V1APIResourceList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIResourceList(unittest.TestCase): - """V1APIResourceList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIResourceList(self): - """Test V1APIResourceList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_resource_list.V1APIResourceList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_service.py b/kubernetes/test/test_v1_api_service.py deleted file mode 100644 index e23c904656..0000000000 --- a/kubernetes/test/test_v1_api_service.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_service import V1APIService # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIService(unittest.TestCase): - """V1APIService unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIService(self): - """Test V1APIService""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_service.V1APIService() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_service_condition.py b/kubernetes/test/test_v1_api_service_condition.py deleted file mode 100644 index 101ae01ec9..0000000000 --- a/kubernetes/test/test_v1_api_service_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_service_condition import V1APIServiceCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIServiceCondition(unittest.TestCase): - """V1APIServiceCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIServiceCondition(self): - """Test V1APIServiceCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_service_condition.V1APIServiceCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_service_list.py b/kubernetes/test/test_v1_api_service_list.py deleted file mode 100644 index 42e021ae6e..0000000000 --- a/kubernetes/test/test_v1_api_service_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_service_list import V1APIServiceList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIServiceList(unittest.TestCase): - """V1APIServiceList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIServiceList(self): - """Test V1APIServiceList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_service_list.V1APIServiceList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_service_spec.py b/kubernetes/test/test_v1_api_service_spec.py deleted file mode 100644 index dbb353dde1..0000000000 --- a/kubernetes/test/test_v1_api_service_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_service_spec import V1APIServiceSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIServiceSpec(unittest.TestCase): - """V1APIServiceSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIServiceSpec(self): - """Test V1APIServiceSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_service_spec.V1APIServiceSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_service_status.py b/kubernetes/test/test_v1_api_service_status.py deleted file mode 100644 index 30adb8cc95..0000000000 --- a/kubernetes/test/test_v1_api_service_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_service_status import V1APIServiceStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIServiceStatus(unittest.TestCase): - """V1APIServiceStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIServiceStatus(self): - """Test V1APIServiceStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_service_status.V1APIServiceStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_api_versions.py b/kubernetes/test/test_v1_api_versions.py deleted file mode 100644 index 696927be7e..0000000000 --- a/kubernetes/test/test_v1_api_versions.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_api_versions import V1APIVersions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1APIVersions(unittest.TestCase): - """V1APIVersions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1APIVersions(self): - """Test V1APIVersions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_api_versions.V1APIVersions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_attached_volume.py b/kubernetes/test/test_v1_attached_volume.py deleted file mode 100644 index 1d3b3dfad3..0000000000 --- a/kubernetes/test/test_v1_attached_volume.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_attached_volume import V1AttachedVolume # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1AttachedVolume(unittest.TestCase): - """V1AttachedVolume unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1AttachedVolume(self): - """Test V1AttachedVolume""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_attached_volume.V1AttachedVolume() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py b/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py deleted file mode 100644 index 7d7ab92a3d..0000000000 --- a/kubernetes/test/test_v1_aws_elastic_block_store_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1AWSElasticBlockStoreVolumeSource(unittest.TestCase): - """V1AWSElasticBlockStoreVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1AWSElasticBlockStoreVolumeSource(self): - """Test V1AWSElasticBlockStoreVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_aws_elastic_block_store_volume_source.V1AWSElasticBlockStoreVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_azure_disk_volume_source.py b/kubernetes/test/test_v1_azure_disk_volume_source.py deleted file mode 100644 index dbdb220140..0000000000 --- a/kubernetes/test/test_v1_azure_disk_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_azure_disk_volume_source import V1AzureDiskVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1AzureDiskVolumeSource(unittest.TestCase): - """V1AzureDiskVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1AzureDiskVolumeSource(self): - """Test V1AzureDiskVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_azure_disk_volume_source.V1AzureDiskVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_azure_file_persistent_volume_source.py b/kubernetes/test/test_v1_azure_file_persistent_volume_source.py deleted file mode 100644 index 1165eb7a09..0000000000 --- a/kubernetes/test/test_v1_azure_file_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_azure_file_persistent_volume_source import V1AzureFilePersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1AzureFilePersistentVolumeSource(unittest.TestCase): - """V1AzureFilePersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1AzureFilePersistentVolumeSource(self): - """Test V1AzureFilePersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_azure_file_persistent_volume_source.V1AzureFilePersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_azure_file_volume_source.py b/kubernetes/test/test_v1_azure_file_volume_source.py deleted file mode 100644 index c961f77809..0000000000 --- a/kubernetes/test/test_v1_azure_file_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1AzureFileVolumeSource(unittest.TestCase): - """V1AzureFileVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1AzureFileVolumeSource(self): - """Test V1AzureFileVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_azure_file_volume_source.V1AzureFileVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_binding.py b/kubernetes/test/test_v1_binding.py deleted file mode 100644 index dd1de85cd3..0000000000 --- a/kubernetes/test/test_v1_binding.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_binding import V1Binding # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Binding(unittest.TestCase): - """V1Binding unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Binding(self): - """Test V1Binding""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_binding.V1Binding() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_bound_object_reference.py b/kubernetes/test/test_v1_bound_object_reference.py deleted file mode 100644 index 002cd37d48..0000000000 --- a/kubernetes/test/test_v1_bound_object_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_bound_object_reference import V1BoundObjectReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1BoundObjectReference(unittest.TestCase): - """V1BoundObjectReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1BoundObjectReference(self): - """Test V1BoundObjectReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_bound_object_reference.V1BoundObjectReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_capabilities.py b/kubernetes/test/test_v1_capabilities.py deleted file mode 100644 index 09ca6d8492..0000000000 --- a/kubernetes/test/test_v1_capabilities.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_capabilities import V1Capabilities # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Capabilities(unittest.TestCase): - """V1Capabilities unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Capabilities(self): - """Test V1Capabilities""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_capabilities.V1Capabilities() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py b/kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py deleted file mode 100644 index bcd9fb4c76..0000000000 --- a/kubernetes/test/test_v1_ceph_fs_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CephFSPersistentVolumeSource(unittest.TestCase): - """V1CephFSPersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CephFSPersistentVolumeSource(self): - """Test V1CephFSPersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_ceph_fs_persistent_volume_source.V1CephFSPersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_ceph_fs_volume_source.py b/kubernetes/test/test_v1_ceph_fs_volume_source.py deleted file mode 100644 index 62cf4e6bb2..0000000000 --- a/kubernetes/test/test_v1_ceph_fs_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CephFSVolumeSource(unittest.TestCase): - """V1CephFSVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CephFSVolumeSource(self): - """Test V1CephFSVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_ceph_fs_volume_source.V1CephFSVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_cinder_persistent_volume_source.py b/kubernetes/test/test_v1_cinder_persistent_volume_source.py deleted file mode 100644 index 7f3e78cf14..0000000000 --- a/kubernetes/test/test_v1_cinder_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_cinder_persistent_volume_source import V1CinderPersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CinderPersistentVolumeSource(unittest.TestCase): - """V1CinderPersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CinderPersistentVolumeSource(self): - """Test V1CinderPersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_cinder_persistent_volume_source.V1CinderPersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_cinder_volume_source.py b/kubernetes/test/test_v1_cinder_volume_source.py deleted file mode 100644 index 24a85d3365..0000000000 --- a/kubernetes/test/test_v1_cinder_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_cinder_volume_source import V1CinderVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CinderVolumeSource(unittest.TestCase): - """V1CinderVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CinderVolumeSource(self): - """Test V1CinderVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_cinder_volume_source.V1CinderVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_client_ip_config.py b/kubernetes/test/test_v1_client_ip_config.py deleted file mode 100644 index 6bee230ee4..0000000000 --- a/kubernetes/test/test_v1_client_ip_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_client_ip_config import V1ClientIPConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ClientIPConfig(unittest.TestCase): - """V1ClientIPConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ClientIPConfig(self): - """Test V1ClientIPConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_client_ip_config.V1ClientIPConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_cluster_role.py b/kubernetes/test/test_v1_cluster_role.py deleted file mode 100644 index 6593b25aca..0000000000 --- a/kubernetes/test/test_v1_cluster_role.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_cluster_role import V1ClusterRole # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ClusterRole(unittest.TestCase): - """V1ClusterRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ClusterRole(self): - """Test V1ClusterRole""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_cluster_role.V1ClusterRole() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_cluster_role_binding.py b/kubernetes/test/test_v1_cluster_role_binding.py deleted file mode 100644 index e99190ff3a..0000000000 --- a/kubernetes/test/test_v1_cluster_role_binding.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_cluster_role_binding import V1ClusterRoleBinding # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ClusterRoleBinding(unittest.TestCase): - """V1ClusterRoleBinding unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ClusterRoleBinding(self): - """Test V1ClusterRoleBinding""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_cluster_role_binding.V1ClusterRoleBinding() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_cluster_role_binding_list.py b/kubernetes/test/test_v1_cluster_role_binding_list.py deleted file mode 100644 index b2e0bdf642..0000000000 --- a/kubernetes/test/test_v1_cluster_role_binding_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_cluster_role_binding_list import V1ClusterRoleBindingList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ClusterRoleBindingList(unittest.TestCase): - """V1ClusterRoleBindingList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ClusterRoleBindingList(self): - """Test V1ClusterRoleBindingList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_cluster_role_binding_list.V1ClusterRoleBindingList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_cluster_role_list.py b/kubernetes/test/test_v1_cluster_role_list.py deleted file mode 100644 index e2849862b9..0000000000 --- a/kubernetes/test/test_v1_cluster_role_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_cluster_role_list import V1ClusterRoleList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ClusterRoleList(unittest.TestCase): - """V1ClusterRoleList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ClusterRoleList(self): - """Test V1ClusterRoleList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_cluster_role_list.V1ClusterRoleList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_component_condition.py b/kubernetes/test/test_v1_component_condition.py deleted file mode 100644 index c8d6e0d0df..0000000000 --- a/kubernetes/test/test_v1_component_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_component_condition import V1ComponentCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ComponentCondition(unittest.TestCase): - """V1ComponentCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ComponentCondition(self): - """Test V1ComponentCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_component_condition.V1ComponentCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_component_status.py b/kubernetes/test/test_v1_component_status.py deleted file mode 100644 index e4b71bb065..0000000000 --- a/kubernetes/test/test_v1_component_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_component_status import V1ComponentStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ComponentStatus(unittest.TestCase): - """V1ComponentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ComponentStatus(self): - """Test V1ComponentStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_component_status.V1ComponentStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_component_status_list.py b/kubernetes/test/test_v1_component_status_list.py deleted file mode 100644 index 515f85b5e8..0000000000 --- a/kubernetes/test/test_v1_component_status_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_component_status_list import V1ComponentStatusList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ComponentStatusList(unittest.TestCase): - """V1ComponentStatusList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ComponentStatusList(self): - """Test V1ComponentStatusList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_component_status_list.V1ComponentStatusList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_config_map.py b/kubernetes/test/test_v1_config_map.py deleted file mode 100644 index f4fb42ec12..0000000000 --- a/kubernetes/test/test_v1_config_map.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_config_map import V1ConfigMap # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ConfigMap(unittest.TestCase): - """V1ConfigMap unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ConfigMap(self): - """Test V1ConfigMap""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_config_map.V1ConfigMap() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_config_map_env_source.py b/kubernetes/test/test_v1_config_map_env_source.py deleted file mode 100644 index d1ea4909c0..0000000000 --- a/kubernetes/test/test_v1_config_map_env_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_config_map_env_source import V1ConfigMapEnvSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ConfigMapEnvSource(unittest.TestCase): - """V1ConfigMapEnvSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ConfigMapEnvSource(self): - """Test V1ConfigMapEnvSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_config_map_env_source.V1ConfigMapEnvSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_config_map_key_selector.py b/kubernetes/test/test_v1_config_map_key_selector.py deleted file mode 100644 index bd56d46e7e..0000000000 --- a/kubernetes/test/test_v1_config_map_key_selector.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_config_map_key_selector import V1ConfigMapKeySelector # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ConfigMapKeySelector(unittest.TestCase): - """V1ConfigMapKeySelector unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ConfigMapKeySelector(self): - """Test V1ConfigMapKeySelector""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_config_map_key_selector.V1ConfigMapKeySelector() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_config_map_list.py b/kubernetes/test/test_v1_config_map_list.py deleted file mode 100644 index b4a6f466c5..0000000000 --- a/kubernetes/test/test_v1_config_map_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_config_map_list import V1ConfigMapList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ConfigMapList(unittest.TestCase): - """V1ConfigMapList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ConfigMapList(self): - """Test V1ConfigMapList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_config_map_list.V1ConfigMapList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_config_map_node_config_source.py b/kubernetes/test/test_v1_config_map_node_config_source.py deleted file mode 100644 index 95b449bf9d..0000000000 --- a/kubernetes/test/test_v1_config_map_node_config_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_config_map_node_config_source import V1ConfigMapNodeConfigSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ConfigMapNodeConfigSource(unittest.TestCase): - """V1ConfigMapNodeConfigSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ConfigMapNodeConfigSource(self): - """Test V1ConfigMapNodeConfigSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_config_map_node_config_source.V1ConfigMapNodeConfigSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_config_map_projection.py b/kubernetes/test/test_v1_config_map_projection.py deleted file mode 100644 index cb200c6e4c..0000000000 --- a/kubernetes/test/test_v1_config_map_projection.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ConfigMapProjection(unittest.TestCase): - """V1ConfigMapProjection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ConfigMapProjection(self): - """Test V1ConfigMapProjection""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_config_map_projection.V1ConfigMapProjection() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_config_map_volume_source.py b/kubernetes/test/test_v1_config_map_volume_source.py deleted file mode 100644 index 860eceb78a..0000000000 --- a/kubernetes/test/test_v1_config_map_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ConfigMapVolumeSource(unittest.TestCase): - """V1ConfigMapVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ConfigMapVolumeSource(self): - """Test V1ConfigMapVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_config_map_volume_source.V1ConfigMapVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_container.py b/kubernetes/test/test_v1_container.py deleted file mode 100644 index a95a8f8ba4..0000000000 --- a/kubernetes/test/test_v1_container.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_container import V1Container # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Container(unittest.TestCase): - """V1Container unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Container(self): - """Test V1Container""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_container.V1Container() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_container_image.py b/kubernetes/test/test_v1_container_image.py deleted file mode 100644 index 36bfe8a5fb..0000000000 --- a/kubernetes/test/test_v1_container_image.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_container_image import V1ContainerImage # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ContainerImage(unittest.TestCase): - """V1ContainerImage unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ContainerImage(self): - """Test V1ContainerImage""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_container_image.V1ContainerImage() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_container_port.py b/kubernetes/test/test_v1_container_port.py deleted file mode 100644 index affcccbc02..0000000000 --- a/kubernetes/test/test_v1_container_port.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_container_port import V1ContainerPort # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ContainerPort(unittest.TestCase): - """V1ContainerPort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ContainerPort(self): - """Test V1ContainerPort""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_container_port.V1ContainerPort() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_container_state.py b/kubernetes/test/test_v1_container_state.py deleted file mode 100644 index 546388f309..0000000000 --- a/kubernetes/test/test_v1_container_state.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_container_state import V1ContainerState # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ContainerState(unittest.TestCase): - """V1ContainerState unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ContainerState(self): - """Test V1ContainerState""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_container_state.V1ContainerState() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_container_state_running.py b/kubernetes/test/test_v1_container_state_running.py deleted file mode 100644 index 8dd0d504b3..0000000000 --- a/kubernetes/test/test_v1_container_state_running.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ContainerStateRunning(unittest.TestCase): - """V1ContainerStateRunning unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ContainerStateRunning(self): - """Test V1ContainerStateRunning""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_container_state_running.V1ContainerStateRunning() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_container_state_terminated.py b/kubernetes/test/test_v1_container_state_terminated.py deleted file mode 100644 index a03bbb6e11..0000000000 --- a/kubernetes/test/test_v1_container_state_terminated.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ContainerStateTerminated(unittest.TestCase): - """V1ContainerStateTerminated unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ContainerStateTerminated(self): - """Test V1ContainerStateTerminated""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_container_state_terminated.V1ContainerStateTerminated() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_container_state_waiting.py b/kubernetes/test/test_v1_container_state_waiting.py deleted file mode 100644 index 98f37fad30..0000000000 --- a/kubernetes/test/test_v1_container_state_waiting.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_container_state_waiting import V1ContainerStateWaiting # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ContainerStateWaiting(unittest.TestCase): - """V1ContainerStateWaiting unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ContainerStateWaiting(self): - """Test V1ContainerStateWaiting""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_container_state_waiting.V1ContainerStateWaiting() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_container_status.py b/kubernetes/test/test_v1_container_status.py deleted file mode 100644 index 639c409a90..0000000000 --- a/kubernetes/test/test_v1_container_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_container_status import V1ContainerStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ContainerStatus(unittest.TestCase): - """V1ContainerStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ContainerStatus(self): - """Test V1ContainerStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_container_status.V1ContainerStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_controller_revision.py b/kubernetes/test/test_v1_controller_revision.py deleted file mode 100644 index 3d3049d84c..0000000000 --- a/kubernetes/test/test_v1_controller_revision.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_controller_revision import V1ControllerRevision # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ControllerRevision(unittest.TestCase): - """V1ControllerRevision unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ControllerRevision(self): - """Test V1ControllerRevision""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_controller_revision.V1ControllerRevision() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_controller_revision_list.py b/kubernetes/test/test_v1_controller_revision_list.py deleted file mode 100644 index 012f6eff66..0000000000 --- a/kubernetes/test/test_v1_controller_revision_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ControllerRevisionList(unittest.TestCase): - """V1ControllerRevisionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ControllerRevisionList(self): - """Test V1ControllerRevisionList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_controller_revision_list.V1ControllerRevisionList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_cross_version_object_reference.py b/kubernetes/test/test_v1_cross_version_object_reference.py deleted file mode 100644 index 8a33b7510d..0000000000 --- a/kubernetes/test/test_v1_cross_version_object_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_cross_version_object_reference import V1CrossVersionObjectReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CrossVersionObjectReference(unittest.TestCase): - """V1CrossVersionObjectReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CrossVersionObjectReference(self): - """Test V1CrossVersionObjectReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_cross_version_object_reference.V1CrossVersionObjectReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_csi_persistent_volume_source.py b/kubernetes/test/test_v1_csi_persistent_volume_source.py deleted file mode 100644 index 5c5a1fb2a1..0000000000 --- a/kubernetes/test/test_v1_csi_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_csi_persistent_volume_source import V1CSIPersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CSIPersistentVolumeSource(unittest.TestCase): - """V1CSIPersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CSIPersistentVolumeSource(self): - """Test V1CSIPersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_csi_persistent_volume_source.V1CSIPersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_csi_volume_source.py b/kubernetes/test/test_v1_csi_volume_source.py deleted file mode 100644 index 48bb9ceb13..0000000000 --- a/kubernetes/test/test_v1_csi_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CSIVolumeSource(unittest.TestCase): - """V1CSIVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CSIVolumeSource(self): - """Test V1CSIVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_csi_volume_source.V1CSIVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_column_definition.py b/kubernetes/test/test_v1_custom_resource_column_definition.py deleted file mode 100644 index e3ada04f38..0000000000 --- a/kubernetes/test/test_v1_custom_resource_column_definition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_column_definition import V1CustomResourceColumnDefinition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceColumnDefinition(unittest.TestCase): - """V1CustomResourceColumnDefinition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceColumnDefinition(self): - """Test V1CustomResourceColumnDefinition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_column_definition.V1CustomResourceColumnDefinition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_conversion.py b/kubernetes/test/test_v1_custom_resource_conversion.py deleted file mode 100644 index 75e0d9632a..0000000000 --- a/kubernetes/test/test_v1_custom_resource_conversion.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_conversion import V1CustomResourceConversion # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceConversion(unittest.TestCase): - """V1CustomResourceConversion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceConversion(self): - """Test V1CustomResourceConversion""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_conversion.V1CustomResourceConversion() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_definition.py b/kubernetes/test/test_v1_custom_resource_definition.py deleted file mode 100644 index b3b2812941..0000000000 --- a/kubernetes/test/test_v1_custom_resource_definition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_definition import V1CustomResourceDefinition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceDefinition(unittest.TestCase): - """V1CustomResourceDefinition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceDefinition(self): - """Test V1CustomResourceDefinition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_definition.V1CustomResourceDefinition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_definition_condition.py b/kubernetes/test/test_v1_custom_resource_definition_condition.py deleted file mode 100644 index d824027e8b..0000000000 --- a/kubernetes/test/test_v1_custom_resource_definition_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_definition_condition import V1CustomResourceDefinitionCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceDefinitionCondition(unittest.TestCase): - """V1CustomResourceDefinitionCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceDefinitionCondition(self): - """Test V1CustomResourceDefinitionCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_definition_condition.V1CustomResourceDefinitionCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_definition_list.py b/kubernetes/test/test_v1_custom_resource_definition_list.py deleted file mode 100644 index 5e9cddf265..0000000000 --- a/kubernetes/test/test_v1_custom_resource_definition_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_definition_list import V1CustomResourceDefinitionList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceDefinitionList(unittest.TestCase): - """V1CustomResourceDefinitionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceDefinitionList(self): - """Test V1CustomResourceDefinitionList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_definition_list.V1CustomResourceDefinitionList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_definition_names.py b/kubernetes/test/test_v1_custom_resource_definition_names.py deleted file mode 100644 index 0922493168..0000000000 --- a/kubernetes/test/test_v1_custom_resource_definition_names.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_definition_names import V1CustomResourceDefinitionNames # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceDefinitionNames(unittest.TestCase): - """V1CustomResourceDefinitionNames unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceDefinitionNames(self): - """Test V1CustomResourceDefinitionNames""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_definition_names.V1CustomResourceDefinitionNames() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_definition_spec.py b/kubernetes/test/test_v1_custom_resource_definition_spec.py deleted file mode 100644 index d7b548cc70..0000000000 --- a/kubernetes/test/test_v1_custom_resource_definition_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_definition_spec import V1CustomResourceDefinitionSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceDefinitionSpec(unittest.TestCase): - """V1CustomResourceDefinitionSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceDefinitionSpec(self): - """Test V1CustomResourceDefinitionSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_definition_spec.V1CustomResourceDefinitionSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_definition_status.py b/kubernetes/test/test_v1_custom_resource_definition_status.py deleted file mode 100644 index f52fc2434e..0000000000 --- a/kubernetes/test/test_v1_custom_resource_definition_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_definition_status import V1CustomResourceDefinitionStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceDefinitionStatus(unittest.TestCase): - """V1CustomResourceDefinitionStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceDefinitionStatus(self): - """Test V1CustomResourceDefinitionStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_definition_status.V1CustomResourceDefinitionStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_definition_version.py b/kubernetes/test/test_v1_custom_resource_definition_version.py deleted file mode 100644 index 974e91e3b1..0000000000 --- a/kubernetes/test/test_v1_custom_resource_definition_version.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_definition_version import V1CustomResourceDefinitionVersion # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceDefinitionVersion(unittest.TestCase): - """V1CustomResourceDefinitionVersion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceDefinitionVersion(self): - """Test V1CustomResourceDefinitionVersion""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_definition_version.V1CustomResourceDefinitionVersion() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_subresource_scale.py b/kubernetes/test/test_v1_custom_resource_subresource_scale.py deleted file mode 100644 index 2891509920..0000000000 --- a/kubernetes/test/test_v1_custom_resource_subresource_scale.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_subresource_scale import V1CustomResourceSubresourceScale # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceSubresourceScale(unittest.TestCase): - """V1CustomResourceSubresourceScale unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceSubresourceScale(self): - """Test V1CustomResourceSubresourceScale""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_subresource_scale.V1CustomResourceSubresourceScale() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_subresources.py b/kubernetes/test/test_v1_custom_resource_subresources.py deleted file mode 100644 index f67ff71750..0000000000 --- a/kubernetes/test/test_v1_custom_resource_subresources.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_subresources import V1CustomResourceSubresources # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceSubresources(unittest.TestCase): - """V1CustomResourceSubresources unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceSubresources(self): - """Test V1CustomResourceSubresources""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_subresources.V1CustomResourceSubresources() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_custom_resource_validation.py b/kubernetes/test/test_v1_custom_resource_validation.py deleted file mode 100644 index cd261954c6..0000000000 --- a/kubernetes/test/test_v1_custom_resource_validation.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_custom_resource_validation import V1CustomResourceValidation # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1CustomResourceValidation(unittest.TestCase): - """V1CustomResourceValidation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1CustomResourceValidation(self): - """Test V1CustomResourceValidation""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_custom_resource_validation.V1CustomResourceValidation() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_daemon_endpoint.py b/kubernetes/test/test_v1_daemon_endpoint.py deleted file mode 100644 index dd953f48f3..0000000000 --- a/kubernetes/test/test_v1_daemon_endpoint.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_daemon_endpoint import V1DaemonEndpoint # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DaemonEndpoint(unittest.TestCase): - """V1DaemonEndpoint unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DaemonEndpoint(self): - """Test V1DaemonEndpoint""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_daemon_endpoint.V1DaemonEndpoint() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_daemon_set.py b/kubernetes/test/test_v1_daemon_set.py deleted file mode 100644 index 40d207e792..0000000000 --- a/kubernetes/test/test_v1_daemon_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_daemon_set import V1DaemonSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DaemonSet(unittest.TestCase): - """V1DaemonSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DaemonSet(self): - """Test V1DaemonSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_daemon_set.V1DaemonSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_daemon_set_condition.py b/kubernetes/test/test_v1_daemon_set_condition.py deleted file mode 100644 index 88e7247b66..0000000000 --- a/kubernetes/test/test_v1_daemon_set_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_daemon_set_condition import V1DaemonSetCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DaemonSetCondition(unittest.TestCase): - """V1DaemonSetCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DaemonSetCondition(self): - """Test V1DaemonSetCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_daemon_set_condition.V1DaemonSetCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_daemon_set_list.py b/kubernetes/test/test_v1_daemon_set_list.py deleted file mode 100644 index 4cd1c97415..0000000000 --- a/kubernetes/test/test_v1_daemon_set_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_daemon_set_list import V1DaemonSetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DaemonSetList(unittest.TestCase): - """V1DaemonSetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DaemonSetList(self): - """Test V1DaemonSetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_daemon_set_list.V1DaemonSetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_daemon_set_spec.py b/kubernetes/test/test_v1_daemon_set_spec.py deleted file mode 100644 index f7fb6264dd..0000000000 --- a/kubernetes/test/test_v1_daemon_set_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_daemon_set_spec import V1DaemonSetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DaemonSetSpec(unittest.TestCase): - """V1DaemonSetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DaemonSetSpec(self): - """Test V1DaemonSetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_daemon_set_spec.V1DaemonSetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_daemon_set_status.py b/kubernetes/test/test_v1_daemon_set_status.py deleted file mode 100644 index 02616473df..0000000000 --- a/kubernetes/test/test_v1_daemon_set_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_daemon_set_status import V1DaemonSetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DaemonSetStatus(unittest.TestCase): - """V1DaemonSetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DaemonSetStatus(self): - """Test V1DaemonSetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_daemon_set_status.V1DaemonSetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_daemon_set_update_strategy.py b/kubernetes/test/test_v1_daemon_set_update_strategy.py deleted file mode 100644 index 05d1d813d3..0000000000 --- a/kubernetes/test/test_v1_daemon_set_update_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_daemon_set_update_strategy import V1DaemonSetUpdateStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DaemonSetUpdateStrategy(unittest.TestCase): - """V1DaemonSetUpdateStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DaemonSetUpdateStrategy(self): - """Test V1DaemonSetUpdateStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_daemon_set_update_strategy.V1DaemonSetUpdateStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_delete_options.py b/kubernetes/test/test_v1_delete_options.py deleted file mode 100644 index 1e9228152e..0000000000 --- a/kubernetes/test/test_v1_delete_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_delete_options import V1DeleteOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DeleteOptions(unittest.TestCase): - """V1DeleteOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeleteOptions(self): - """Test V1DeleteOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_delete_options.V1DeleteOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_deployment.py b/kubernetes/test/test_v1_deployment.py deleted file mode 100644 index 01b71c8f5e..0000000000 --- a/kubernetes/test/test_v1_deployment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_deployment import V1Deployment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Deployment(unittest.TestCase): - """V1Deployment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Deployment(self): - """Test V1Deployment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_deployment.V1Deployment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_deployment_condition.py b/kubernetes/test/test_v1_deployment_condition.py deleted file mode 100644 index b357eae1b9..0000000000 --- a/kubernetes/test/test_v1_deployment_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_deployment_condition import V1DeploymentCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DeploymentCondition(unittest.TestCase): - """V1DeploymentCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeploymentCondition(self): - """Test V1DeploymentCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_deployment_condition.V1DeploymentCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_deployment_list.py b/kubernetes/test/test_v1_deployment_list.py deleted file mode 100644 index 9a6f4abe14..0000000000 --- a/kubernetes/test/test_v1_deployment_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_deployment_list import V1DeploymentList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DeploymentList(unittest.TestCase): - """V1DeploymentList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeploymentList(self): - """Test V1DeploymentList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_deployment_list.V1DeploymentList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_deployment_spec.py b/kubernetes/test/test_v1_deployment_spec.py deleted file mode 100644 index a0fc1e3876..0000000000 --- a/kubernetes/test/test_v1_deployment_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DeploymentSpec(unittest.TestCase): - """V1DeploymentSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeploymentSpec(self): - """Test V1DeploymentSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_deployment_spec.V1DeploymentSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_deployment_status.py b/kubernetes/test/test_v1_deployment_status.py deleted file mode 100644 index b547ed4392..0000000000 --- a/kubernetes/test/test_v1_deployment_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DeploymentStatus(unittest.TestCase): - """V1DeploymentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeploymentStatus(self): - """Test V1DeploymentStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_deployment_status.V1DeploymentStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_deployment_strategy.py b/kubernetes/test/test_v1_deployment_strategy.py deleted file mode 100644 index abb027ffaf..0000000000 --- a/kubernetes/test/test_v1_deployment_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DeploymentStrategy(unittest.TestCase): - """V1DeploymentStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DeploymentStrategy(self): - """Test V1DeploymentStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_deployment_strategy.V1DeploymentStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_downward_api_projection.py b/kubernetes/test/test_v1_downward_api_projection.py deleted file mode 100644 index e5f33f46eb..0000000000 --- a/kubernetes/test/test_v1_downward_api_projection.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DownwardAPIProjection(unittest.TestCase): - """V1DownwardAPIProjection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DownwardAPIProjection(self): - """Test V1DownwardAPIProjection""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_downward_api_projection.V1DownwardAPIProjection() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_downward_api_volume_file.py b/kubernetes/test/test_v1_downward_api_volume_file.py deleted file mode 100644 index 0657bf3dc1..0000000000 --- a/kubernetes/test/test_v1_downward_api_volume_file.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DownwardAPIVolumeFile(unittest.TestCase): - """V1DownwardAPIVolumeFile unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DownwardAPIVolumeFile(self): - """Test V1DownwardAPIVolumeFile""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_downward_api_volume_file.V1DownwardAPIVolumeFile() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_downward_api_volume_source.py b/kubernetes/test/test_v1_downward_api_volume_source.py deleted file mode 100644 index 352c0e011f..0000000000 --- a/kubernetes/test/test_v1_downward_api_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1DownwardAPIVolumeSource(unittest.TestCase): - """V1DownwardAPIVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1DownwardAPIVolumeSource(self): - """Test V1DownwardAPIVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_downward_api_volume_source.V1DownwardAPIVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_empty_dir_volume_source.py b/kubernetes/test/test_v1_empty_dir_volume_source.py deleted file mode 100644 index 572ebfe599..0000000000 --- a/kubernetes/test/test_v1_empty_dir_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_empty_dir_volume_source import V1EmptyDirVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EmptyDirVolumeSource(unittest.TestCase): - """V1EmptyDirVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EmptyDirVolumeSource(self): - """Test V1EmptyDirVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_empty_dir_volume_source.V1EmptyDirVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_endpoint_address.py b/kubernetes/test/test_v1_endpoint_address.py deleted file mode 100644 index 7fd1197e1f..0000000000 --- a/kubernetes/test/test_v1_endpoint_address.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_endpoint_address import V1EndpointAddress # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EndpointAddress(unittest.TestCase): - """V1EndpointAddress unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EndpointAddress(self): - """Test V1EndpointAddress""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_endpoint_address.V1EndpointAddress() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_endpoint_port.py b/kubernetes/test/test_v1_endpoint_port.py deleted file mode 100644 index 38730b4e04..0000000000 --- a/kubernetes/test/test_v1_endpoint_port.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_endpoint_port import V1EndpointPort # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EndpointPort(unittest.TestCase): - """V1EndpointPort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EndpointPort(self): - """Test V1EndpointPort""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_endpoint_port.V1EndpointPort() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_endpoint_subset.py b/kubernetes/test/test_v1_endpoint_subset.py deleted file mode 100644 index 4c8d07e8c5..0000000000 --- a/kubernetes/test/test_v1_endpoint_subset.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_endpoint_subset import V1EndpointSubset # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EndpointSubset(unittest.TestCase): - """V1EndpointSubset unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EndpointSubset(self): - """Test V1EndpointSubset""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_endpoint_subset.V1EndpointSubset() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_endpoints.py b/kubernetes/test/test_v1_endpoints.py deleted file mode 100644 index d47fc9377c..0000000000 --- a/kubernetes/test/test_v1_endpoints.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_endpoints import V1Endpoints # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Endpoints(unittest.TestCase): - """V1Endpoints unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Endpoints(self): - """Test V1Endpoints""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_endpoints.V1Endpoints() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_endpoints_list.py b/kubernetes/test/test_v1_endpoints_list.py deleted file mode 100644 index 65f5d235b3..0000000000 --- a/kubernetes/test/test_v1_endpoints_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_endpoints_list import V1EndpointsList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EndpointsList(unittest.TestCase): - """V1EndpointsList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EndpointsList(self): - """Test V1EndpointsList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_endpoints_list.V1EndpointsList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_env_from_source.py b/kubernetes/test/test_v1_env_from_source.py deleted file mode 100644 index 3e340b7f31..0000000000 --- a/kubernetes/test/test_v1_env_from_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_env_from_source import V1EnvFromSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EnvFromSource(unittest.TestCase): - """V1EnvFromSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EnvFromSource(self): - """Test V1EnvFromSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_env_from_source.V1EnvFromSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_env_var.py b/kubernetes/test/test_v1_env_var.py deleted file mode 100644 index 3f863398e9..0000000000 --- a/kubernetes/test/test_v1_env_var.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_env_var import V1EnvVar # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EnvVar(unittest.TestCase): - """V1EnvVar unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EnvVar(self): - """Test V1EnvVar""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_env_var.V1EnvVar() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_env_var_source.py b/kubernetes/test/test_v1_env_var_source.py deleted file mode 100644 index e75f3dbefa..0000000000 --- a/kubernetes/test/test_v1_env_var_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_env_var_source import V1EnvVarSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EnvVarSource(unittest.TestCase): - """V1EnvVarSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EnvVarSource(self): - """Test V1EnvVarSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_env_var_source.V1EnvVarSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_ephemeral_container.py b/kubernetes/test/test_v1_ephemeral_container.py deleted file mode 100644 index b64ff114fd..0000000000 --- a/kubernetes/test/test_v1_ephemeral_container.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_ephemeral_container import V1EphemeralContainer # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EphemeralContainer(unittest.TestCase): - """V1EphemeralContainer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EphemeralContainer(self): - """Test V1EphemeralContainer""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_ephemeral_container.V1EphemeralContainer() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_event.py b/kubernetes/test/test_v1_event.py deleted file mode 100644 index 9819aac9bc..0000000000 --- a/kubernetes/test/test_v1_event.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_event import V1Event # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Event(unittest.TestCase): - """V1Event unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Event(self): - """Test V1Event""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_event.V1Event() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_event_list.py b/kubernetes/test/test_v1_event_list.py deleted file mode 100644 index a5aca92e26..0000000000 --- a/kubernetes/test/test_v1_event_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_event_list import V1EventList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EventList(unittest.TestCase): - """V1EventList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EventList(self): - """Test V1EventList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_event_list.V1EventList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_event_series.py b/kubernetes/test/test_v1_event_series.py deleted file mode 100644 index f79c95e633..0000000000 --- a/kubernetes/test/test_v1_event_series.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_event_series import V1EventSeries # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EventSeries(unittest.TestCase): - """V1EventSeries unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EventSeries(self): - """Test V1EventSeries""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_event_series.V1EventSeries() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_event_source.py b/kubernetes/test/test_v1_event_source.py deleted file mode 100644 index c71c292863..0000000000 --- a/kubernetes/test/test_v1_event_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_event_source import V1EventSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1EventSource(unittest.TestCase): - """V1EventSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1EventSource(self): - """Test V1EventSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_event_source.V1EventSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_exec_action.py b/kubernetes/test/test_v1_exec_action.py deleted file mode 100644 index 4c94db734c..0000000000 --- a/kubernetes/test/test_v1_exec_action.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_exec_action import V1ExecAction # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ExecAction(unittest.TestCase): - """V1ExecAction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ExecAction(self): - """Test V1ExecAction""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_exec_action.V1ExecAction() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_external_documentation.py b/kubernetes/test/test_v1_external_documentation.py deleted file mode 100644 index b4ce713266..0000000000 --- a/kubernetes/test/test_v1_external_documentation.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_external_documentation import V1ExternalDocumentation # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ExternalDocumentation(unittest.TestCase): - """V1ExternalDocumentation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ExternalDocumentation(self): - """Test V1ExternalDocumentation""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_external_documentation.V1ExternalDocumentation() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_fc_volume_source.py b/kubernetes/test/test_v1_fc_volume_source.py deleted file mode 100644 index 40ad7319e9..0000000000 --- a/kubernetes/test/test_v1_fc_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1FCVolumeSource(unittest.TestCase): - """V1FCVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1FCVolumeSource(self): - """Test V1FCVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_fc_volume_source.V1FCVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_flex_persistent_volume_source.py b/kubernetes/test/test_v1_flex_persistent_volume_source.py deleted file mode 100644 index ea5c6b2827..0000000000 --- a/kubernetes/test/test_v1_flex_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1FlexPersistentVolumeSource(unittest.TestCase): - """V1FlexPersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1FlexPersistentVolumeSource(self): - """Test V1FlexPersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_flex_persistent_volume_source.V1FlexPersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_flex_volume_source.py b/kubernetes/test/test_v1_flex_volume_source.py deleted file mode 100644 index 9d53c005ff..0000000000 --- a/kubernetes/test/test_v1_flex_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1FlexVolumeSource(unittest.TestCase): - """V1FlexVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1FlexVolumeSource(self): - """Test V1FlexVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_flex_volume_source.V1FlexVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_flocker_volume_source.py b/kubernetes/test/test_v1_flocker_volume_source.py deleted file mode 100644 index 7ad6c1055a..0000000000 --- a/kubernetes/test/test_v1_flocker_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1FlockerVolumeSource(unittest.TestCase): - """V1FlockerVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1FlockerVolumeSource(self): - """Test V1FlockerVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_flocker_volume_source.V1FlockerVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py b/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py deleted file mode 100644 index 5fea7943b8..0000000000 --- a/kubernetes/test/test_v1_gce_persistent_disk_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_gce_persistent_disk_volume_source import V1GCEPersistentDiskVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1GCEPersistentDiskVolumeSource(unittest.TestCase): - """V1GCEPersistentDiskVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1GCEPersistentDiskVolumeSource(self): - """Test V1GCEPersistentDiskVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_gce_persistent_disk_volume_source.V1GCEPersistentDiskVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_git_repo_volume_source.py b/kubernetes/test/test_v1_git_repo_volume_source.py deleted file mode 100644 index 656931e50a..0000000000 --- a/kubernetes/test/test_v1_git_repo_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_git_repo_volume_source import V1GitRepoVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1GitRepoVolumeSource(unittest.TestCase): - """V1GitRepoVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1GitRepoVolumeSource(self): - """Test V1GitRepoVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_git_repo_volume_source.V1GitRepoVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_glusterfs_persistent_volume_source.py b/kubernetes/test/test_v1_glusterfs_persistent_volume_source.py deleted file mode 100644 index 5a1a7ab2f2..0000000000 --- a/kubernetes/test/test_v1_glusterfs_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_glusterfs_persistent_volume_source import V1GlusterfsPersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1GlusterfsPersistentVolumeSource(unittest.TestCase): - """V1GlusterfsPersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1GlusterfsPersistentVolumeSource(self): - """Test V1GlusterfsPersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_glusterfs_persistent_volume_source.V1GlusterfsPersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_glusterfs_volume_source.py b/kubernetes/test/test_v1_glusterfs_volume_source.py deleted file mode 100644 index 737516532c..0000000000 --- a/kubernetes/test/test_v1_glusterfs_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_glusterfs_volume_source import V1GlusterfsVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1GlusterfsVolumeSource(unittest.TestCase): - """V1GlusterfsVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1GlusterfsVolumeSource(self): - """Test V1GlusterfsVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_glusterfs_volume_source.V1GlusterfsVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_group_version_for_discovery.py b/kubernetes/test/test_v1_group_version_for_discovery.py deleted file mode 100644 index 18c405be7f..0000000000 --- a/kubernetes/test/test_v1_group_version_for_discovery.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_group_version_for_discovery import V1GroupVersionForDiscovery # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1GroupVersionForDiscovery(unittest.TestCase): - """V1GroupVersionForDiscovery unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1GroupVersionForDiscovery(self): - """Test V1GroupVersionForDiscovery""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_group_version_for_discovery.V1GroupVersionForDiscovery() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_handler.py b/kubernetes/test/test_v1_handler.py deleted file mode 100644 index a8b819caeb..0000000000 --- a/kubernetes/test/test_v1_handler.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_handler import V1Handler # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Handler(unittest.TestCase): - """V1Handler unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Handler(self): - """Test V1Handler""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_handler.V1Handler() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler.py deleted file mode 100644 index e434407e6d..0000000000 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_horizontal_pod_autoscaler import V1HorizontalPodAutoscaler # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1HorizontalPodAutoscaler(unittest.TestCase): - """V1HorizontalPodAutoscaler unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HorizontalPodAutoscaler(self): - """Test V1HorizontalPodAutoscaler""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_horizontal_pod_autoscaler.V1HorizontalPodAutoscaler() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py deleted file mode 100644 index c6850fecb9..0000000000 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_horizontal_pod_autoscaler_list import V1HorizontalPodAutoscalerList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1HorizontalPodAutoscalerList(unittest.TestCase): - """V1HorizontalPodAutoscalerList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HorizontalPodAutoscalerList(self): - """Test V1HorizontalPodAutoscalerList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_horizontal_pod_autoscaler_list.V1HorizontalPodAutoscalerList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py deleted file mode 100644 index 068302e134..0000000000 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_horizontal_pod_autoscaler_spec import V1HorizontalPodAutoscalerSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1HorizontalPodAutoscalerSpec(unittest.TestCase): - """V1HorizontalPodAutoscalerSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HorizontalPodAutoscalerSpec(self): - """Test V1HorizontalPodAutoscalerSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_horizontal_pod_autoscaler_spec.V1HorizontalPodAutoscalerSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py deleted file mode 100644 index 4b36585593..0000000000 --- a/kubernetes/test/test_v1_horizontal_pod_autoscaler_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_horizontal_pod_autoscaler_status import V1HorizontalPodAutoscalerStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1HorizontalPodAutoscalerStatus(unittest.TestCase): - """V1HorizontalPodAutoscalerStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HorizontalPodAutoscalerStatus(self): - """Test V1HorizontalPodAutoscalerStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_horizontal_pod_autoscaler_status.V1HorizontalPodAutoscalerStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_host_alias.py b/kubernetes/test/test_v1_host_alias.py deleted file mode 100644 index 77594cd3fa..0000000000 --- a/kubernetes/test/test_v1_host_alias.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_host_alias import V1HostAlias # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1HostAlias(unittest.TestCase): - """V1HostAlias unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HostAlias(self): - """Test V1HostAlias""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_host_alias.V1HostAlias() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_host_path_volume_source.py b/kubernetes/test/test_v1_host_path_volume_source.py deleted file mode 100644 index 4ee23ac1db..0000000000 --- a/kubernetes/test/test_v1_host_path_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_host_path_volume_source import V1HostPathVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1HostPathVolumeSource(unittest.TestCase): - """V1HostPathVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HostPathVolumeSource(self): - """Test V1HostPathVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_host_path_volume_source.V1HostPathVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_http_get_action.py b/kubernetes/test/test_v1_http_get_action.py deleted file mode 100644 index 2c774b7776..0000000000 --- a/kubernetes/test/test_v1_http_get_action.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_http_get_action import V1HTTPGetAction # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1HTTPGetAction(unittest.TestCase): - """V1HTTPGetAction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HTTPGetAction(self): - """Test V1HTTPGetAction""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_http_get_action.V1HTTPGetAction() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_http_header.py b/kubernetes/test/test_v1_http_header.py deleted file mode 100644 index c045f71a13..0000000000 --- a/kubernetes/test/test_v1_http_header.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_http_header import V1HTTPHeader # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1HTTPHeader(unittest.TestCase): - """V1HTTPHeader unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1HTTPHeader(self): - """Test V1HTTPHeader""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_http_header.V1HTTPHeader() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_ip_block.py b/kubernetes/test/test_v1_ip_block.py deleted file mode 100644 index c6906fd3ed..0000000000 --- a/kubernetes/test/test_v1_ip_block.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_ip_block import V1IPBlock # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1IPBlock(unittest.TestCase): - """V1IPBlock unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1IPBlock(self): - """Test V1IPBlock""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_ip_block.V1IPBlock() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_iscsi_persistent_volume_source.py b/kubernetes/test/test_v1_iscsi_persistent_volume_source.py deleted file mode 100644 index c1fc0c1ad4..0000000000 --- a/kubernetes/test/test_v1_iscsi_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_iscsi_persistent_volume_source import V1ISCSIPersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ISCSIPersistentVolumeSource(unittest.TestCase): - """V1ISCSIPersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ISCSIPersistentVolumeSource(self): - """Test V1ISCSIPersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_iscsi_persistent_volume_source.V1ISCSIPersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_iscsi_volume_source.py b/kubernetes/test/test_v1_iscsi_volume_source.py deleted file mode 100644 index c1e6749fd5..0000000000 --- a/kubernetes/test/test_v1_iscsi_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_iscsi_volume_source import V1ISCSIVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ISCSIVolumeSource(unittest.TestCase): - """V1ISCSIVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ISCSIVolumeSource(self): - """Test V1ISCSIVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_iscsi_volume_source.V1ISCSIVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_job.py b/kubernetes/test/test_v1_job.py deleted file mode 100644 index 5c54466cb6..0000000000 --- a/kubernetes/test/test_v1_job.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_job import V1Job # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Job(unittest.TestCase): - """V1Job unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Job(self): - """Test V1Job""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_job.V1Job() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_job_condition.py b/kubernetes/test/test_v1_job_condition.py deleted file mode 100644 index bf0ededd6f..0000000000 --- a/kubernetes/test/test_v1_job_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_job_condition import V1JobCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1JobCondition(unittest.TestCase): - """V1JobCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1JobCondition(self): - """Test V1JobCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_job_condition.V1JobCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_job_list.py b/kubernetes/test/test_v1_job_list.py deleted file mode 100644 index d4979541f1..0000000000 --- a/kubernetes/test/test_v1_job_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_job_list import V1JobList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1JobList(unittest.TestCase): - """V1JobList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1JobList(self): - """Test V1JobList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_job_list.V1JobList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_job_spec.py b/kubernetes/test/test_v1_job_spec.py deleted file mode 100644 index 06f9b35822..0000000000 --- a/kubernetes/test/test_v1_job_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_job_spec import V1JobSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1JobSpec(unittest.TestCase): - """V1JobSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1JobSpec(self): - """Test V1JobSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_job_spec.V1JobSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_job_status.py b/kubernetes/test/test_v1_job_status.py deleted file mode 100644 index aa5949085c..0000000000 --- a/kubernetes/test/test_v1_job_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_job_status import V1JobStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1JobStatus(unittest.TestCase): - """V1JobStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1JobStatus(self): - """Test V1JobStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_job_status.V1JobStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_json_schema_props.py b/kubernetes/test/test_v1_json_schema_props.py deleted file mode 100644 index 55dfe9be99..0000000000 --- a/kubernetes/test/test_v1_json_schema_props.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_json_schema_props import V1JSONSchemaProps # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1JSONSchemaProps(unittest.TestCase): - """V1JSONSchemaProps unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1JSONSchemaProps(self): - """Test V1JSONSchemaProps""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_json_schema_props.V1JSONSchemaProps() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_key_to_path.py b/kubernetes/test/test_v1_key_to_path.py deleted file mode 100644 index 9a91763e1c..0000000000 --- a/kubernetes/test/test_v1_key_to_path.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_key_to_path import V1KeyToPath # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1KeyToPath(unittest.TestCase): - """V1KeyToPath unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1KeyToPath(self): - """Test V1KeyToPath""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_key_to_path.V1KeyToPath() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_label_selector.py b/kubernetes/test/test_v1_label_selector.py deleted file mode 100644 index 79baefd430..0000000000 --- a/kubernetes/test/test_v1_label_selector.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_label_selector import V1LabelSelector # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LabelSelector(unittest.TestCase): - """V1LabelSelector unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LabelSelector(self): - """Test V1LabelSelector""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_label_selector.V1LabelSelector() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_label_selector_requirement.py b/kubernetes/test/test_v1_label_selector_requirement.py deleted file mode 100644 index 4aa3621cc1..0000000000 --- a/kubernetes/test/test_v1_label_selector_requirement.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_label_selector_requirement import V1LabelSelectorRequirement # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LabelSelectorRequirement(unittest.TestCase): - """V1LabelSelectorRequirement unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LabelSelectorRequirement(self): - """Test V1LabelSelectorRequirement""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_label_selector_requirement.V1LabelSelectorRequirement() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_lease.py b/kubernetes/test/test_v1_lease.py deleted file mode 100644 index 362f451de8..0000000000 --- a/kubernetes/test/test_v1_lease.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_lease import V1Lease # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Lease(unittest.TestCase): - """V1Lease unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Lease(self): - """Test V1Lease""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_lease.V1Lease() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_lease_list.py b/kubernetes/test/test_v1_lease_list.py deleted file mode 100644 index 2731bf4426..0000000000 --- a/kubernetes/test/test_v1_lease_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_lease_list import V1LeaseList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LeaseList(unittest.TestCase): - """V1LeaseList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LeaseList(self): - """Test V1LeaseList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_lease_list.V1LeaseList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_lease_spec.py b/kubernetes/test/test_v1_lease_spec.py deleted file mode 100644 index 62c27e5261..0000000000 --- a/kubernetes/test/test_v1_lease_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_lease_spec import V1LeaseSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LeaseSpec(unittest.TestCase): - """V1LeaseSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LeaseSpec(self): - """Test V1LeaseSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_lease_spec.V1LeaseSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_lifecycle.py b/kubernetes/test/test_v1_lifecycle.py deleted file mode 100644 index b3c5511b3c..0000000000 --- a/kubernetes/test/test_v1_lifecycle.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_lifecycle import V1Lifecycle # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Lifecycle(unittest.TestCase): - """V1Lifecycle unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Lifecycle(self): - """Test V1Lifecycle""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_lifecycle.V1Lifecycle() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_limit_range.py b/kubernetes/test/test_v1_limit_range.py deleted file mode 100644 index fddfab0efd..0000000000 --- a/kubernetes/test/test_v1_limit_range.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_limit_range import V1LimitRange # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LimitRange(unittest.TestCase): - """V1LimitRange unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LimitRange(self): - """Test V1LimitRange""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_limit_range.V1LimitRange() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_limit_range_item.py b/kubernetes/test/test_v1_limit_range_item.py deleted file mode 100644 index 835f3e10b9..0000000000 --- a/kubernetes/test/test_v1_limit_range_item.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_limit_range_item import V1LimitRangeItem # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LimitRangeItem(unittest.TestCase): - """V1LimitRangeItem unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LimitRangeItem(self): - """Test V1LimitRangeItem""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_limit_range_item.V1LimitRangeItem() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_limit_range_list.py b/kubernetes/test/test_v1_limit_range_list.py deleted file mode 100644 index 21477d9009..0000000000 --- a/kubernetes/test/test_v1_limit_range_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_limit_range_list import V1LimitRangeList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LimitRangeList(unittest.TestCase): - """V1LimitRangeList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LimitRangeList(self): - """Test V1LimitRangeList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_limit_range_list.V1LimitRangeList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_limit_range_spec.py b/kubernetes/test/test_v1_limit_range_spec.py deleted file mode 100644 index 98dc9652e5..0000000000 --- a/kubernetes/test/test_v1_limit_range_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_limit_range_spec import V1LimitRangeSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LimitRangeSpec(unittest.TestCase): - """V1LimitRangeSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LimitRangeSpec(self): - """Test V1LimitRangeSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_limit_range_spec.V1LimitRangeSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_list_meta.py b/kubernetes/test/test_v1_list_meta.py deleted file mode 100644 index 1fdc56fedd..0000000000 --- a/kubernetes/test/test_v1_list_meta.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_list_meta import V1ListMeta # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ListMeta(unittest.TestCase): - """V1ListMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ListMeta(self): - """Test V1ListMeta""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_list_meta.V1ListMeta() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_load_balancer_ingress.py b/kubernetes/test/test_v1_load_balancer_ingress.py deleted file mode 100644 index da3a70ce53..0000000000 --- a/kubernetes/test/test_v1_load_balancer_ingress.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_load_balancer_ingress import V1LoadBalancerIngress # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LoadBalancerIngress(unittest.TestCase): - """V1LoadBalancerIngress unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LoadBalancerIngress(self): - """Test V1LoadBalancerIngress""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_load_balancer_ingress.V1LoadBalancerIngress() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_load_balancer_status.py b/kubernetes/test/test_v1_load_balancer_status.py deleted file mode 100644 index 04f8de9c44..0000000000 --- a/kubernetes/test/test_v1_load_balancer_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_load_balancer_status import V1LoadBalancerStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LoadBalancerStatus(unittest.TestCase): - """V1LoadBalancerStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LoadBalancerStatus(self): - """Test V1LoadBalancerStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_load_balancer_status.V1LoadBalancerStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_local_object_reference.py b/kubernetes/test/test_v1_local_object_reference.py deleted file mode 100644 index d5ad2d5794..0000000000 --- a/kubernetes/test/test_v1_local_object_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_local_object_reference import V1LocalObjectReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LocalObjectReference(unittest.TestCase): - """V1LocalObjectReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LocalObjectReference(self): - """Test V1LocalObjectReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_local_object_reference.V1LocalObjectReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_local_subject_access_review.py b/kubernetes/test/test_v1_local_subject_access_review.py deleted file mode 100644 index 37f1cdbb37..0000000000 --- a/kubernetes/test/test_v1_local_subject_access_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_local_subject_access_review import V1LocalSubjectAccessReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LocalSubjectAccessReview(unittest.TestCase): - """V1LocalSubjectAccessReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LocalSubjectAccessReview(self): - """Test V1LocalSubjectAccessReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_local_subject_access_review.V1LocalSubjectAccessReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_local_volume_source.py b/kubernetes/test/test_v1_local_volume_source.py deleted file mode 100644 index c963df5a63..0000000000 --- a/kubernetes/test/test_v1_local_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_local_volume_source import V1LocalVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1LocalVolumeSource(unittest.TestCase): - """V1LocalVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1LocalVolumeSource(self): - """Test V1LocalVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_local_volume_source.V1LocalVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_managed_fields_entry.py b/kubernetes/test/test_v1_managed_fields_entry.py deleted file mode 100644 index ba6ae2cb03..0000000000 --- a/kubernetes/test/test_v1_managed_fields_entry.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_managed_fields_entry import V1ManagedFieldsEntry # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ManagedFieldsEntry(unittest.TestCase): - """V1ManagedFieldsEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ManagedFieldsEntry(self): - """Test V1ManagedFieldsEntry""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_managed_fields_entry.V1ManagedFieldsEntry() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_mutating_webhook.py b/kubernetes/test/test_v1_mutating_webhook.py deleted file mode 100644 index 6d922cdd45..0000000000 --- a/kubernetes/test/test_v1_mutating_webhook.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_mutating_webhook import V1MutatingWebhook # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1MutatingWebhook(unittest.TestCase): - """V1MutatingWebhook unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1MutatingWebhook(self): - """Test V1MutatingWebhook""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_mutating_webhook.V1MutatingWebhook() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_mutating_webhook_configuration.py b/kubernetes/test/test_v1_mutating_webhook_configuration.py deleted file mode 100644 index 008841252d..0000000000 --- a/kubernetes/test/test_v1_mutating_webhook_configuration.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_mutating_webhook_configuration import V1MutatingWebhookConfiguration # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1MutatingWebhookConfiguration(unittest.TestCase): - """V1MutatingWebhookConfiguration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1MutatingWebhookConfiguration(self): - """Test V1MutatingWebhookConfiguration""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_mutating_webhook_configuration.V1MutatingWebhookConfiguration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_mutating_webhook_configuration_list.py b/kubernetes/test/test_v1_mutating_webhook_configuration_list.py deleted file mode 100644 index 79aa5a62df..0000000000 --- a/kubernetes/test/test_v1_mutating_webhook_configuration_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_mutating_webhook_configuration_list import V1MutatingWebhookConfigurationList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1MutatingWebhookConfigurationList(unittest.TestCase): - """V1MutatingWebhookConfigurationList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1MutatingWebhookConfigurationList(self): - """Test V1MutatingWebhookConfigurationList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_mutating_webhook_configuration_list.V1MutatingWebhookConfigurationList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_namespace.py b/kubernetes/test/test_v1_namespace.py deleted file mode 100644 index e9a4b9b839..0000000000 --- a/kubernetes/test/test_v1_namespace.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_namespace import V1Namespace # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Namespace(unittest.TestCase): - """V1Namespace unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Namespace(self): - """Test V1Namespace""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_namespace.V1Namespace() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_namespace_condition.py b/kubernetes/test/test_v1_namespace_condition.py deleted file mode 100644 index fd78df60dc..0000000000 --- a/kubernetes/test/test_v1_namespace_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_namespace_condition import V1NamespaceCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NamespaceCondition(unittest.TestCase): - """V1NamespaceCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NamespaceCondition(self): - """Test V1NamespaceCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_namespace_condition.V1NamespaceCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_namespace_list.py b/kubernetes/test/test_v1_namespace_list.py deleted file mode 100644 index 5a85051114..0000000000 --- a/kubernetes/test/test_v1_namespace_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_namespace_list import V1NamespaceList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NamespaceList(unittest.TestCase): - """V1NamespaceList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NamespaceList(self): - """Test V1NamespaceList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_namespace_list.V1NamespaceList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_namespace_spec.py b/kubernetes/test/test_v1_namespace_spec.py deleted file mode 100644 index 6368192f02..0000000000 --- a/kubernetes/test/test_v1_namespace_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NamespaceSpec(unittest.TestCase): - """V1NamespaceSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NamespaceSpec(self): - """Test V1NamespaceSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_namespace_spec.V1NamespaceSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_namespace_status.py b/kubernetes/test/test_v1_namespace_status.py deleted file mode 100644 index 5be0465e2e..0000000000 --- a/kubernetes/test/test_v1_namespace_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NamespaceStatus(unittest.TestCase): - """V1NamespaceStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NamespaceStatus(self): - """Test V1NamespaceStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_namespace_status.V1NamespaceStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_network_policy.py b/kubernetes/test/test_v1_network_policy.py deleted file mode 100644 index 5ed0fdb5f5..0000000000 --- a/kubernetes/test/test_v1_network_policy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_network_policy import V1NetworkPolicy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NetworkPolicy(unittest.TestCase): - """V1NetworkPolicy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NetworkPolicy(self): - """Test V1NetworkPolicy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_network_policy.V1NetworkPolicy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_network_policy_egress_rule.py b/kubernetes/test/test_v1_network_policy_egress_rule.py deleted file mode 100644 index a32f6cea79..0000000000 --- a/kubernetes/test/test_v1_network_policy_egress_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NetworkPolicyEgressRule(unittest.TestCase): - """V1NetworkPolicyEgressRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NetworkPolicyEgressRule(self): - """Test V1NetworkPolicyEgressRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_network_policy_egress_rule.V1NetworkPolicyEgressRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_network_policy_ingress_rule.py b/kubernetes/test/test_v1_network_policy_ingress_rule.py deleted file mode 100644 index 1a14902b02..0000000000 --- a/kubernetes/test/test_v1_network_policy_ingress_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NetworkPolicyIngressRule(unittest.TestCase): - """V1NetworkPolicyIngressRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NetworkPolicyIngressRule(self): - """Test V1NetworkPolicyIngressRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_network_policy_ingress_rule.V1NetworkPolicyIngressRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_network_policy_list.py b/kubernetes/test/test_v1_network_policy_list.py deleted file mode 100644 index 0ea7012da2..0000000000 --- a/kubernetes/test/test_v1_network_policy_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_network_policy_list import V1NetworkPolicyList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NetworkPolicyList(unittest.TestCase): - """V1NetworkPolicyList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NetworkPolicyList(self): - """Test V1NetworkPolicyList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_network_policy_list.V1NetworkPolicyList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_network_policy_peer.py b/kubernetes/test/test_v1_network_policy_peer.py deleted file mode 100644 index 768aa96255..0000000000 --- a/kubernetes/test/test_v1_network_policy_peer.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_network_policy_peer import V1NetworkPolicyPeer # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NetworkPolicyPeer(unittest.TestCase): - """V1NetworkPolicyPeer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NetworkPolicyPeer(self): - """Test V1NetworkPolicyPeer""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_network_policy_peer.V1NetworkPolicyPeer() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_network_policy_port.py b/kubernetes/test/test_v1_network_policy_port.py deleted file mode 100644 index 507d1c7392..0000000000 --- a/kubernetes/test/test_v1_network_policy_port.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_network_policy_port import V1NetworkPolicyPort # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NetworkPolicyPort(unittest.TestCase): - """V1NetworkPolicyPort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NetworkPolicyPort(self): - """Test V1NetworkPolicyPort""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_network_policy_port.V1NetworkPolicyPort() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_network_policy_spec.py b/kubernetes/test/test_v1_network_policy_spec.py deleted file mode 100644 index e43d53491e..0000000000 --- a/kubernetes/test/test_v1_network_policy_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_network_policy_spec import V1NetworkPolicySpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NetworkPolicySpec(unittest.TestCase): - """V1NetworkPolicySpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NetworkPolicySpec(self): - """Test V1NetworkPolicySpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_network_policy_spec.V1NetworkPolicySpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_nfs_volume_source.py b/kubernetes/test/test_v1_nfs_volume_source.py deleted file mode 100644 index 758d954f6f..0000000000 --- a/kubernetes/test/test_v1_nfs_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_nfs_volume_source import V1NFSVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NFSVolumeSource(unittest.TestCase): - """V1NFSVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NFSVolumeSource(self): - """Test V1NFSVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_nfs_volume_source.V1NFSVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node.py b/kubernetes/test/test_v1_node.py deleted file mode 100644 index 7379e14c91..0000000000 --- a/kubernetes/test/test_v1_node.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node import V1Node # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Node(unittest.TestCase): - """V1Node unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Node(self): - """Test V1Node""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node.V1Node() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_address.py b/kubernetes/test/test_v1_node_address.py deleted file mode 100644 index d13ada06d2..0000000000 --- a/kubernetes/test/test_v1_node_address.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_address import V1NodeAddress # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeAddress(unittest.TestCase): - """V1NodeAddress unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeAddress(self): - """Test V1NodeAddress""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_address.V1NodeAddress() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_affinity.py b/kubernetes/test/test_v1_node_affinity.py deleted file mode 100644 index 13848596ea..0000000000 --- a/kubernetes/test/test_v1_node_affinity.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_affinity import V1NodeAffinity # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeAffinity(unittest.TestCase): - """V1NodeAffinity unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeAffinity(self): - """Test V1NodeAffinity""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_affinity.V1NodeAffinity() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_condition.py b/kubernetes/test/test_v1_node_condition.py deleted file mode 100644 index 82d9ed6443..0000000000 --- a/kubernetes/test/test_v1_node_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_condition import V1NodeCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeCondition(unittest.TestCase): - """V1NodeCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeCondition(self): - """Test V1NodeCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_condition.V1NodeCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_config_source.py b/kubernetes/test/test_v1_node_config_source.py deleted file mode 100644 index 4ad0119cac..0000000000 --- a/kubernetes/test/test_v1_node_config_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_config_source import V1NodeConfigSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeConfigSource(unittest.TestCase): - """V1NodeConfigSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeConfigSource(self): - """Test V1NodeConfigSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_config_source.V1NodeConfigSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_config_status.py b/kubernetes/test/test_v1_node_config_status.py deleted file mode 100644 index 068f43cbde..0000000000 --- a/kubernetes/test/test_v1_node_config_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_config_status import V1NodeConfigStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeConfigStatus(unittest.TestCase): - """V1NodeConfigStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeConfigStatus(self): - """Test V1NodeConfigStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_config_status.V1NodeConfigStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_daemon_endpoints.py b/kubernetes/test/test_v1_node_daemon_endpoints.py deleted file mode 100644 index 6de8019f5b..0000000000 --- a/kubernetes/test/test_v1_node_daemon_endpoints.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_daemon_endpoints import V1NodeDaemonEndpoints # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeDaemonEndpoints(unittest.TestCase): - """V1NodeDaemonEndpoints unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeDaemonEndpoints(self): - """Test V1NodeDaemonEndpoints""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_daemon_endpoints.V1NodeDaemonEndpoints() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_list.py b/kubernetes/test/test_v1_node_list.py deleted file mode 100644 index 25cb750fde..0000000000 --- a/kubernetes/test/test_v1_node_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_list import V1NodeList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeList(unittest.TestCase): - """V1NodeList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeList(self): - """Test V1NodeList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_list.V1NodeList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_selector.py b/kubernetes/test/test_v1_node_selector.py deleted file mode 100644 index be6908d1d2..0000000000 --- a/kubernetes/test/test_v1_node_selector.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_selector import V1NodeSelector # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeSelector(unittest.TestCase): - """V1NodeSelector unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeSelector(self): - """Test V1NodeSelector""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_selector.V1NodeSelector() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_selector_requirement.py b/kubernetes/test/test_v1_node_selector_requirement.py deleted file mode 100644 index ed260bd339..0000000000 --- a/kubernetes/test/test_v1_node_selector_requirement.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_selector_requirement import V1NodeSelectorRequirement # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeSelectorRequirement(unittest.TestCase): - """V1NodeSelectorRequirement unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeSelectorRequirement(self): - """Test V1NodeSelectorRequirement""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_selector_requirement.V1NodeSelectorRequirement() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_selector_term.py b/kubernetes/test/test_v1_node_selector_term.py deleted file mode 100644 index fa44f5cb99..0000000000 --- a/kubernetes/test/test_v1_node_selector_term.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_selector_term import V1NodeSelectorTerm # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeSelectorTerm(unittest.TestCase): - """V1NodeSelectorTerm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeSelectorTerm(self): - """Test V1NodeSelectorTerm""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_selector_term.V1NodeSelectorTerm() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_spec.py b/kubernetes/test/test_v1_node_spec.py deleted file mode 100644 index d2a2a51825..0000000000 --- a/kubernetes/test/test_v1_node_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_spec import V1NodeSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeSpec(unittest.TestCase): - """V1NodeSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeSpec(self): - """Test V1NodeSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_spec.V1NodeSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_status.py b/kubernetes/test/test_v1_node_status.py deleted file mode 100644 index 5e66ada064..0000000000 --- a/kubernetes/test/test_v1_node_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_status import V1NodeStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeStatus(unittest.TestCase): - """V1NodeStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeStatus(self): - """Test V1NodeStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_status.V1NodeStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_node_system_info.py b/kubernetes/test/test_v1_node_system_info.py deleted file mode 100644 index f52543e685..0000000000 --- a/kubernetes/test/test_v1_node_system_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_node_system_info import V1NodeSystemInfo # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NodeSystemInfo(unittest.TestCase): - """V1NodeSystemInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NodeSystemInfo(self): - """Test V1NodeSystemInfo""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_node_system_info.V1NodeSystemInfo() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_non_resource_attributes.py b/kubernetes/test/test_v1_non_resource_attributes.py deleted file mode 100644 index 74ed2fe6d5..0000000000 --- a/kubernetes/test/test_v1_non_resource_attributes.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_non_resource_attributes import V1NonResourceAttributes # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NonResourceAttributes(unittest.TestCase): - """V1NonResourceAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NonResourceAttributes(self): - """Test V1NonResourceAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_non_resource_attributes.V1NonResourceAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_non_resource_rule.py b/kubernetes/test/test_v1_non_resource_rule.py deleted file mode 100644 index 5e7383bbf0..0000000000 --- a/kubernetes/test/test_v1_non_resource_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_non_resource_rule import V1NonResourceRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1NonResourceRule(unittest.TestCase): - """V1NonResourceRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1NonResourceRule(self): - """Test V1NonResourceRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_non_resource_rule.V1NonResourceRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_object_field_selector.py b/kubernetes/test/test_v1_object_field_selector.py deleted file mode 100644 index 05aae944d3..0000000000 --- a/kubernetes/test/test_v1_object_field_selector.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ObjectFieldSelector(unittest.TestCase): - """V1ObjectFieldSelector unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ObjectFieldSelector(self): - """Test V1ObjectFieldSelector""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_object_field_selector.V1ObjectFieldSelector() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_object_meta.py b/kubernetes/test/test_v1_object_meta.py deleted file mode 100644 index 1814b88040..0000000000 --- a/kubernetes/test/test_v1_object_meta.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_object_meta import V1ObjectMeta # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ObjectMeta(unittest.TestCase): - """V1ObjectMeta unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ObjectMeta(self): - """Test V1ObjectMeta""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_object_meta.V1ObjectMeta() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_object_reference.py b/kubernetes/test/test_v1_object_reference.py deleted file mode 100644 index af2e91b8b5..0000000000 --- a/kubernetes/test/test_v1_object_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_object_reference import V1ObjectReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ObjectReference(unittest.TestCase): - """V1ObjectReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ObjectReference(self): - """Test V1ObjectReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_object_reference.V1ObjectReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_owner_reference.py b/kubernetes/test/test_v1_owner_reference.py deleted file mode 100644 index 8e07756ad7..0000000000 --- a/kubernetes/test/test_v1_owner_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_owner_reference import V1OwnerReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1OwnerReference(unittest.TestCase): - """V1OwnerReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1OwnerReference(self): - """Test V1OwnerReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_owner_reference.V1OwnerReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume.py b/kubernetes/test/test_v1_persistent_volume.py deleted file mode 100644 index cffec4e064..0000000000 --- a/kubernetes/test/test_v1_persistent_volume.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume import V1PersistentVolume # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolume(unittest.TestCase): - """V1PersistentVolume unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolume(self): - """Test V1PersistentVolume""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume.V1PersistentVolume() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume_claim.py b/kubernetes/test/test_v1_persistent_volume_claim.py deleted file mode 100644 index 0edb6f120e..0000000000 --- a/kubernetes/test/test_v1_persistent_volume_claim.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume_claim import V1PersistentVolumeClaim # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolumeClaim(unittest.TestCase): - """V1PersistentVolumeClaim unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaim(self): - """Test V1PersistentVolumeClaim""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume_claim.V1PersistentVolumeClaim() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume_claim_condition.py b/kubernetes/test/test_v1_persistent_volume_claim_condition.py deleted file mode 100644 index 2493dfb30f..0000000000 --- a/kubernetes/test/test_v1_persistent_volume_claim_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume_claim_condition import V1PersistentVolumeClaimCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolumeClaimCondition(unittest.TestCase): - """V1PersistentVolumeClaimCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaimCondition(self): - """Test V1PersistentVolumeClaimCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume_claim_condition.V1PersistentVolumeClaimCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume_claim_list.py b/kubernetes/test/test_v1_persistent_volume_claim_list.py deleted file mode 100644 index b234bc2351..0000000000 --- a/kubernetes/test/test_v1_persistent_volume_claim_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume_claim_list import V1PersistentVolumeClaimList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolumeClaimList(unittest.TestCase): - """V1PersistentVolumeClaimList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaimList(self): - """Test V1PersistentVolumeClaimList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume_claim_list.V1PersistentVolumeClaimList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume_claim_spec.py b/kubernetes/test/test_v1_persistent_volume_claim_spec.py deleted file mode 100644 index ff4c51fe2e..0000000000 --- a/kubernetes/test/test_v1_persistent_volume_claim_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume_claim_spec import V1PersistentVolumeClaimSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolumeClaimSpec(unittest.TestCase): - """V1PersistentVolumeClaimSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaimSpec(self): - """Test V1PersistentVolumeClaimSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume_claim_spec.V1PersistentVolumeClaimSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume_claim_status.py b/kubernetes/test/test_v1_persistent_volume_claim_status.py deleted file mode 100644 index c307a6a827..0000000000 --- a/kubernetes/test/test_v1_persistent_volume_claim_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume_claim_status import V1PersistentVolumeClaimStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolumeClaimStatus(unittest.TestCase): - """V1PersistentVolumeClaimStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaimStatus(self): - """Test V1PersistentVolumeClaimStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume_claim_status.V1PersistentVolumeClaimStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py b/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py deleted file mode 100644 index fcfef16b9e..0000000000 --- a/kubernetes/test/test_v1_persistent_volume_claim_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume_claim_volume_source import V1PersistentVolumeClaimVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolumeClaimVolumeSource(unittest.TestCase): - """V1PersistentVolumeClaimVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeClaimVolumeSource(self): - """Test V1PersistentVolumeClaimVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume_claim_volume_source.V1PersistentVolumeClaimVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume_list.py b/kubernetes/test/test_v1_persistent_volume_list.py deleted file mode 100644 index 052692b05f..0000000000 --- a/kubernetes/test/test_v1_persistent_volume_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume_list import V1PersistentVolumeList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolumeList(unittest.TestCase): - """V1PersistentVolumeList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeList(self): - """Test V1PersistentVolumeList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume_list.V1PersistentVolumeList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume_spec.py b/kubernetes/test/test_v1_persistent_volume_spec.py deleted file mode 100644 index 49ea489940..0000000000 --- a/kubernetes/test/test_v1_persistent_volume_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume_spec import V1PersistentVolumeSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolumeSpec(unittest.TestCase): - """V1PersistentVolumeSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeSpec(self): - """Test V1PersistentVolumeSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume_spec.V1PersistentVolumeSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_persistent_volume_status.py b/kubernetes/test/test_v1_persistent_volume_status.py deleted file mode 100644 index 816e3085f2..0000000000 --- a/kubernetes/test/test_v1_persistent_volume_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_persistent_volume_status import V1PersistentVolumeStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PersistentVolumeStatus(unittest.TestCase): - """V1PersistentVolumeStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PersistentVolumeStatus(self): - """Test V1PersistentVolumeStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_persistent_volume_status.V1PersistentVolumeStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py b/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py deleted file mode 100644 index b6e5237b2f..0000000000 --- a/kubernetes/test/test_v1_photon_persistent_disk_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_photon_persistent_disk_volume_source import V1PhotonPersistentDiskVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PhotonPersistentDiskVolumeSource(unittest.TestCase): - """V1PhotonPersistentDiskVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PhotonPersistentDiskVolumeSource(self): - """Test V1PhotonPersistentDiskVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_photon_persistent_disk_volume_source.V1PhotonPersistentDiskVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod.py b/kubernetes/test/test_v1_pod.py deleted file mode 100644 index aad013fc1b..0000000000 --- a/kubernetes/test/test_v1_pod.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod import V1Pod # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Pod(unittest.TestCase): - """V1Pod unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Pod(self): - """Test V1Pod""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod.V1Pod() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_affinity.py b/kubernetes/test/test_v1_pod_affinity.py deleted file mode 100644 index b575386b9b..0000000000 --- a/kubernetes/test/test_v1_pod_affinity.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_affinity import V1PodAffinity # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodAffinity(unittest.TestCase): - """V1PodAffinity unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodAffinity(self): - """Test V1PodAffinity""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_affinity.V1PodAffinity() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_affinity_term.py b/kubernetes/test/test_v1_pod_affinity_term.py deleted file mode 100644 index ed1fddc595..0000000000 --- a/kubernetes/test/test_v1_pod_affinity_term.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodAffinityTerm(unittest.TestCase): - """V1PodAffinityTerm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodAffinityTerm(self): - """Test V1PodAffinityTerm""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_affinity_term.V1PodAffinityTerm() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_anti_affinity.py b/kubernetes/test/test_v1_pod_anti_affinity.py deleted file mode 100644 index cf5e9830c7..0000000000 --- a/kubernetes/test/test_v1_pod_anti_affinity.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodAntiAffinity(unittest.TestCase): - """V1PodAntiAffinity unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodAntiAffinity(self): - """Test V1PodAntiAffinity""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_anti_affinity.V1PodAntiAffinity() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_condition.py b/kubernetes/test/test_v1_pod_condition.py deleted file mode 100644 index a9ebcce06b..0000000000 --- a/kubernetes/test/test_v1_pod_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_condition import V1PodCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodCondition(unittest.TestCase): - """V1PodCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodCondition(self): - """Test V1PodCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_condition.V1PodCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_dns_config.py b/kubernetes/test/test_v1_pod_dns_config.py deleted file mode 100644 index 4ea966ed7a..0000000000 --- a/kubernetes/test/test_v1_pod_dns_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodDNSConfig(unittest.TestCase): - """V1PodDNSConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodDNSConfig(self): - """Test V1PodDNSConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_dns_config.V1PodDNSConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_dns_config_option.py b/kubernetes/test/test_v1_pod_dns_config_option.py deleted file mode 100644 index e06f2b19fc..0000000000 --- a/kubernetes/test/test_v1_pod_dns_config_option.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodDNSConfigOption(unittest.TestCase): - """V1PodDNSConfigOption unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodDNSConfigOption(self): - """Test V1PodDNSConfigOption""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_dns_config_option.V1PodDNSConfigOption() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_ip.py b/kubernetes/test/test_v1_pod_ip.py deleted file mode 100644 index 65084c4181..0000000000 --- a/kubernetes/test/test_v1_pod_ip.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_ip import V1PodIP # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodIP(unittest.TestCase): - """V1PodIP unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodIP(self): - """Test V1PodIP""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_ip.V1PodIP() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_list.py b/kubernetes/test/test_v1_pod_list.py deleted file mode 100644 index 90f3cf1cc6..0000000000 --- a/kubernetes/test/test_v1_pod_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_list import V1PodList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodList(unittest.TestCase): - """V1PodList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodList(self): - """Test V1PodList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_list.V1PodList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_readiness_gate.py b/kubernetes/test/test_v1_pod_readiness_gate.py deleted file mode 100644 index 294e1a272c..0000000000 --- a/kubernetes/test/test_v1_pod_readiness_gate.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_readiness_gate import V1PodReadinessGate # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodReadinessGate(unittest.TestCase): - """V1PodReadinessGate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodReadinessGate(self): - """Test V1PodReadinessGate""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_readiness_gate.V1PodReadinessGate() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_security_context.py b/kubernetes/test/test_v1_pod_security_context.py deleted file mode 100644 index 6de0e01d5e..0000000000 --- a/kubernetes/test/test_v1_pod_security_context.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_security_context import V1PodSecurityContext # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodSecurityContext(unittest.TestCase): - """V1PodSecurityContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodSecurityContext(self): - """Test V1PodSecurityContext""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_security_context.V1PodSecurityContext() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_spec.py b/kubernetes/test/test_v1_pod_spec.py deleted file mode 100644 index e3ba6e05cf..0000000000 --- a/kubernetes/test/test_v1_pod_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_spec import V1PodSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodSpec(unittest.TestCase): - """V1PodSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodSpec(self): - """Test V1PodSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_spec.V1PodSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_status.py b/kubernetes/test/test_v1_pod_status.py deleted file mode 100644 index 5c4052f63c..0000000000 --- a/kubernetes/test/test_v1_pod_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_status import V1PodStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodStatus(unittest.TestCase): - """V1PodStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodStatus(self): - """Test V1PodStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_status.V1PodStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_template.py b/kubernetes/test/test_v1_pod_template.py deleted file mode 100644 index 511d4d708d..0000000000 --- a/kubernetes/test/test_v1_pod_template.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_template import V1PodTemplate # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodTemplate(unittest.TestCase): - """V1PodTemplate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodTemplate(self): - """Test V1PodTemplate""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_template.V1PodTemplate() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_template_list.py b/kubernetes/test/test_v1_pod_template_list.py deleted file mode 100644 index 557ae058ae..0000000000 --- a/kubernetes/test/test_v1_pod_template_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_template_list import V1PodTemplateList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodTemplateList(unittest.TestCase): - """V1PodTemplateList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodTemplateList(self): - """Test V1PodTemplateList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_template_list.V1PodTemplateList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_pod_template_spec.py b/kubernetes/test/test_v1_pod_template_spec.py deleted file mode 100644 index ad9523b64c..0000000000 --- a/kubernetes/test/test_v1_pod_template_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_pod_template_spec import V1PodTemplateSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PodTemplateSpec(unittest.TestCase): - """V1PodTemplateSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PodTemplateSpec(self): - """Test V1PodTemplateSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_pod_template_spec.V1PodTemplateSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_policy_rule.py b/kubernetes/test/test_v1_policy_rule.py deleted file mode 100644 index 467f02b6f6..0000000000 --- a/kubernetes/test/test_v1_policy_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_policy_rule import V1PolicyRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PolicyRule(unittest.TestCase): - """V1PolicyRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PolicyRule(self): - """Test V1PolicyRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_policy_rule.V1PolicyRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_portworx_volume_source.py b/kubernetes/test/test_v1_portworx_volume_source.py deleted file mode 100644 index 94b56aadda..0000000000 --- a/kubernetes/test/test_v1_portworx_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_portworx_volume_source import V1PortworxVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PortworxVolumeSource(unittest.TestCase): - """V1PortworxVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PortworxVolumeSource(self): - """Test V1PortworxVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_portworx_volume_source.V1PortworxVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_preconditions.py b/kubernetes/test/test_v1_preconditions.py deleted file mode 100644 index 160f7ab904..0000000000 --- a/kubernetes/test/test_v1_preconditions.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_preconditions import V1Preconditions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Preconditions(unittest.TestCase): - """V1Preconditions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Preconditions(self): - """Test V1Preconditions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_preconditions.V1Preconditions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_preferred_scheduling_term.py b/kubernetes/test/test_v1_preferred_scheduling_term.py deleted file mode 100644 index 99bec70e26..0000000000 --- a/kubernetes/test/test_v1_preferred_scheduling_term.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_preferred_scheduling_term import V1PreferredSchedulingTerm # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PreferredSchedulingTerm(unittest.TestCase): - """V1PreferredSchedulingTerm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PreferredSchedulingTerm(self): - """Test V1PreferredSchedulingTerm""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_preferred_scheduling_term.V1PreferredSchedulingTerm() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_priority_class.py b/kubernetes/test/test_v1_priority_class.py deleted file mode 100644 index 9147a79d1f..0000000000 --- a/kubernetes/test/test_v1_priority_class.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_priority_class import V1PriorityClass # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PriorityClass(unittest.TestCase): - """V1PriorityClass unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PriorityClass(self): - """Test V1PriorityClass""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_priority_class.V1PriorityClass() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_priority_class_list.py b/kubernetes/test/test_v1_priority_class_list.py deleted file mode 100644 index ad94773252..0000000000 --- a/kubernetes/test/test_v1_priority_class_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_priority_class_list import V1PriorityClassList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1PriorityClassList(unittest.TestCase): - """V1PriorityClassList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1PriorityClassList(self): - """Test V1PriorityClassList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_priority_class_list.V1PriorityClassList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_probe.py b/kubernetes/test/test_v1_probe.py deleted file mode 100644 index 15e1d619cc..0000000000 --- a/kubernetes/test/test_v1_probe.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_probe import V1Probe # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Probe(unittest.TestCase): - """V1Probe unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Probe(self): - """Test V1Probe""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_probe.V1Probe() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_projected_volume_source.py b/kubernetes/test/test_v1_projected_volume_source.py deleted file mode 100644 index 6406b2a6d2..0000000000 --- a/kubernetes/test/test_v1_projected_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_projected_volume_source import V1ProjectedVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ProjectedVolumeSource(unittest.TestCase): - """V1ProjectedVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ProjectedVolumeSource(self): - """Test V1ProjectedVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_projected_volume_source.V1ProjectedVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_quobyte_volume_source.py b/kubernetes/test/test_v1_quobyte_volume_source.py deleted file mode 100644 index 6375b5f648..0000000000 --- a/kubernetes/test/test_v1_quobyte_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_quobyte_volume_source import V1QuobyteVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1QuobyteVolumeSource(unittest.TestCase): - """V1QuobyteVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1QuobyteVolumeSource(self): - """Test V1QuobyteVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_quobyte_volume_source.V1QuobyteVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_rbd_persistent_volume_source.py b/kubernetes/test/test_v1_rbd_persistent_volume_source.py deleted file mode 100644 index c96f7d7335..0000000000 --- a/kubernetes/test/test_v1_rbd_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_rbd_persistent_volume_source import V1RBDPersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RBDPersistentVolumeSource(unittest.TestCase): - """V1RBDPersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RBDPersistentVolumeSource(self): - """Test V1RBDPersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_rbd_persistent_volume_source.V1RBDPersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_rbd_volume_source.py b/kubernetes/test/test_v1_rbd_volume_source.py deleted file mode 100644 index 73caf5d516..0000000000 --- a/kubernetes/test/test_v1_rbd_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_rbd_volume_source import V1RBDVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RBDVolumeSource(unittest.TestCase): - """V1RBDVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RBDVolumeSource(self): - """Test V1RBDVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_rbd_volume_source.V1RBDVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replica_set.py b/kubernetes/test/test_v1_replica_set.py deleted file mode 100644 index 2281aebb03..0000000000 --- a/kubernetes/test/test_v1_replica_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replica_set import V1ReplicaSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicaSet(unittest.TestCase): - """V1ReplicaSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicaSet(self): - """Test V1ReplicaSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replica_set.V1ReplicaSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replica_set_condition.py b/kubernetes/test/test_v1_replica_set_condition.py deleted file mode 100644 index 60097b565a..0000000000 --- a/kubernetes/test/test_v1_replica_set_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replica_set_condition import V1ReplicaSetCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicaSetCondition(unittest.TestCase): - """V1ReplicaSetCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicaSetCondition(self): - """Test V1ReplicaSetCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replica_set_condition.V1ReplicaSetCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replica_set_list.py b/kubernetes/test/test_v1_replica_set_list.py deleted file mode 100644 index 50def0e92a..0000000000 --- a/kubernetes/test/test_v1_replica_set_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replica_set_list import V1ReplicaSetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicaSetList(unittest.TestCase): - """V1ReplicaSetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicaSetList(self): - """Test V1ReplicaSetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replica_set_list.V1ReplicaSetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replica_set_spec.py b/kubernetes/test/test_v1_replica_set_spec.py deleted file mode 100644 index 4984fd2d74..0000000000 --- a/kubernetes/test/test_v1_replica_set_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replica_set_spec import V1ReplicaSetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicaSetSpec(unittest.TestCase): - """V1ReplicaSetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicaSetSpec(self): - """Test V1ReplicaSetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replica_set_spec.V1ReplicaSetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replica_set_status.py b/kubernetes/test/test_v1_replica_set_status.py deleted file mode 100644 index f068d06c5f..0000000000 --- a/kubernetes/test/test_v1_replica_set_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replica_set_status import V1ReplicaSetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicaSetStatus(unittest.TestCase): - """V1ReplicaSetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicaSetStatus(self): - """Test V1ReplicaSetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replica_set_status.V1ReplicaSetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replication_controller.py b/kubernetes/test/test_v1_replication_controller.py deleted file mode 100644 index daffc6f5e1..0000000000 --- a/kubernetes/test/test_v1_replication_controller.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replication_controller import V1ReplicationController # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicationController(unittest.TestCase): - """V1ReplicationController unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicationController(self): - """Test V1ReplicationController""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replication_controller.V1ReplicationController() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replication_controller_condition.py b/kubernetes/test/test_v1_replication_controller_condition.py deleted file mode 100644 index f182883b2e..0000000000 --- a/kubernetes/test/test_v1_replication_controller_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replication_controller_condition import V1ReplicationControllerCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicationControllerCondition(unittest.TestCase): - """V1ReplicationControllerCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicationControllerCondition(self): - """Test V1ReplicationControllerCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replication_controller_condition.V1ReplicationControllerCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replication_controller_list.py b/kubernetes/test/test_v1_replication_controller_list.py deleted file mode 100644 index 4c6eb5be4e..0000000000 --- a/kubernetes/test/test_v1_replication_controller_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replication_controller_list import V1ReplicationControllerList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicationControllerList(unittest.TestCase): - """V1ReplicationControllerList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicationControllerList(self): - """Test V1ReplicationControllerList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replication_controller_list.V1ReplicationControllerList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replication_controller_spec.py b/kubernetes/test/test_v1_replication_controller_spec.py deleted file mode 100644 index 4f9b1004e5..0000000000 --- a/kubernetes/test/test_v1_replication_controller_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicationControllerSpec(unittest.TestCase): - """V1ReplicationControllerSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicationControllerSpec(self): - """Test V1ReplicationControllerSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replication_controller_spec.V1ReplicationControllerSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_replication_controller_status.py b/kubernetes/test/test_v1_replication_controller_status.py deleted file mode 100644 index 2ed7c17578..0000000000 --- a/kubernetes/test/test_v1_replication_controller_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ReplicationControllerStatus(unittest.TestCase): - """V1ReplicationControllerStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ReplicationControllerStatus(self): - """Test V1ReplicationControllerStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_replication_controller_status.V1ReplicationControllerStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_resource_attributes.py b/kubernetes/test/test_v1_resource_attributes.py deleted file mode 100644 index 4d860ee03d..0000000000 --- a/kubernetes/test/test_v1_resource_attributes.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ResourceAttributes(unittest.TestCase): - """V1ResourceAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ResourceAttributes(self): - """Test V1ResourceAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_resource_attributes.V1ResourceAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_resource_field_selector.py b/kubernetes/test/test_v1_resource_field_selector.py deleted file mode 100644 index 5dfa7b7c0d..0000000000 --- a/kubernetes/test/test_v1_resource_field_selector.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ResourceFieldSelector(unittest.TestCase): - """V1ResourceFieldSelector unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ResourceFieldSelector(self): - """Test V1ResourceFieldSelector""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_resource_field_selector.V1ResourceFieldSelector() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_resource_quota.py b/kubernetes/test/test_v1_resource_quota.py deleted file mode 100644 index 6e4e1b6912..0000000000 --- a/kubernetes/test/test_v1_resource_quota.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_resource_quota import V1ResourceQuota # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ResourceQuota(unittest.TestCase): - """V1ResourceQuota unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ResourceQuota(self): - """Test V1ResourceQuota""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_resource_quota.V1ResourceQuota() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_resource_quota_list.py b/kubernetes/test/test_v1_resource_quota_list.py deleted file mode 100644 index 699d351ed6..0000000000 --- a/kubernetes/test/test_v1_resource_quota_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ResourceQuotaList(unittest.TestCase): - """V1ResourceQuotaList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ResourceQuotaList(self): - """Test V1ResourceQuotaList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_resource_quota_list.V1ResourceQuotaList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_resource_quota_spec.py b/kubernetes/test/test_v1_resource_quota_spec.py deleted file mode 100644 index c3e5da003f..0000000000 --- a/kubernetes/test/test_v1_resource_quota_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ResourceQuotaSpec(unittest.TestCase): - """V1ResourceQuotaSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ResourceQuotaSpec(self): - """Test V1ResourceQuotaSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_resource_quota_spec.V1ResourceQuotaSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_resource_quota_status.py b/kubernetes/test/test_v1_resource_quota_status.py deleted file mode 100644 index f6f543126e..0000000000 --- a/kubernetes/test/test_v1_resource_quota_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ResourceQuotaStatus(unittest.TestCase): - """V1ResourceQuotaStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ResourceQuotaStatus(self): - """Test V1ResourceQuotaStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_resource_quota_status.V1ResourceQuotaStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_resource_requirements.py b/kubernetes/test/test_v1_resource_requirements.py deleted file mode 100644 index 7e4c1a5a55..0000000000 --- a/kubernetes/test/test_v1_resource_requirements.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ResourceRequirements(unittest.TestCase): - """V1ResourceRequirements unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ResourceRequirements(self): - """Test V1ResourceRequirements""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_resource_requirements.V1ResourceRequirements() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_resource_rule.py b/kubernetes/test/test_v1_resource_rule.py deleted file mode 100644 index 1f2af7f5f8..0000000000 --- a/kubernetes/test/test_v1_resource_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_resource_rule import V1ResourceRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ResourceRule(unittest.TestCase): - """V1ResourceRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ResourceRule(self): - """Test V1ResourceRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_resource_rule.V1ResourceRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_role.py b/kubernetes/test/test_v1_role.py deleted file mode 100644 index 060dfb48c7..0000000000 --- a/kubernetes/test/test_v1_role.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_role import V1Role # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Role(unittest.TestCase): - """V1Role unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Role(self): - """Test V1Role""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_role.V1Role() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_role_binding.py b/kubernetes/test/test_v1_role_binding.py deleted file mode 100644 index 58d746a54d..0000000000 --- a/kubernetes/test/test_v1_role_binding.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_role_binding import V1RoleBinding # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RoleBinding(unittest.TestCase): - """V1RoleBinding unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RoleBinding(self): - """Test V1RoleBinding""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_role_binding.V1RoleBinding() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_role_binding_list.py b/kubernetes/test/test_v1_role_binding_list.py deleted file mode 100644 index 283bcf89a5..0000000000 --- a/kubernetes/test/test_v1_role_binding_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_role_binding_list import V1RoleBindingList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RoleBindingList(unittest.TestCase): - """V1RoleBindingList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RoleBindingList(self): - """Test V1RoleBindingList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_role_binding_list.V1RoleBindingList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_role_list.py b/kubernetes/test/test_v1_role_list.py deleted file mode 100644 index ad38dff5a9..0000000000 --- a/kubernetes/test/test_v1_role_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_role_list import V1RoleList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RoleList(unittest.TestCase): - """V1RoleList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RoleList(self): - """Test V1RoleList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_role_list.V1RoleList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_role_ref.py b/kubernetes/test/test_v1_role_ref.py deleted file mode 100644 index 213a835ee5..0000000000 --- a/kubernetes/test/test_v1_role_ref.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_role_ref import V1RoleRef # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RoleRef(unittest.TestCase): - """V1RoleRef unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RoleRef(self): - """Test V1RoleRef""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_role_ref.V1RoleRef() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_rolling_update_daemon_set.py b/kubernetes/test/test_v1_rolling_update_daemon_set.py deleted file mode 100644 index 86b2bcb9aa..0000000000 --- a/kubernetes/test/test_v1_rolling_update_daemon_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_rolling_update_daemon_set import V1RollingUpdateDaemonSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RollingUpdateDaemonSet(unittest.TestCase): - """V1RollingUpdateDaemonSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RollingUpdateDaemonSet(self): - """Test V1RollingUpdateDaemonSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_rolling_update_daemon_set.V1RollingUpdateDaemonSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_rolling_update_deployment.py b/kubernetes/test/test_v1_rolling_update_deployment.py deleted file mode 100644 index ab8890bc53..0000000000 --- a/kubernetes/test/test_v1_rolling_update_deployment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_rolling_update_deployment import V1RollingUpdateDeployment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RollingUpdateDeployment(unittest.TestCase): - """V1RollingUpdateDeployment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RollingUpdateDeployment(self): - """Test V1RollingUpdateDeployment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_rolling_update_deployment.V1RollingUpdateDeployment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_rolling_update_stateful_set_strategy.py b/kubernetes/test/test_v1_rolling_update_stateful_set_strategy.py deleted file mode 100644 index a283075cc1..0000000000 --- a/kubernetes/test/test_v1_rolling_update_stateful_set_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_rolling_update_stateful_set_strategy import V1RollingUpdateStatefulSetStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RollingUpdateStatefulSetStrategy(unittest.TestCase): - """V1RollingUpdateStatefulSetStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RollingUpdateStatefulSetStrategy(self): - """Test V1RollingUpdateStatefulSetStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_rolling_update_stateful_set_strategy.V1RollingUpdateStatefulSetStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_rule_with_operations.py b/kubernetes/test/test_v1_rule_with_operations.py deleted file mode 100644 index 918660f8a8..0000000000 --- a/kubernetes/test/test_v1_rule_with_operations.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_rule_with_operations import V1RuleWithOperations # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1RuleWithOperations(unittest.TestCase): - """V1RuleWithOperations unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1RuleWithOperations(self): - """Test V1RuleWithOperations""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_rule_with_operations.V1RuleWithOperations() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_scale.py b/kubernetes/test/test_v1_scale.py deleted file mode 100644 index 4820b45d76..0000000000 --- a/kubernetes/test/test_v1_scale.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_scale import V1Scale # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Scale(unittest.TestCase): - """V1Scale unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Scale(self): - """Test V1Scale""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_scale.V1Scale() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_scale_io_persistent_volume_source.py b/kubernetes/test/test_v1_scale_io_persistent_volume_source.py deleted file mode 100644 index 1a7dff0e76..0000000000 --- a/kubernetes/test/test_v1_scale_io_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_scale_io_persistent_volume_source import V1ScaleIOPersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ScaleIOPersistentVolumeSource(unittest.TestCase): - """V1ScaleIOPersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ScaleIOPersistentVolumeSource(self): - """Test V1ScaleIOPersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_scale_io_persistent_volume_source.V1ScaleIOPersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_scale_io_volume_source.py b/kubernetes/test/test_v1_scale_io_volume_source.py deleted file mode 100644 index 3118ea7ac7..0000000000 --- a/kubernetes/test/test_v1_scale_io_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_scale_io_volume_source import V1ScaleIOVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ScaleIOVolumeSource(unittest.TestCase): - """V1ScaleIOVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ScaleIOVolumeSource(self): - """Test V1ScaleIOVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_scale_io_volume_source.V1ScaleIOVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_scale_spec.py b/kubernetes/test/test_v1_scale_spec.py deleted file mode 100644 index 6231907dee..0000000000 --- a/kubernetes/test/test_v1_scale_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_scale_spec import V1ScaleSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ScaleSpec(unittest.TestCase): - """V1ScaleSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ScaleSpec(self): - """Test V1ScaleSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_scale_spec.V1ScaleSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_scale_status.py b/kubernetes/test/test_v1_scale_status.py deleted file mode 100644 index 23c913f7d0..0000000000 --- a/kubernetes/test/test_v1_scale_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_scale_status import V1ScaleStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ScaleStatus(unittest.TestCase): - """V1ScaleStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ScaleStatus(self): - """Test V1ScaleStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_scale_status.V1ScaleStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_scope_selector.py b/kubernetes/test/test_v1_scope_selector.py deleted file mode 100644 index cedc3c7fdd..0000000000 --- a/kubernetes/test/test_v1_scope_selector.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_scope_selector import V1ScopeSelector # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ScopeSelector(unittest.TestCase): - """V1ScopeSelector unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ScopeSelector(self): - """Test V1ScopeSelector""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_scope_selector.V1ScopeSelector() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_scoped_resource_selector_requirement.py b/kubernetes/test/test_v1_scoped_resource_selector_requirement.py deleted file mode 100644 index 22d4d4958c..0000000000 --- a/kubernetes/test/test_v1_scoped_resource_selector_requirement.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_scoped_resource_selector_requirement import V1ScopedResourceSelectorRequirement # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ScopedResourceSelectorRequirement(unittest.TestCase): - """V1ScopedResourceSelectorRequirement unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ScopedResourceSelectorRequirement(self): - """Test V1ScopedResourceSelectorRequirement""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_scoped_resource_selector_requirement.V1ScopedResourceSelectorRequirement() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_se_linux_options.py b/kubernetes/test/test_v1_se_linux_options.py deleted file mode 100644 index 3310bab43a..0000000000 --- a/kubernetes/test/test_v1_se_linux_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_se_linux_options import V1SELinuxOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SELinuxOptions(unittest.TestCase): - """V1SELinuxOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SELinuxOptions(self): - """Test V1SELinuxOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_se_linux_options.V1SELinuxOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_secret.py b/kubernetes/test/test_v1_secret.py deleted file mode 100644 index b2cf4f6596..0000000000 --- a/kubernetes/test/test_v1_secret.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_secret import V1Secret # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Secret(unittest.TestCase): - """V1Secret unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Secret(self): - """Test V1Secret""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_secret.V1Secret() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_secret_env_source.py b/kubernetes/test/test_v1_secret_env_source.py deleted file mode 100644 index a06fef23d6..0000000000 --- a/kubernetes/test/test_v1_secret_env_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_secret_env_source import V1SecretEnvSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SecretEnvSource(unittest.TestCase): - """V1SecretEnvSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SecretEnvSource(self): - """Test V1SecretEnvSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_secret_env_source.V1SecretEnvSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_secret_key_selector.py b/kubernetes/test/test_v1_secret_key_selector.py deleted file mode 100644 index 618408ec85..0000000000 --- a/kubernetes/test/test_v1_secret_key_selector.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_secret_key_selector import V1SecretKeySelector # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SecretKeySelector(unittest.TestCase): - """V1SecretKeySelector unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SecretKeySelector(self): - """Test V1SecretKeySelector""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_secret_key_selector.V1SecretKeySelector() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_secret_list.py b/kubernetes/test/test_v1_secret_list.py deleted file mode 100644 index 4b777e2d4a..0000000000 --- a/kubernetes/test/test_v1_secret_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_secret_list import V1SecretList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SecretList(unittest.TestCase): - """V1SecretList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SecretList(self): - """Test V1SecretList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_secret_list.V1SecretList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_secret_projection.py b/kubernetes/test/test_v1_secret_projection.py deleted file mode 100644 index eeb2738c88..0000000000 --- a/kubernetes/test/test_v1_secret_projection.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_secret_projection import V1SecretProjection # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SecretProjection(unittest.TestCase): - """V1SecretProjection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SecretProjection(self): - """Test V1SecretProjection""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_secret_projection.V1SecretProjection() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_secret_reference.py b/kubernetes/test/test_v1_secret_reference.py deleted file mode 100644 index 98f21a9e05..0000000000 --- a/kubernetes/test/test_v1_secret_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_secret_reference import V1SecretReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SecretReference(unittest.TestCase): - """V1SecretReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SecretReference(self): - """Test V1SecretReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_secret_reference.V1SecretReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_secret_volume_source.py b/kubernetes/test/test_v1_secret_volume_source.py deleted file mode 100644 index 486e579386..0000000000 --- a/kubernetes/test/test_v1_secret_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_secret_volume_source import V1SecretVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SecretVolumeSource(unittest.TestCase): - """V1SecretVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SecretVolumeSource(self): - """Test V1SecretVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_secret_volume_source.V1SecretVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_security_context.py b/kubernetes/test/test_v1_security_context.py deleted file mode 100644 index 0825647df7..0000000000 --- a/kubernetes/test/test_v1_security_context.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_security_context import V1SecurityContext # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SecurityContext(unittest.TestCase): - """V1SecurityContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SecurityContext(self): - """Test V1SecurityContext""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_security_context.V1SecurityContext() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_self_subject_access_review.py b/kubernetes/test/test_v1_self_subject_access_review.py deleted file mode 100644 index 947a7a7423..0000000000 --- a/kubernetes/test/test_v1_self_subject_access_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_self_subject_access_review import V1SelfSubjectAccessReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SelfSubjectAccessReview(unittest.TestCase): - """V1SelfSubjectAccessReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SelfSubjectAccessReview(self): - """Test V1SelfSubjectAccessReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_self_subject_access_review.V1SelfSubjectAccessReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_self_subject_access_review_spec.py b/kubernetes/test/test_v1_self_subject_access_review_spec.py deleted file mode 100644 index 6ca65b522c..0000000000 --- a/kubernetes/test/test_v1_self_subject_access_review_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_self_subject_access_review_spec import V1SelfSubjectAccessReviewSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SelfSubjectAccessReviewSpec(unittest.TestCase): - """V1SelfSubjectAccessReviewSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SelfSubjectAccessReviewSpec(self): - """Test V1SelfSubjectAccessReviewSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_self_subject_access_review_spec.V1SelfSubjectAccessReviewSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_self_subject_rules_review.py b/kubernetes/test/test_v1_self_subject_rules_review.py deleted file mode 100644 index 8bae883a3a..0000000000 --- a/kubernetes/test/test_v1_self_subject_rules_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_self_subject_rules_review import V1SelfSubjectRulesReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SelfSubjectRulesReview(unittest.TestCase): - """V1SelfSubjectRulesReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SelfSubjectRulesReview(self): - """Test V1SelfSubjectRulesReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_self_subject_rules_review.V1SelfSubjectRulesReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_self_subject_rules_review_spec.py b/kubernetes/test/test_v1_self_subject_rules_review_spec.py deleted file mode 100644 index 9c75e40123..0000000000 --- a/kubernetes/test/test_v1_self_subject_rules_review_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_self_subject_rules_review_spec import V1SelfSubjectRulesReviewSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SelfSubjectRulesReviewSpec(unittest.TestCase): - """V1SelfSubjectRulesReviewSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SelfSubjectRulesReviewSpec(self): - """Test V1SelfSubjectRulesReviewSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_self_subject_rules_review_spec.V1SelfSubjectRulesReviewSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_server_address_by_client_cidr.py b/kubernetes/test/test_v1_server_address_by_client_cidr.py deleted file mode 100644 index f51da12a51..0000000000 --- a/kubernetes/test/test_v1_server_address_by_client_cidr.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ServerAddressByClientCIDR(unittest.TestCase): - """V1ServerAddressByClientCIDR unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServerAddressByClientCIDR(self): - """Test V1ServerAddressByClientCIDR""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_server_address_by_client_cidr.V1ServerAddressByClientCIDR() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_service.py b/kubernetes/test/test_v1_service.py deleted file mode 100644 index e54817db71..0000000000 --- a/kubernetes/test/test_v1_service.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_service import V1Service # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Service(unittest.TestCase): - """V1Service unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Service(self): - """Test V1Service""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_service.V1Service() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_service_account.py b/kubernetes/test/test_v1_service_account.py deleted file mode 100644 index a108d78eeb..0000000000 --- a/kubernetes/test/test_v1_service_account.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_service_account import V1ServiceAccount # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ServiceAccount(unittest.TestCase): - """V1ServiceAccount unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServiceAccount(self): - """Test V1ServiceAccount""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_service_account.V1ServiceAccount() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_service_account_list.py b/kubernetes/test/test_v1_service_account_list.py deleted file mode 100644 index 3b897d5664..0000000000 --- a/kubernetes/test/test_v1_service_account_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_service_account_list import V1ServiceAccountList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ServiceAccountList(unittest.TestCase): - """V1ServiceAccountList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServiceAccountList(self): - """Test V1ServiceAccountList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_service_account_list.V1ServiceAccountList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_service_account_token_projection.py b/kubernetes/test/test_v1_service_account_token_projection.py deleted file mode 100644 index ca5e24a2c4..0000000000 --- a/kubernetes/test/test_v1_service_account_token_projection.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_service_account_token_projection import V1ServiceAccountTokenProjection # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ServiceAccountTokenProjection(unittest.TestCase): - """V1ServiceAccountTokenProjection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServiceAccountTokenProjection(self): - """Test V1ServiceAccountTokenProjection""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_service_account_token_projection.V1ServiceAccountTokenProjection() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_service_list.py b/kubernetes/test/test_v1_service_list.py deleted file mode 100644 index 7f0a20faf8..0000000000 --- a/kubernetes/test/test_v1_service_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_service_list import V1ServiceList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ServiceList(unittest.TestCase): - """V1ServiceList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServiceList(self): - """Test V1ServiceList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_service_list.V1ServiceList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_service_port.py b/kubernetes/test/test_v1_service_port.py deleted file mode 100644 index da0f719bb0..0000000000 --- a/kubernetes/test/test_v1_service_port.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_service_port import V1ServicePort # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ServicePort(unittest.TestCase): - """V1ServicePort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServicePort(self): - """Test V1ServicePort""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_service_port.V1ServicePort() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_service_spec.py b/kubernetes/test/test_v1_service_spec.py deleted file mode 100644 index 56cfc507aa..0000000000 --- a/kubernetes/test/test_v1_service_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_service_spec import V1ServiceSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ServiceSpec(unittest.TestCase): - """V1ServiceSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServiceSpec(self): - """Test V1ServiceSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_service_spec.V1ServiceSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_service_status.py b/kubernetes/test/test_v1_service_status.py deleted file mode 100644 index df9b20f82b..0000000000 --- a/kubernetes/test/test_v1_service_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_service_status import V1ServiceStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ServiceStatus(unittest.TestCase): - """V1ServiceStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ServiceStatus(self): - """Test V1ServiceStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_service_status.V1ServiceStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_session_affinity_config.py b/kubernetes/test/test_v1_session_affinity_config.py deleted file mode 100644 index f47bd2486d..0000000000 --- a/kubernetes/test/test_v1_session_affinity_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_session_affinity_config import V1SessionAffinityConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SessionAffinityConfig(unittest.TestCase): - """V1SessionAffinityConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SessionAffinityConfig(self): - """Test V1SessionAffinityConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_session_affinity_config.V1SessionAffinityConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_stateful_set.py b/kubernetes/test/test_v1_stateful_set.py deleted file mode 100644 index c275a620d6..0000000000 --- a/kubernetes/test/test_v1_stateful_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_stateful_set import V1StatefulSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StatefulSet(unittest.TestCase): - """V1StatefulSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatefulSet(self): - """Test V1StatefulSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_stateful_set.V1StatefulSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_stateful_set_condition.py b/kubernetes/test/test_v1_stateful_set_condition.py deleted file mode 100644 index bf94954e28..0000000000 --- a/kubernetes/test/test_v1_stateful_set_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_stateful_set_condition import V1StatefulSetCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StatefulSetCondition(unittest.TestCase): - """V1StatefulSetCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatefulSetCondition(self): - """Test V1StatefulSetCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_stateful_set_condition.V1StatefulSetCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_stateful_set_list.py b/kubernetes/test/test_v1_stateful_set_list.py deleted file mode 100644 index 500f05c67f..0000000000 --- a/kubernetes/test/test_v1_stateful_set_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_stateful_set_list import V1StatefulSetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StatefulSetList(unittest.TestCase): - """V1StatefulSetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatefulSetList(self): - """Test V1StatefulSetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_stateful_set_list.V1StatefulSetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_stateful_set_spec.py b/kubernetes/test/test_v1_stateful_set_spec.py deleted file mode 100644 index 3517878286..0000000000 --- a/kubernetes/test/test_v1_stateful_set_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_stateful_set_spec import V1StatefulSetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StatefulSetSpec(unittest.TestCase): - """V1StatefulSetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatefulSetSpec(self): - """Test V1StatefulSetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_stateful_set_spec.V1StatefulSetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_stateful_set_status.py b/kubernetes/test/test_v1_stateful_set_status.py deleted file mode 100644 index 409455a52b..0000000000 --- a/kubernetes/test/test_v1_stateful_set_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_stateful_set_status import V1StatefulSetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StatefulSetStatus(unittest.TestCase): - """V1StatefulSetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatefulSetStatus(self): - """Test V1StatefulSetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_stateful_set_status.V1StatefulSetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_stateful_set_update_strategy.py b/kubernetes/test/test_v1_stateful_set_update_strategy.py deleted file mode 100644 index 33a7ad4278..0000000000 --- a/kubernetes/test/test_v1_stateful_set_update_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_stateful_set_update_strategy import V1StatefulSetUpdateStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StatefulSetUpdateStrategy(unittest.TestCase): - """V1StatefulSetUpdateStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatefulSetUpdateStrategy(self): - """Test V1StatefulSetUpdateStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_stateful_set_update_strategy.V1StatefulSetUpdateStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_status.py b/kubernetes/test/test_v1_status.py deleted file mode 100644 index 91f31eaf3f..0000000000 --- a/kubernetes/test/test_v1_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_status import V1Status # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Status(unittest.TestCase): - """V1Status unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Status(self): - """Test V1Status""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_status.V1Status() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_status_cause.py b/kubernetes/test/test_v1_status_cause.py deleted file mode 100644 index 6136ea6a23..0000000000 --- a/kubernetes/test/test_v1_status_cause.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_status_cause import V1StatusCause # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StatusCause(unittest.TestCase): - """V1StatusCause unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatusCause(self): - """Test V1StatusCause""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_status_cause.V1StatusCause() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_status_details.py b/kubernetes/test/test_v1_status_details.py deleted file mode 100644 index 35f484e0cf..0000000000 --- a/kubernetes/test/test_v1_status_details.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_status_details import V1StatusDetails # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StatusDetails(unittest.TestCase): - """V1StatusDetails unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StatusDetails(self): - """Test V1StatusDetails""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_status_details.V1StatusDetails() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_storage_class.py b/kubernetes/test/test_v1_storage_class.py deleted file mode 100644 index bd6a5ced56..0000000000 --- a/kubernetes/test/test_v1_storage_class.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_storage_class import V1StorageClass # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StorageClass(unittest.TestCase): - """V1StorageClass unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StorageClass(self): - """Test V1StorageClass""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_storage_class.V1StorageClass() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_storage_class_list.py b/kubernetes/test/test_v1_storage_class_list.py deleted file mode 100644 index b38e0daa32..0000000000 --- a/kubernetes/test/test_v1_storage_class_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_storage_class_list import V1StorageClassList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StorageClassList(unittest.TestCase): - """V1StorageClassList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StorageClassList(self): - """Test V1StorageClassList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_storage_class_list.V1StorageClassList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_storage_os_persistent_volume_source.py b/kubernetes/test/test_v1_storage_os_persistent_volume_source.py deleted file mode 100644 index 22d9a349bb..0000000000 --- a/kubernetes/test/test_v1_storage_os_persistent_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_storage_os_persistent_volume_source import V1StorageOSPersistentVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StorageOSPersistentVolumeSource(unittest.TestCase): - """V1StorageOSPersistentVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StorageOSPersistentVolumeSource(self): - """Test V1StorageOSPersistentVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_storage_os_persistent_volume_source.V1StorageOSPersistentVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_storage_os_volume_source.py b/kubernetes/test/test_v1_storage_os_volume_source.py deleted file mode 100644 index cb615c1f16..0000000000 --- a/kubernetes/test/test_v1_storage_os_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_storage_os_volume_source import V1StorageOSVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1StorageOSVolumeSource(unittest.TestCase): - """V1StorageOSVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1StorageOSVolumeSource(self): - """Test V1StorageOSVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_storage_os_volume_source.V1StorageOSVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_subject.py b/kubernetes/test/test_v1_subject.py deleted file mode 100644 index c836241bd7..0000000000 --- a/kubernetes/test/test_v1_subject.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_subject import V1Subject # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Subject(unittest.TestCase): - """V1Subject unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Subject(self): - """Test V1Subject""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_subject.V1Subject() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_subject_access_review.py b/kubernetes/test/test_v1_subject_access_review.py deleted file mode 100644 index 7a81dc7728..0000000000 --- a/kubernetes/test/test_v1_subject_access_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_subject_access_review import V1SubjectAccessReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SubjectAccessReview(unittest.TestCase): - """V1SubjectAccessReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SubjectAccessReview(self): - """Test V1SubjectAccessReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_subject_access_review.V1SubjectAccessReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_subject_access_review_spec.py b/kubernetes/test/test_v1_subject_access_review_spec.py deleted file mode 100644 index 9a58529936..0000000000 --- a/kubernetes/test/test_v1_subject_access_review_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_subject_access_review_spec import V1SubjectAccessReviewSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SubjectAccessReviewSpec(unittest.TestCase): - """V1SubjectAccessReviewSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SubjectAccessReviewSpec(self): - """Test V1SubjectAccessReviewSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_subject_access_review_spec.V1SubjectAccessReviewSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_subject_access_review_status.py b/kubernetes/test/test_v1_subject_access_review_status.py deleted file mode 100644 index 9e4d4564bf..0000000000 --- a/kubernetes/test/test_v1_subject_access_review_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_subject_access_review_status import V1SubjectAccessReviewStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SubjectAccessReviewStatus(unittest.TestCase): - """V1SubjectAccessReviewStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SubjectAccessReviewStatus(self): - """Test V1SubjectAccessReviewStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_subject_access_review_status.V1SubjectAccessReviewStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_subject_rules_review_status.py b/kubernetes/test/test_v1_subject_rules_review_status.py deleted file mode 100644 index 061db68cbd..0000000000 --- a/kubernetes/test/test_v1_subject_rules_review_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_subject_rules_review_status import V1SubjectRulesReviewStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1SubjectRulesReviewStatus(unittest.TestCase): - """V1SubjectRulesReviewStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1SubjectRulesReviewStatus(self): - """Test V1SubjectRulesReviewStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_subject_rules_review_status.V1SubjectRulesReviewStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_sysctl.py b/kubernetes/test/test_v1_sysctl.py deleted file mode 100644 index acd63a3ba0..0000000000 --- a/kubernetes/test/test_v1_sysctl.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_sysctl import V1Sysctl # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Sysctl(unittest.TestCase): - """V1Sysctl unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Sysctl(self): - """Test V1Sysctl""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_sysctl.V1Sysctl() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_taint.py b/kubernetes/test/test_v1_taint.py deleted file mode 100644 index 2257be7107..0000000000 --- a/kubernetes/test/test_v1_taint.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_taint import V1Taint # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Taint(unittest.TestCase): - """V1Taint unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Taint(self): - """Test V1Taint""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_taint.V1Taint() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_tcp_socket_action.py b/kubernetes/test/test_v1_tcp_socket_action.py deleted file mode 100644 index 14c3ba8494..0000000000 --- a/kubernetes/test/test_v1_tcp_socket_action.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_tcp_socket_action import V1TCPSocketAction # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TCPSocketAction(unittest.TestCase): - """V1TCPSocketAction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TCPSocketAction(self): - """Test V1TCPSocketAction""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_tcp_socket_action.V1TCPSocketAction() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_token_request.py b/kubernetes/test/test_v1_token_request.py deleted file mode 100644 index 6a9b5a6cce..0000000000 --- a/kubernetes/test/test_v1_token_request.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_token_request import V1TokenRequest # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TokenRequest(unittest.TestCase): - """V1TokenRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TokenRequest(self): - """Test V1TokenRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_token_request.V1TokenRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_token_request_spec.py b/kubernetes/test/test_v1_token_request_spec.py deleted file mode 100644 index f2037804e0..0000000000 --- a/kubernetes/test/test_v1_token_request_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_token_request_spec import V1TokenRequestSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TokenRequestSpec(unittest.TestCase): - """V1TokenRequestSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TokenRequestSpec(self): - """Test V1TokenRequestSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_token_request_spec.V1TokenRequestSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_token_request_status.py b/kubernetes/test/test_v1_token_request_status.py deleted file mode 100644 index 870efc22af..0000000000 --- a/kubernetes/test/test_v1_token_request_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_token_request_status import V1TokenRequestStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TokenRequestStatus(unittest.TestCase): - """V1TokenRequestStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TokenRequestStatus(self): - """Test V1TokenRequestStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_token_request_status.V1TokenRequestStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_token_review.py b/kubernetes/test/test_v1_token_review.py deleted file mode 100644 index 5af7da215a..0000000000 --- a/kubernetes/test/test_v1_token_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_token_review import V1TokenReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TokenReview(unittest.TestCase): - """V1TokenReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TokenReview(self): - """Test V1TokenReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_token_review.V1TokenReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_token_review_spec.py b/kubernetes/test/test_v1_token_review_spec.py deleted file mode 100644 index 0efd761526..0000000000 --- a/kubernetes/test/test_v1_token_review_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_token_review_spec import V1TokenReviewSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TokenReviewSpec(unittest.TestCase): - """V1TokenReviewSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TokenReviewSpec(self): - """Test V1TokenReviewSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_token_review_spec.V1TokenReviewSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_token_review_status.py b/kubernetes/test/test_v1_token_review_status.py deleted file mode 100644 index 438c887f9a..0000000000 --- a/kubernetes/test/test_v1_token_review_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_token_review_status import V1TokenReviewStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TokenReviewStatus(unittest.TestCase): - """V1TokenReviewStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TokenReviewStatus(self): - """Test V1TokenReviewStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_token_review_status.V1TokenReviewStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_toleration.py b/kubernetes/test/test_v1_toleration.py deleted file mode 100644 index 926f344d21..0000000000 --- a/kubernetes/test/test_v1_toleration.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_toleration import V1Toleration # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Toleration(unittest.TestCase): - """V1Toleration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Toleration(self): - """Test V1Toleration""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_toleration.V1Toleration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_topology_selector_label_requirement.py b/kubernetes/test/test_v1_topology_selector_label_requirement.py deleted file mode 100644 index 8c68936a0d..0000000000 --- a/kubernetes/test/test_v1_topology_selector_label_requirement.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_topology_selector_label_requirement import V1TopologySelectorLabelRequirement # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TopologySelectorLabelRequirement(unittest.TestCase): - """V1TopologySelectorLabelRequirement unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TopologySelectorLabelRequirement(self): - """Test V1TopologySelectorLabelRequirement""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_topology_selector_label_requirement.V1TopologySelectorLabelRequirement() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_topology_selector_term.py b/kubernetes/test/test_v1_topology_selector_term.py deleted file mode 100644 index b85727a3e8..0000000000 --- a/kubernetes/test/test_v1_topology_selector_term.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_topology_selector_term import V1TopologySelectorTerm # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TopologySelectorTerm(unittest.TestCase): - """V1TopologySelectorTerm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TopologySelectorTerm(self): - """Test V1TopologySelectorTerm""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_topology_selector_term.V1TopologySelectorTerm() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_topology_spread_constraint.py b/kubernetes/test/test_v1_topology_spread_constraint.py deleted file mode 100644 index 1245d28f7d..0000000000 --- a/kubernetes/test/test_v1_topology_spread_constraint.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_topology_spread_constraint import V1TopologySpreadConstraint # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TopologySpreadConstraint(unittest.TestCase): - """V1TopologySpreadConstraint unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TopologySpreadConstraint(self): - """Test V1TopologySpreadConstraint""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_topology_spread_constraint.V1TopologySpreadConstraint() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_typed_local_object_reference.py b/kubernetes/test/test_v1_typed_local_object_reference.py deleted file mode 100644 index c14080965e..0000000000 --- a/kubernetes/test/test_v1_typed_local_object_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_typed_local_object_reference import V1TypedLocalObjectReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1TypedLocalObjectReference(unittest.TestCase): - """V1TypedLocalObjectReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1TypedLocalObjectReference(self): - """Test V1TypedLocalObjectReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_typed_local_object_reference.V1TypedLocalObjectReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_user_info.py b/kubernetes/test/test_v1_user_info.py deleted file mode 100644 index e5f4ff4fd3..0000000000 --- a/kubernetes/test/test_v1_user_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_user_info import V1UserInfo # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1UserInfo(unittest.TestCase): - """V1UserInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1UserInfo(self): - """Test V1UserInfo""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_user_info.V1UserInfo() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_validating_webhook.py b/kubernetes/test/test_v1_validating_webhook.py deleted file mode 100644 index 4ba94960a0..0000000000 --- a/kubernetes/test/test_v1_validating_webhook.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_validating_webhook import V1ValidatingWebhook # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ValidatingWebhook(unittest.TestCase): - """V1ValidatingWebhook unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ValidatingWebhook(self): - """Test V1ValidatingWebhook""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_validating_webhook.V1ValidatingWebhook() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_validating_webhook_configuration.py b/kubernetes/test/test_v1_validating_webhook_configuration.py deleted file mode 100644 index bf06f5803d..0000000000 --- a/kubernetes/test/test_v1_validating_webhook_configuration.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_validating_webhook_configuration import V1ValidatingWebhookConfiguration # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ValidatingWebhookConfiguration(unittest.TestCase): - """V1ValidatingWebhookConfiguration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ValidatingWebhookConfiguration(self): - """Test V1ValidatingWebhookConfiguration""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_validating_webhook_configuration.V1ValidatingWebhookConfiguration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_validating_webhook_configuration_list.py b/kubernetes/test/test_v1_validating_webhook_configuration_list.py deleted file mode 100644 index cd5585a069..0000000000 --- a/kubernetes/test/test_v1_validating_webhook_configuration_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_validating_webhook_configuration_list import V1ValidatingWebhookConfigurationList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1ValidatingWebhookConfigurationList(unittest.TestCase): - """V1ValidatingWebhookConfigurationList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1ValidatingWebhookConfigurationList(self): - """Test V1ValidatingWebhookConfigurationList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_validating_webhook_configuration_list.V1ValidatingWebhookConfigurationList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume.py b/kubernetes/test/test_v1_volume.py deleted file mode 100644 index 518506ba11..0000000000 --- a/kubernetes/test/test_v1_volume.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume import V1Volume # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1Volume(unittest.TestCase): - """V1Volume unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Volume(self): - """Test V1Volume""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume.V1Volume() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_attachment.py b/kubernetes/test/test_v1_volume_attachment.py deleted file mode 100644 index 724cd22275..0000000000 --- a/kubernetes/test/test_v1_volume_attachment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_attachment import V1VolumeAttachment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeAttachment(unittest.TestCase): - """V1VolumeAttachment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeAttachment(self): - """Test V1VolumeAttachment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_attachment.V1VolumeAttachment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_attachment_list.py b/kubernetes/test/test_v1_volume_attachment_list.py deleted file mode 100644 index 85e141148b..0000000000 --- a/kubernetes/test/test_v1_volume_attachment_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_attachment_list import V1VolumeAttachmentList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeAttachmentList(unittest.TestCase): - """V1VolumeAttachmentList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeAttachmentList(self): - """Test V1VolumeAttachmentList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_attachment_list.V1VolumeAttachmentList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_attachment_source.py b/kubernetes/test/test_v1_volume_attachment_source.py deleted file mode 100644 index 5248b9298f..0000000000 --- a/kubernetes/test/test_v1_volume_attachment_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeAttachmentSource(unittest.TestCase): - """V1VolumeAttachmentSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeAttachmentSource(self): - """Test V1VolumeAttachmentSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_attachment_source.V1VolumeAttachmentSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_attachment_spec.py b/kubernetes/test/test_v1_volume_attachment_spec.py deleted file mode 100644 index 38d8af8702..0000000000 --- a/kubernetes/test/test_v1_volume_attachment_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeAttachmentSpec(unittest.TestCase): - """V1VolumeAttachmentSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeAttachmentSpec(self): - """Test V1VolumeAttachmentSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_attachment_spec.V1VolumeAttachmentSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_attachment_status.py b/kubernetes/test/test_v1_volume_attachment_status.py deleted file mode 100644 index 8215da1db6..0000000000 --- a/kubernetes/test/test_v1_volume_attachment_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeAttachmentStatus(unittest.TestCase): - """V1VolumeAttachmentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeAttachmentStatus(self): - """Test V1VolumeAttachmentStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_attachment_status.V1VolumeAttachmentStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_device.py b/kubernetes/test/test_v1_volume_device.py deleted file mode 100644 index 3932954c2e..0000000000 --- a/kubernetes/test/test_v1_volume_device.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_device import V1VolumeDevice # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeDevice(unittest.TestCase): - """V1VolumeDevice unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeDevice(self): - """Test V1VolumeDevice""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_device.V1VolumeDevice() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_error.py b/kubernetes/test/test_v1_volume_error.py deleted file mode 100644 index 16466fbf94..0000000000 --- a/kubernetes/test/test_v1_volume_error.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_error import V1VolumeError # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeError(unittest.TestCase): - """V1VolumeError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeError(self): - """Test V1VolumeError""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_error.V1VolumeError() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_mount.py b/kubernetes/test/test_v1_volume_mount.py deleted file mode 100644 index c8e3ec5956..0000000000 --- a/kubernetes/test/test_v1_volume_mount.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_mount import V1VolumeMount # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeMount(unittest.TestCase): - """V1VolumeMount unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeMount(self): - """Test V1VolumeMount""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_mount.V1VolumeMount() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_node_affinity.py b/kubernetes/test/test_v1_volume_node_affinity.py deleted file mode 100644 index 4263a7cdb0..0000000000 --- a/kubernetes/test/test_v1_volume_node_affinity.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_node_affinity import V1VolumeNodeAffinity # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeNodeAffinity(unittest.TestCase): - """V1VolumeNodeAffinity unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeNodeAffinity(self): - """Test V1VolumeNodeAffinity""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_node_affinity.V1VolumeNodeAffinity() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_volume_projection.py b/kubernetes/test/test_v1_volume_projection.py deleted file mode 100644 index af50c04233..0000000000 --- a/kubernetes/test/test_v1_volume_projection.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_volume_projection import V1VolumeProjection # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VolumeProjection(unittest.TestCase): - """V1VolumeProjection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VolumeProjection(self): - """Test V1VolumeProjection""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_volume_projection.V1VolumeProjection() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py b/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py deleted file mode 100644 index 64245c51b8..0000000000 --- a/kubernetes/test/test_v1_vsphere_virtual_disk_volume_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_vsphere_virtual_disk_volume_source import V1VsphereVirtualDiskVolumeSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1VsphereVirtualDiskVolumeSource(unittest.TestCase): - """V1VsphereVirtualDiskVolumeSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VsphereVirtualDiskVolumeSource(self): - """Test V1VsphereVirtualDiskVolumeSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_vsphere_virtual_disk_volume_source.V1VsphereVirtualDiskVolumeSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_watch_event.py b/kubernetes/test/test_v1_watch_event.py deleted file mode 100644 index 296bd8cd73..0000000000 --- a/kubernetes/test/test_v1_watch_event.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_watch_event import V1WatchEvent # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1WatchEvent(unittest.TestCase): - """V1WatchEvent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1WatchEvent(self): - """Test V1WatchEvent""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_watch_event.V1WatchEvent() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_webhook_conversion.py b/kubernetes/test/test_v1_webhook_conversion.py deleted file mode 100644 index 8495a9aef2..0000000000 --- a/kubernetes/test/test_v1_webhook_conversion.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_webhook_conversion import V1WebhookConversion # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1WebhookConversion(unittest.TestCase): - """V1WebhookConversion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1WebhookConversion(self): - """Test V1WebhookConversion""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_webhook_conversion.V1WebhookConversion() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_weighted_pod_affinity_term.py b/kubernetes/test/test_v1_weighted_pod_affinity_term.py deleted file mode 100644 index 8b14315544..0000000000 --- a/kubernetes/test/test_v1_weighted_pod_affinity_term.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1WeightedPodAffinityTerm(unittest.TestCase): - """V1WeightedPodAffinityTerm unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1WeightedPodAffinityTerm(self): - """Test V1WeightedPodAffinityTerm""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_weighted_pod_affinity_term.V1WeightedPodAffinityTerm() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_windows_security_context_options.py b/kubernetes/test/test_v1_windows_security_context_options.py deleted file mode 100644 index 9e96a1fc78..0000000000 --- a/kubernetes/test/test_v1_windows_security_context_options.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1_windows_security_context_options import V1WindowsSecurityContextOptions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1WindowsSecurityContextOptions(unittest.TestCase): - """V1WindowsSecurityContextOptions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1WindowsSecurityContextOptions(self): - """Test V1WindowsSecurityContextOptions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1_windows_security_context_options.V1WindowsSecurityContextOptions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_aggregation_rule.py b/kubernetes/test/test_v1alpha1_aggregation_rule.py deleted file mode 100644 index ea860bec61..0000000000 --- a/kubernetes/test/test_v1alpha1_aggregation_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_aggregation_rule import V1alpha1AggregationRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1AggregationRule(unittest.TestCase): - """V1alpha1AggregationRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1AggregationRule(self): - """Test V1alpha1AggregationRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_aggregation_rule.V1alpha1AggregationRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_audit_sink.py b/kubernetes/test/test_v1alpha1_audit_sink.py deleted file mode 100644 index 86620ff978..0000000000 --- a/kubernetes/test/test_v1alpha1_audit_sink.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_audit_sink import V1alpha1AuditSink # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1AuditSink(unittest.TestCase): - """V1alpha1AuditSink unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1AuditSink(self): - """Test V1alpha1AuditSink""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_audit_sink.V1alpha1AuditSink() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_audit_sink_list.py b/kubernetes/test/test_v1alpha1_audit_sink_list.py deleted file mode 100644 index 33e9749b46..0000000000 --- a/kubernetes/test/test_v1alpha1_audit_sink_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_audit_sink_list import V1alpha1AuditSinkList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1AuditSinkList(unittest.TestCase): - """V1alpha1AuditSinkList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1AuditSinkList(self): - """Test V1alpha1AuditSinkList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_audit_sink_list.V1alpha1AuditSinkList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_audit_sink_spec.py b/kubernetes/test/test_v1alpha1_audit_sink_spec.py deleted file mode 100644 index 57768cd57c..0000000000 --- a/kubernetes/test/test_v1alpha1_audit_sink_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_audit_sink_spec import V1alpha1AuditSinkSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1AuditSinkSpec(unittest.TestCase): - """V1alpha1AuditSinkSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1AuditSinkSpec(self): - """Test V1alpha1AuditSinkSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_audit_sink_spec.V1alpha1AuditSinkSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_cluster_role.py b/kubernetes/test/test_v1alpha1_cluster_role.py deleted file mode 100644 index fc3f958d03..0000000000 --- a/kubernetes/test/test_v1alpha1_cluster_role.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_cluster_role import V1alpha1ClusterRole # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1ClusterRole(unittest.TestCase): - """V1alpha1ClusterRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1ClusterRole(self): - """Test V1alpha1ClusterRole""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_cluster_role.V1alpha1ClusterRole() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_cluster_role_binding.py b/kubernetes/test/test_v1alpha1_cluster_role_binding.py deleted file mode 100644 index 8d05b429a5..0000000000 --- a/kubernetes/test/test_v1alpha1_cluster_role_binding.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_cluster_role_binding import V1alpha1ClusterRoleBinding # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1ClusterRoleBinding(unittest.TestCase): - """V1alpha1ClusterRoleBinding unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1ClusterRoleBinding(self): - """Test V1alpha1ClusterRoleBinding""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_cluster_role_binding.V1alpha1ClusterRoleBinding() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py b/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py deleted file mode 100644 index 22958178c8..0000000000 --- a/kubernetes/test/test_v1alpha1_cluster_role_binding_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_cluster_role_binding_list import V1alpha1ClusterRoleBindingList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1ClusterRoleBindingList(unittest.TestCase): - """V1alpha1ClusterRoleBindingList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1ClusterRoleBindingList(self): - """Test V1alpha1ClusterRoleBindingList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_cluster_role_binding_list.V1alpha1ClusterRoleBindingList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_cluster_role_list.py b/kubernetes/test/test_v1alpha1_cluster_role_list.py deleted file mode 100644 index 47365dbb45..0000000000 --- a/kubernetes/test/test_v1alpha1_cluster_role_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_cluster_role_list import V1alpha1ClusterRoleList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1ClusterRoleList(unittest.TestCase): - """V1alpha1ClusterRoleList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1ClusterRoleList(self): - """Test V1alpha1ClusterRoleList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_cluster_role_list.V1alpha1ClusterRoleList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_endpoint.py b/kubernetes/test/test_v1alpha1_endpoint.py deleted file mode 100644 index c6c08f7b9a..0000000000 --- a/kubernetes/test/test_v1alpha1_endpoint.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_endpoint import V1alpha1Endpoint # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1Endpoint(unittest.TestCase): - """V1alpha1Endpoint unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1Endpoint(self): - """Test V1alpha1Endpoint""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_endpoint.V1alpha1Endpoint() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_endpoint_conditions.py b/kubernetes/test/test_v1alpha1_endpoint_conditions.py deleted file mode 100644 index 3b2a30e40d..0000000000 --- a/kubernetes/test/test_v1alpha1_endpoint_conditions.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_endpoint_conditions import V1alpha1EndpointConditions # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1EndpointConditions(unittest.TestCase): - """V1alpha1EndpointConditions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1EndpointConditions(self): - """Test V1alpha1EndpointConditions""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_endpoint_conditions.V1alpha1EndpointConditions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_endpoint_port.py b/kubernetes/test/test_v1alpha1_endpoint_port.py deleted file mode 100644 index 916f60277a..0000000000 --- a/kubernetes/test/test_v1alpha1_endpoint_port.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_endpoint_port import V1alpha1EndpointPort # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1EndpointPort(unittest.TestCase): - """V1alpha1EndpointPort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1EndpointPort(self): - """Test V1alpha1EndpointPort""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_endpoint_port.V1alpha1EndpointPort() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_endpoint_slice.py b/kubernetes/test/test_v1alpha1_endpoint_slice.py deleted file mode 100644 index 5efe317ac7..0000000000 --- a/kubernetes/test/test_v1alpha1_endpoint_slice.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_endpoint_slice import V1alpha1EndpointSlice # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1EndpointSlice(unittest.TestCase): - """V1alpha1EndpointSlice unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1EndpointSlice(self): - """Test V1alpha1EndpointSlice""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_endpoint_slice.V1alpha1EndpointSlice() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_endpoint_slice_list.py b/kubernetes/test/test_v1alpha1_endpoint_slice_list.py deleted file mode 100644 index 96d2521b29..0000000000 --- a/kubernetes/test/test_v1alpha1_endpoint_slice_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_endpoint_slice_list import V1alpha1EndpointSliceList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1EndpointSliceList(unittest.TestCase): - """V1alpha1EndpointSliceList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1EndpointSliceList(self): - """Test V1alpha1EndpointSliceList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_endpoint_slice_list.V1alpha1EndpointSliceList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_overhead.py b/kubernetes/test/test_v1alpha1_overhead.py deleted file mode 100644 index 26359676bc..0000000000 --- a/kubernetes/test/test_v1alpha1_overhead.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_overhead import V1alpha1Overhead # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1Overhead(unittest.TestCase): - """V1alpha1Overhead unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1Overhead(self): - """Test V1alpha1Overhead""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_overhead.V1alpha1Overhead() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_pod_preset.py b/kubernetes/test/test_v1alpha1_pod_preset.py deleted file mode 100644 index dbd52216de..0000000000 --- a/kubernetes/test/test_v1alpha1_pod_preset.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_pod_preset import V1alpha1PodPreset # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1PodPreset(unittest.TestCase): - """V1alpha1PodPreset unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PodPreset(self): - """Test V1alpha1PodPreset""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_pod_preset.V1alpha1PodPreset() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_pod_preset_list.py b/kubernetes/test/test_v1alpha1_pod_preset_list.py deleted file mode 100644 index a30f9cbfa2..0000000000 --- a/kubernetes/test/test_v1alpha1_pod_preset_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_pod_preset_list import V1alpha1PodPresetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1PodPresetList(unittest.TestCase): - """V1alpha1PodPresetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PodPresetList(self): - """Test V1alpha1PodPresetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_pod_preset_list.V1alpha1PodPresetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_pod_preset_spec.py b/kubernetes/test/test_v1alpha1_pod_preset_spec.py deleted file mode 100644 index bf5daf0738..0000000000 --- a/kubernetes/test/test_v1alpha1_pod_preset_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_pod_preset_spec import V1alpha1PodPresetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1PodPresetSpec(unittest.TestCase): - """V1alpha1PodPresetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PodPresetSpec(self): - """Test V1alpha1PodPresetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_pod_preset_spec.V1alpha1PodPresetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_policy.py b/kubernetes/test/test_v1alpha1_policy.py deleted file mode 100644 index 21af054631..0000000000 --- a/kubernetes/test/test_v1alpha1_policy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_policy import V1alpha1Policy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1Policy(unittest.TestCase): - """V1alpha1Policy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1Policy(self): - """Test V1alpha1Policy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_policy.V1alpha1Policy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_policy_rule.py b/kubernetes/test/test_v1alpha1_policy_rule.py deleted file mode 100644 index 523bbb61d3..0000000000 --- a/kubernetes/test/test_v1alpha1_policy_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_policy_rule import V1alpha1PolicyRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1PolicyRule(unittest.TestCase): - """V1alpha1PolicyRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PolicyRule(self): - """Test V1alpha1PolicyRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_policy_rule.V1alpha1PolicyRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_priority_class.py b/kubernetes/test/test_v1alpha1_priority_class.py deleted file mode 100644 index 94fd5bf6f1..0000000000 --- a/kubernetes/test/test_v1alpha1_priority_class.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_priority_class import V1alpha1PriorityClass # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1PriorityClass(unittest.TestCase): - """V1alpha1PriorityClass unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PriorityClass(self): - """Test V1alpha1PriorityClass""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_priority_class.V1alpha1PriorityClass() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_priority_class_list.py b/kubernetes/test/test_v1alpha1_priority_class_list.py deleted file mode 100644 index 9d130509f3..0000000000 --- a/kubernetes/test/test_v1alpha1_priority_class_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_priority_class_list import V1alpha1PriorityClassList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1PriorityClassList(unittest.TestCase): - """V1alpha1PriorityClassList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1PriorityClassList(self): - """Test V1alpha1PriorityClassList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_priority_class_list.V1alpha1PriorityClassList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role.py b/kubernetes/test/test_v1alpha1_role.py deleted file mode 100644 index 2bdc888a18..0000000000 --- a/kubernetes/test/test_v1alpha1_role.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_role import V1alpha1Role # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1Role(unittest.TestCase): - """V1alpha1Role unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1Role(self): - """Test V1alpha1Role""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_role.V1alpha1Role() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role_binding.py b/kubernetes/test/test_v1alpha1_role_binding.py deleted file mode 100644 index d57d6ea5b3..0000000000 --- a/kubernetes/test/test_v1alpha1_role_binding.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_role_binding import V1alpha1RoleBinding # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1RoleBinding(unittest.TestCase): - """V1alpha1RoleBinding unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RoleBinding(self): - """Test V1alpha1RoleBinding""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_role_binding.V1alpha1RoleBinding() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role_binding_list.py b/kubernetes/test/test_v1alpha1_role_binding_list.py deleted file mode 100644 index 5ccc613f8f..0000000000 --- a/kubernetes/test/test_v1alpha1_role_binding_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_role_binding_list import V1alpha1RoleBindingList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1RoleBindingList(unittest.TestCase): - """V1alpha1RoleBindingList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RoleBindingList(self): - """Test V1alpha1RoleBindingList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_role_binding_list.V1alpha1RoleBindingList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role_list.py b/kubernetes/test/test_v1alpha1_role_list.py deleted file mode 100644 index aecbc128ff..0000000000 --- a/kubernetes/test/test_v1alpha1_role_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_role_list import V1alpha1RoleList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1RoleList(unittest.TestCase): - """V1alpha1RoleList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RoleList(self): - """Test V1alpha1RoleList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_role_list.V1alpha1RoleList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_role_ref.py b/kubernetes/test/test_v1alpha1_role_ref.py deleted file mode 100644 index f7e876bcd4..0000000000 --- a/kubernetes/test/test_v1alpha1_role_ref.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_role_ref import V1alpha1RoleRef # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1RoleRef(unittest.TestCase): - """V1alpha1RoleRef unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RoleRef(self): - """Test V1alpha1RoleRef""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_role_ref.V1alpha1RoleRef() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_runtime_class.py b/kubernetes/test/test_v1alpha1_runtime_class.py deleted file mode 100644 index 539b7898a2..0000000000 --- a/kubernetes/test/test_v1alpha1_runtime_class.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_runtime_class import V1alpha1RuntimeClass # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1RuntimeClass(unittest.TestCase): - """V1alpha1RuntimeClass unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RuntimeClass(self): - """Test V1alpha1RuntimeClass""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_runtime_class.V1alpha1RuntimeClass() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_runtime_class_list.py b/kubernetes/test/test_v1alpha1_runtime_class_list.py deleted file mode 100644 index 22a018728e..0000000000 --- a/kubernetes/test/test_v1alpha1_runtime_class_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_runtime_class_list import V1alpha1RuntimeClassList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1RuntimeClassList(unittest.TestCase): - """V1alpha1RuntimeClassList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RuntimeClassList(self): - """Test V1alpha1RuntimeClassList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_runtime_class_list.V1alpha1RuntimeClassList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_runtime_class_spec.py b/kubernetes/test/test_v1alpha1_runtime_class_spec.py deleted file mode 100644 index f9585001a7..0000000000 --- a/kubernetes/test/test_v1alpha1_runtime_class_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_runtime_class_spec import V1alpha1RuntimeClassSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1RuntimeClassSpec(unittest.TestCase): - """V1alpha1RuntimeClassSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1RuntimeClassSpec(self): - """Test V1alpha1RuntimeClassSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_runtime_class_spec.V1alpha1RuntimeClassSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_scheduling.py b/kubernetes/test/test_v1alpha1_scheduling.py deleted file mode 100644 index 3b54febeb0..0000000000 --- a/kubernetes/test/test_v1alpha1_scheduling.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_scheduling import V1alpha1Scheduling # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1Scheduling(unittest.TestCase): - """V1alpha1Scheduling unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1Scheduling(self): - """Test V1alpha1Scheduling""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_scheduling.V1alpha1Scheduling() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_service_reference.py b/kubernetes/test/test_v1alpha1_service_reference.py deleted file mode 100644 index 960310f21c..0000000000 --- a/kubernetes/test/test_v1alpha1_service_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_service_reference import V1alpha1ServiceReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1ServiceReference(unittest.TestCase): - """V1alpha1ServiceReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1ServiceReference(self): - """Test V1alpha1ServiceReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_service_reference.V1alpha1ServiceReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_subject.py b/kubernetes/test/test_v1alpha1_subject.py deleted file mode 100644 index b888c8e2e9..0000000000 --- a/kubernetes/test/test_v1alpha1_subject.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_subject import V1alpha1Subject # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1Subject(unittest.TestCase): - """V1alpha1Subject unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1Subject(self): - """Test V1alpha1Subject""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_subject.V1alpha1Subject() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_volume_attachment.py b/kubernetes/test/test_v1alpha1_volume_attachment.py deleted file mode 100644 index a871ce9984..0000000000 --- a/kubernetes/test/test_v1alpha1_volume_attachment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_volume_attachment import V1alpha1VolumeAttachment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1VolumeAttachment(unittest.TestCase): - """V1alpha1VolumeAttachment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VolumeAttachment(self): - """Test V1alpha1VolumeAttachment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_volume_attachment.V1alpha1VolumeAttachment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_volume_attachment_list.py b/kubernetes/test/test_v1alpha1_volume_attachment_list.py deleted file mode 100644 index a0e76a1512..0000000000 --- a/kubernetes/test/test_v1alpha1_volume_attachment_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_volume_attachment_list import V1alpha1VolumeAttachmentList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1VolumeAttachmentList(unittest.TestCase): - """V1alpha1VolumeAttachmentList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VolumeAttachmentList(self): - """Test V1alpha1VolumeAttachmentList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_volume_attachment_list.V1alpha1VolumeAttachmentList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_volume_attachment_source.py b/kubernetes/test/test_v1alpha1_volume_attachment_source.py deleted file mode 100644 index 01623d43f5..0000000000 --- a/kubernetes/test/test_v1alpha1_volume_attachment_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_volume_attachment_source import V1alpha1VolumeAttachmentSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1VolumeAttachmentSource(unittest.TestCase): - """V1alpha1VolumeAttachmentSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VolumeAttachmentSource(self): - """Test V1alpha1VolumeAttachmentSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_volume_attachment_source.V1alpha1VolumeAttachmentSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_volume_attachment_spec.py b/kubernetes/test/test_v1alpha1_volume_attachment_spec.py deleted file mode 100644 index 103985d747..0000000000 --- a/kubernetes/test/test_v1alpha1_volume_attachment_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_volume_attachment_spec import V1alpha1VolumeAttachmentSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1VolumeAttachmentSpec(unittest.TestCase): - """V1alpha1VolumeAttachmentSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VolumeAttachmentSpec(self): - """Test V1alpha1VolumeAttachmentSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_volume_attachment_spec.V1alpha1VolumeAttachmentSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_volume_attachment_status.py b/kubernetes/test/test_v1alpha1_volume_attachment_status.py deleted file mode 100644 index 8279aa635e..0000000000 --- a/kubernetes/test/test_v1alpha1_volume_attachment_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_volume_attachment_status import V1alpha1VolumeAttachmentStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1VolumeAttachmentStatus(unittest.TestCase): - """V1alpha1VolumeAttachmentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VolumeAttachmentStatus(self): - """Test V1alpha1VolumeAttachmentStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_volume_attachment_status.V1alpha1VolumeAttachmentStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_volume_error.py b/kubernetes/test/test_v1alpha1_volume_error.py deleted file mode 100644 index acad97e69e..0000000000 --- a/kubernetes/test/test_v1alpha1_volume_error.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_volume_error import V1alpha1VolumeError # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1VolumeError(unittest.TestCase): - """V1alpha1VolumeError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VolumeError(self): - """Test V1alpha1VolumeError""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_volume_error.V1alpha1VolumeError() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_webhook.py b/kubernetes/test/test_v1alpha1_webhook.py deleted file mode 100644 index 054ad92e53..0000000000 --- a/kubernetes/test/test_v1alpha1_webhook.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_webhook import V1alpha1Webhook # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1Webhook(unittest.TestCase): - """V1alpha1Webhook unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1Webhook(self): - """Test V1alpha1Webhook""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_webhook.V1alpha1Webhook() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_webhook_client_config.py b/kubernetes/test/test_v1alpha1_webhook_client_config.py deleted file mode 100644 index e80489b112..0000000000 --- a/kubernetes/test/test_v1alpha1_webhook_client_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_webhook_client_config import V1alpha1WebhookClientConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1WebhookClientConfig(unittest.TestCase): - """V1alpha1WebhookClientConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1WebhookClientConfig(self): - """Test V1alpha1WebhookClientConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_webhook_client_config.V1alpha1WebhookClientConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1alpha1_webhook_throttle_config.py b/kubernetes/test/test_v1alpha1_webhook_throttle_config.py deleted file mode 100644 index 7b1f06d825..0000000000 --- a/kubernetes/test/test_v1alpha1_webhook_throttle_config.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1alpha1_webhook_throttle_config import V1alpha1WebhookThrottleConfig # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1alpha1WebhookThrottleConfig(unittest.TestCase): - """V1alpha1WebhookThrottleConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1WebhookThrottleConfig(self): - """Test V1alpha1WebhookThrottleConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1alpha1_webhook_throttle_config.V1alpha1WebhookThrottleConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_aggregation_rule.py b/kubernetes/test/test_v1beta1_aggregation_rule.py deleted file mode 100644 index 982cc7e56d..0000000000 --- a/kubernetes/test/test_v1beta1_aggregation_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_aggregation_rule import V1beta1AggregationRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1AggregationRule(unittest.TestCase): - """V1beta1AggregationRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1AggregationRule(self): - """Test V1beta1AggregationRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_aggregation_rule.V1beta1AggregationRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_api_service.py b/kubernetes/test/test_v1beta1_api_service.py deleted file mode 100644 index d3b06e76ba..0000000000 --- a/kubernetes/test/test_v1beta1_api_service.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_api_service import V1beta1APIService # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1APIService(unittest.TestCase): - """V1beta1APIService unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1APIService(self): - """Test V1beta1APIService""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_api_service.V1beta1APIService() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_api_service_condition.py b/kubernetes/test/test_v1beta1_api_service_condition.py deleted file mode 100644 index da4949234e..0000000000 --- a/kubernetes/test/test_v1beta1_api_service_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_api_service_condition import V1beta1APIServiceCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1APIServiceCondition(unittest.TestCase): - """V1beta1APIServiceCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1APIServiceCondition(self): - """Test V1beta1APIServiceCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_api_service_condition.V1beta1APIServiceCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_api_service_list.py b/kubernetes/test/test_v1beta1_api_service_list.py deleted file mode 100644 index 4267d30c6c..0000000000 --- a/kubernetes/test/test_v1beta1_api_service_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_api_service_list import V1beta1APIServiceList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1APIServiceList(unittest.TestCase): - """V1beta1APIServiceList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1APIServiceList(self): - """Test V1beta1APIServiceList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_api_service_list.V1beta1APIServiceList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_api_service_spec.py b/kubernetes/test/test_v1beta1_api_service_spec.py deleted file mode 100644 index 17e2ff7692..0000000000 --- a/kubernetes/test/test_v1beta1_api_service_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_api_service_spec import V1beta1APIServiceSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1APIServiceSpec(unittest.TestCase): - """V1beta1APIServiceSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1APIServiceSpec(self): - """Test V1beta1APIServiceSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_api_service_spec.V1beta1APIServiceSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_api_service_status.py b/kubernetes/test/test_v1beta1_api_service_status.py deleted file mode 100644 index c5fc1a047d..0000000000 --- a/kubernetes/test/test_v1beta1_api_service_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_api_service_status import V1beta1APIServiceStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1APIServiceStatus(unittest.TestCase): - """V1beta1APIServiceStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1APIServiceStatus(self): - """Test V1beta1APIServiceStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_api_service_status.V1beta1APIServiceStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request.py b/kubernetes/test/test_v1beta1_certificate_signing_request.py deleted file mode 100644 index b42b12a1b5..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_certificate_signing_request import V1beta1CertificateSigningRequest # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CertificateSigningRequest(unittest.TestCase): - """V1beta1CertificateSigningRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequest(self): - """Test V1beta1CertificateSigningRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_certificate_signing_request.V1beta1CertificateSigningRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py b/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py deleted file mode 100644 index f7752977c9..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_certificate_signing_request_condition import V1beta1CertificateSigningRequestCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CertificateSigningRequestCondition(unittest.TestCase): - """V1beta1CertificateSigningRequestCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequestCondition(self): - """Test V1beta1CertificateSigningRequestCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_certificate_signing_request_condition.V1beta1CertificateSigningRequestCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_list.py b/kubernetes/test/test_v1beta1_certificate_signing_request_list.py deleted file mode 100644 index 6c617c6aa0..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_certificate_signing_request_list import V1beta1CertificateSigningRequestList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CertificateSigningRequestList(unittest.TestCase): - """V1beta1CertificateSigningRequestList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequestList(self): - """Test V1beta1CertificateSigningRequestList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_certificate_signing_request_list.V1beta1CertificateSigningRequestList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py b/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py deleted file mode 100644 index 9ad0c04cd1..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_certificate_signing_request_spec import V1beta1CertificateSigningRequestSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CertificateSigningRequestSpec(unittest.TestCase): - """V1beta1CertificateSigningRequestSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequestSpec(self): - """Test V1beta1CertificateSigningRequestSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_certificate_signing_request_spec.V1beta1CertificateSigningRequestSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_certificate_signing_request_status.py b/kubernetes/test/test_v1beta1_certificate_signing_request_status.py deleted file mode 100644 index fedc9ae9df..0000000000 --- a/kubernetes/test/test_v1beta1_certificate_signing_request_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_certificate_signing_request_status import V1beta1CertificateSigningRequestStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CertificateSigningRequestStatus(unittest.TestCase): - """V1beta1CertificateSigningRequestStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CertificateSigningRequestStatus(self): - """Test V1beta1CertificateSigningRequestStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_certificate_signing_request_status.V1beta1CertificateSigningRequestStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role.py b/kubernetes/test/test_v1beta1_cluster_role.py deleted file mode 100644 index d71f977db3..0000000000 --- a/kubernetes/test/test_v1beta1_cluster_role.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_cluster_role import V1beta1ClusterRole # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ClusterRole(unittest.TestCase): - """V1beta1ClusterRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ClusterRole(self): - """Test V1beta1ClusterRole""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_cluster_role.V1beta1ClusterRole() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role_binding.py b/kubernetes/test/test_v1beta1_cluster_role_binding.py deleted file mode 100644 index a00725e9e7..0000000000 --- a/kubernetes/test/test_v1beta1_cluster_role_binding.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_cluster_role_binding import V1beta1ClusterRoleBinding # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ClusterRoleBinding(unittest.TestCase): - """V1beta1ClusterRoleBinding unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ClusterRoleBinding(self): - """Test V1beta1ClusterRoleBinding""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_cluster_role_binding.V1beta1ClusterRoleBinding() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role_binding_list.py b/kubernetes/test/test_v1beta1_cluster_role_binding_list.py deleted file mode 100644 index 8533f5c698..0000000000 --- a/kubernetes/test/test_v1beta1_cluster_role_binding_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_cluster_role_binding_list import V1beta1ClusterRoleBindingList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ClusterRoleBindingList(unittest.TestCase): - """V1beta1ClusterRoleBindingList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ClusterRoleBindingList(self): - """Test V1beta1ClusterRoleBindingList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_cluster_role_binding_list.V1beta1ClusterRoleBindingList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cluster_role_list.py b/kubernetes/test/test_v1beta1_cluster_role_list.py deleted file mode 100644 index 3a1939cc05..0000000000 --- a/kubernetes/test/test_v1beta1_cluster_role_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_cluster_role_list import V1beta1ClusterRoleList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ClusterRoleList(unittest.TestCase): - """V1beta1ClusterRoleList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ClusterRoleList(self): - """Test V1beta1ClusterRoleList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_cluster_role_list.V1beta1ClusterRoleList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_controller_revision.py b/kubernetes/test/test_v1beta1_controller_revision.py deleted file mode 100644 index 6484256a7c..0000000000 --- a/kubernetes/test/test_v1beta1_controller_revision.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_controller_revision import V1beta1ControllerRevision # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ControllerRevision(unittest.TestCase): - """V1beta1ControllerRevision unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ControllerRevision(self): - """Test V1beta1ControllerRevision""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_controller_revision.V1beta1ControllerRevision() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_controller_revision_list.py b/kubernetes/test/test_v1beta1_controller_revision_list.py deleted file mode 100644 index 9ac1ecf27c..0000000000 --- a/kubernetes/test/test_v1beta1_controller_revision_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_controller_revision_list import V1beta1ControllerRevisionList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ControllerRevisionList(unittest.TestCase): - """V1beta1ControllerRevisionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ControllerRevisionList(self): - """Test V1beta1ControllerRevisionList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_controller_revision_list.V1beta1ControllerRevisionList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cron_job.py b/kubernetes/test/test_v1beta1_cron_job.py deleted file mode 100644 index e4eb2a750e..0000000000 --- a/kubernetes/test/test_v1beta1_cron_job.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_cron_job import V1beta1CronJob # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CronJob(unittest.TestCase): - """V1beta1CronJob unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CronJob(self): - """Test V1beta1CronJob""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_cron_job.V1beta1CronJob() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cron_job_list.py b/kubernetes/test/test_v1beta1_cron_job_list.py deleted file mode 100644 index 9f509e0879..0000000000 --- a/kubernetes/test/test_v1beta1_cron_job_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_cron_job_list import V1beta1CronJobList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CronJobList(unittest.TestCase): - """V1beta1CronJobList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CronJobList(self): - """Test V1beta1CronJobList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_cron_job_list.V1beta1CronJobList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cron_job_spec.py b/kubernetes/test/test_v1beta1_cron_job_spec.py deleted file mode 100644 index 2c9ad713ee..0000000000 --- a/kubernetes/test/test_v1beta1_cron_job_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_cron_job_spec import V1beta1CronJobSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CronJobSpec(unittest.TestCase): - """V1beta1CronJobSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CronJobSpec(self): - """Test V1beta1CronJobSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_cron_job_spec.V1beta1CronJobSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_cron_job_status.py b/kubernetes/test/test_v1beta1_cron_job_status.py deleted file mode 100644 index 92066404f8..0000000000 --- a/kubernetes/test/test_v1beta1_cron_job_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_cron_job_status import V1beta1CronJobStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CronJobStatus(unittest.TestCase): - """V1beta1CronJobStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CronJobStatus(self): - """Test V1beta1CronJobStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_cron_job_status.V1beta1CronJobStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_csi_driver.py b/kubernetes/test/test_v1beta1_csi_driver.py deleted file mode 100644 index 08806edf9d..0000000000 --- a/kubernetes/test/test_v1beta1_csi_driver.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_csi_driver import V1beta1CSIDriver # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CSIDriver(unittest.TestCase): - """V1beta1CSIDriver unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CSIDriver(self): - """Test V1beta1CSIDriver""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_csi_driver.V1beta1CSIDriver() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_csi_driver_list.py b/kubernetes/test/test_v1beta1_csi_driver_list.py deleted file mode 100644 index dfc22085f3..0000000000 --- a/kubernetes/test/test_v1beta1_csi_driver_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_csi_driver_list import V1beta1CSIDriverList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CSIDriverList(unittest.TestCase): - """V1beta1CSIDriverList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CSIDriverList(self): - """Test V1beta1CSIDriverList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_csi_driver_list.V1beta1CSIDriverList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_csi_driver_spec.py b/kubernetes/test/test_v1beta1_csi_driver_spec.py deleted file mode 100644 index 6d8aec1b3c..0000000000 --- a/kubernetes/test/test_v1beta1_csi_driver_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_csi_driver_spec import V1beta1CSIDriverSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CSIDriverSpec(unittest.TestCase): - """V1beta1CSIDriverSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CSIDriverSpec(self): - """Test V1beta1CSIDriverSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_csi_driver_spec.V1beta1CSIDriverSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_csi_node.py b/kubernetes/test/test_v1beta1_csi_node.py deleted file mode 100644 index 42e6bc078d..0000000000 --- a/kubernetes/test/test_v1beta1_csi_node.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_csi_node import V1beta1CSINode # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CSINode(unittest.TestCase): - """V1beta1CSINode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CSINode(self): - """Test V1beta1CSINode""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_csi_node.V1beta1CSINode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_csi_node_driver.py b/kubernetes/test/test_v1beta1_csi_node_driver.py deleted file mode 100644 index af53a9d70e..0000000000 --- a/kubernetes/test/test_v1beta1_csi_node_driver.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_csi_node_driver import V1beta1CSINodeDriver # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CSINodeDriver(unittest.TestCase): - """V1beta1CSINodeDriver unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CSINodeDriver(self): - """Test V1beta1CSINodeDriver""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_csi_node_driver.V1beta1CSINodeDriver() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_csi_node_list.py b/kubernetes/test/test_v1beta1_csi_node_list.py deleted file mode 100644 index dad93aa901..0000000000 --- a/kubernetes/test/test_v1beta1_csi_node_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_csi_node_list import V1beta1CSINodeList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CSINodeList(unittest.TestCase): - """V1beta1CSINodeList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CSINodeList(self): - """Test V1beta1CSINodeList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_csi_node_list.V1beta1CSINodeList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_csi_node_spec.py b/kubernetes/test/test_v1beta1_csi_node_spec.py deleted file mode 100644 index 09df5375d0..0000000000 --- a/kubernetes/test/test_v1beta1_csi_node_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_csi_node_spec import V1beta1CSINodeSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CSINodeSpec(unittest.TestCase): - """V1beta1CSINodeSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CSINodeSpec(self): - """Test V1beta1CSINodeSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_csi_node_spec.V1beta1CSINodeSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_column_definition.py b/kubernetes/test/test_v1beta1_custom_resource_column_definition.py deleted file mode 100644 index eb306da896..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_column_definition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_column_definition import V1beta1CustomResourceColumnDefinition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceColumnDefinition(unittest.TestCase): - """V1beta1CustomResourceColumnDefinition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceColumnDefinition(self): - """Test V1beta1CustomResourceColumnDefinition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_column_definition.V1beta1CustomResourceColumnDefinition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_conversion.py b/kubernetes/test/test_v1beta1_custom_resource_conversion.py deleted file mode 100644 index 8129cbe1bb..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_conversion.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_conversion import V1beta1CustomResourceConversion # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceConversion(unittest.TestCase): - """V1beta1CustomResourceConversion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceConversion(self): - """Test V1beta1CustomResourceConversion""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_conversion.V1beta1CustomResourceConversion() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition.py b/kubernetes/test/test_v1beta1_custom_resource_definition.py deleted file mode 100644 index 8e46f11ea1..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_definition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_definition import V1beta1CustomResourceDefinition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceDefinition(unittest.TestCase): - """V1beta1CustomResourceDefinition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceDefinition(self): - """Test V1beta1CustomResourceDefinition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_definition.V1beta1CustomResourceDefinition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_condition.py b/kubernetes/test/test_v1beta1_custom_resource_definition_condition.py deleted file mode 100644 index ee835ddf8e..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_definition_condition import V1beta1CustomResourceDefinitionCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceDefinitionCondition(unittest.TestCase): - """V1beta1CustomResourceDefinitionCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceDefinitionCondition(self): - """Test V1beta1CustomResourceDefinitionCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_definition_condition.V1beta1CustomResourceDefinitionCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_list.py b/kubernetes/test/test_v1beta1_custom_resource_definition_list.py deleted file mode 100644 index 5d1ec1e613..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_definition_list import V1beta1CustomResourceDefinitionList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceDefinitionList(unittest.TestCase): - """V1beta1CustomResourceDefinitionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceDefinitionList(self): - """Test V1beta1CustomResourceDefinitionList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_definition_list.V1beta1CustomResourceDefinitionList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_names.py b/kubernetes/test/test_v1beta1_custom_resource_definition_names.py deleted file mode 100644 index bf3a428893..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_names.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_definition_names import V1beta1CustomResourceDefinitionNames # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceDefinitionNames(unittest.TestCase): - """V1beta1CustomResourceDefinitionNames unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceDefinitionNames(self): - """Test V1beta1CustomResourceDefinitionNames""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_definition_names.V1beta1CustomResourceDefinitionNames() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_spec.py b/kubernetes/test/test_v1beta1_custom_resource_definition_spec.py deleted file mode 100644 index e33911ee47..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_definition_spec import V1beta1CustomResourceDefinitionSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceDefinitionSpec(unittest.TestCase): - """V1beta1CustomResourceDefinitionSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceDefinitionSpec(self): - """Test V1beta1CustomResourceDefinitionSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_definition_spec.V1beta1CustomResourceDefinitionSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_status.py b/kubernetes/test/test_v1beta1_custom_resource_definition_status.py deleted file mode 100644 index c3dd12d9e2..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_definition_status import V1beta1CustomResourceDefinitionStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceDefinitionStatus(unittest.TestCase): - """V1beta1CustomResourceDefinitionStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceDefinitionStatus(self): - """Test V1beta1CustomResourceDefinitionStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_definition_status.V1beta1CustomResourceDefinitionStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_definition_version.py b/kubernetes/test/test_v1beta1_custom_resource_definition_version.py deleted file mode 100644 index a0aaac3a1f..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_definition_version.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_definition_version import V1beta1CustomResourceDefinitionVersion # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceDefinitionVersion(unittest.TestCase): - """V1beta1CustomResourceDefinitionVersion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceDefinitionVersion(self): - """Test V1beta1CustomResourceDefinitionVersion""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_definition_version.V1beta1CustomResourceDefinitionVersion() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_subresource_scale.py b/kubernetes/test/test_v1beta1_custom_resource_subresource_scale.py deleted file mode 100644 index c97327ce37..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_subresource_scale.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_subresource_scale import V1beta1CustomResourceSubresourceScale # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceSubresourceScale(unittest.TestCase): - """V1beta1CustomResourceSubresourceScale unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceSubresourceScale(self): - """Test V1beta1CustomResourceSubresourceScale""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_subresource_scale.V1beta1CustomResourceSubresourceScale() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_subresources.py b/kubernetes/test/test_v1beta1_custom_resource_subresources.py deleted file mode 100644 index 0c4a9a30a1..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_subresources.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_subresources import V1beta1CustomResourceSubresources # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceSubresources(unittest.TestCase): - """V1beta1CustomResourceSubresources unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceSubresources(self): - """Test V1beta1CustomResourceSubresources""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_subresources.V1beta1CustomResourceSubresources() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_custom_resource_validation.py b/kubernetes/test/test_v1beta1_custom_resource_validation.py deleted file mode 100644 index 9da903c82d..0000000000 --- a/kubernetes/test/test_v1beta1_custom_resource_validation.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_custom_resource_validation import V1beta1CustomResourceValidation # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1CustomResourceValidation(unittest.TestCase): - """V1beta1CustomResourceValidation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1CustomResourceValidation(self): - """Test V1beta1CustomResourceValidation""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_custom_resource_validation.V1beta1CustomResourceValidation() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_daemon_set.py b/kubernetes/test/test_v1beta1_daemon_set.py deleted file mode 100644 index f93bc24822..0000000000 --- a/kubernetes/test/test_v1beta1_daemon_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_daemon_set import V1beta1DaemonSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1DaemonSet(unittest.TestCase): - """V1beta1DaemonSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1DaemonSet(self): - """Test V1beta1DaemonSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_daemon_set.V1beta1DaemonSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_daemon_set_condition.py b/kubernetes/test/test_v1beta1_daemon_set_condition.py deleted file mode 100644 index 32a15d8720..0000000000 --- a/kubernetes/test/test_v1beta1_daemon_set_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_daemon_set_condition import V1beta1DaemonSetCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1DaemonSetCondition(unittest.TestCase): - """V1beta1DaemonSetCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1DaemonSetCondition(self): - """Test V1beta1DaemonSetCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_daemon_set_condition.V1beta1DaemonSetCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_daemon_set_list.py b/kubernetes/test/test_v1beta1_daemon_set_list.py deleted file mode 100644 index 6b552e6522..0000000000 --- a/kubernetes/test/test_v1beta1_daemon_set_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_daemon_set_list import V1beta1DaemonSetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1DaemonSetList(unittest.TestCase): - """V1beta1DaemonSetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1DaemonSetList(self): - """Test V1beta1DaemonSetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_daemon_set_list.V1beta1DaemonSetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_daemon_set_spec.py b/kubernetes/test/test_v1beta1_daemon_set_spec.py deleted file mode 100644 index d24a0081a4..0000000000 --- a/kubernetes/test/test_v1beta1_daemon_set_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_daemon_set_spec import V1beta1DaemonSetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1DaemonSetSpec(unittest.TestCase): - """V1beta1DaemonSetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1DaemonSetSpec(self): - """Test V1beta1DaemonSetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_daemon_set_spec.V1beta1DaemonSetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_daemon_set_status.py b/kubernetes/test/test_v1beta1_daemon_set_status.py deleted file mode 100644 index 78eef77b24..0000000000 --- a/kubernetes/test/test_v1beta1_daemon_set_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_daemon_set_status import V1beta1DaemonSetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1DaemonSetStatus(unittest.TestCase): - """V1beta1DaemonSetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1DaemonSetStatus(self): - """Test V1beta1DaemonSetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_daemon_set_status.V1beta1DaemonSetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py b/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py deleted file mode 100644 index 006ebe2573..0000000000 --- a/kubernetes/test/test_v1beta1_daemon_set_update_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_daemon_set_update_strategy import V1beta1DaemonSetUpdateStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1DaemonSetUpdateStrategy(unittest.TestCase): - """V1beta1DaemonSetUpdateStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1DaemonSetUpdateStrategy(self): - """Test V1beta1DaemonSetUpdateStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_daemon_set_update_strategy.V1beta1DaemonSetUpdateStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_event.py b/kubernetes/test/test_v1beta1_event.py deleted file mode 100644 index b2a1132bfc..0000000000 --- a/kubernetes/test/test_v1beta1_event.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_event import V1beta1Event # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1Event(unittest.TestCase): - """V1beta1Event unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Event(self): - """Test V1beta1Event""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_event.V1beta1Event() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_event_list.py b/kubernetes/test/test_v1beta1_event_list.py deleted file mode 100644 index fc5618a551..0000000000 --- a/kubernetes/test/test_v1beta1_event_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_event_list import V1beta1EventList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1EventList(unittest.TestCase): - """V1beta1EventList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1EventList(self): - """Test V1beta1EventList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_event_list.V1beta1EventList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_event_series.py b/kubernetes/test/test_v1beta1_event_series.py deleted file mode 100644 index c5bb277a91..0000000000 --- a/kubernetes/test/test_v1beta1_event_series.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_event_series import V1beta1EventSeries # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1EventSeries(unittest.TestCase): - """V1beta1EventSeries unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1EventSeries(self): - """Test V1beta1EventSeries""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_event_series.V1beta1EventSeries() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_eviction.py b/kubernetes/test/test_v1beta1_eviction.py deleted file mode 100644 index 8b2ee42afd..0000000000 --- a/kubernetes/test/test_v1beta1_eviction.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_eviction import V1beta1Eviction # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1Eviction(unittest.TestCase): - """V1beta1Eviction unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Eviction(self): - """Test V1beta1Eviction""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_eviction.V1beta1Eviction() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_external_documentation.py b/kubernetes/test/test_v1beta1_external_documentation.py deleted file mode 100644 index baddfbae0d..0000000000 --- a/kubernetes/test/test_v1beta1_external_documentation.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_external_documentation import V1beta1ExternalDocumentation # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ExternalDocumentation(unittest.TestCase): - """V1beta1ExternalDocumentation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ExternalDocumentation(self): - """Test V1beta1ExternalDocumentation""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_external_documentation.V1beta1ExternalDocumentation() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_ip_block.py b/kubernetes/test/test_v1beta1_ip_block.py deleted file mode 100644 index 2572deef1c..0000000000 --- a/kubernetes/test/test_v1beta1_ip_block.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_ip_block import V1beta1IPBlock # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1IPBlock(unittest.TestCase): - """V1beta1IPBlock unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1IPBlock(self): - """Test V1beta1IPBlock""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_ip_block.V1beta1IPBlock() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_job_template_spec.py b/kubernetes/test/test_v1beta1_job_template_spec.py deleted file mode 100644 index c8322cdbba..0000000000 --- a/kubernetes/test/test_v1beta1_job_template_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_job_template_spec import V1beta1JobTemplateSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1JobTemplateSpec(unittest.TestCase): - """V1beta1JobTemplateSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1JobTemplateSpec(self): - """Test V1beta1JobTemplateSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_job_template_spec.V1beta1JobTemplateSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_json_schema_props.py b/kubernetes/test/test_v1beta1_json_schema_props.py deleted file mode 100644 index 82206deed6..0000000000 --- a/kubernetes/test/test_v1beta1_json_schema_props.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_json_schema_props import V1beta1JSONSchemaProps # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1JSONSchemaProps(unittest.TestCase): - """V1beta1JSONSchemaProps unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1JSONSchemaProps(self): - """Test V1beta1JSONSchemaProps""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_json_schema_props.V1beta1JSONSchemaProps() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_lease.py b/kubernetes/test/test_v1beta1_lease.py deleted file mode 100644 index 2038cdf2c2..0000000000 --- a/kubernetes/test/test_v1beta1_lease.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_lease import V1beta1Lease # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1Lease(unittest.TestCase): - """V1beta1Lease unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Lease(self): - """Test V1beta1Lease""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_lease.V1beta1Lease() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_lease_list.py b/kubernetes/test/test_v1beta1_lease_list.py deleted file mode 100644 index e48bed5b56..0000000000 --- a/kubernetes/test/test_v1beta1_lease_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_lease_list import V1beta1LeaseList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1LeaseList(unittest.TestCase): - """V1beta1LeaseList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1LeaseList(self): - """Test V1beta1LeaseList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_lease_list.V1beta1LeaseList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_lease_spec.py b/kubernetes/test/test_v1beta1_lease_spec.py deleted file mode 100644 index baccdd3b47..0000000000 --- a/kubernetes/test/test_v1beta1_lease_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_lease_spec import V1beta1LeaseSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1LeaseSpec(unittest.TestCase): - """V1beta1LeaseSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1LeaseSpec(self): - """Test V1beta1LeaseSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_lease_spec.V1beta1LeaseSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_local_subject_access_review.py b/kubernetes/test/test_v1beta1_local_subject_access_review.py deleted file mode 100644 index c0aa374d86..0000000000 --- a/kubernetes/test/test_v1beta1_local_subject_access_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_local_subject_access_review import V1beta1LocalSubjectAccessReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1LocalSubjectAccessReview(unittest.TestCase): - """V1beta1LocalSubjectAccessReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1LocalSubjectAccessReview(self): - """Test V1beta1LocalSubjectAccessReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_local_subject_access_review.V1beta1LocalSubjectAccessReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_mutating_webhook.py b/kubernetes/test/test_v1beta1_mutating_webhook.py deleted file mode 100644 index 245dfb3492..0000000000 --- a/kubernetes/test/test_v1beta1_mutating_webhook.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_mutating_webhook import V1beta1MutatingWebhook # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1MutatingWebhook(unittest.TestCase): - """V1beta1MutatingWebhook unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1MutatingWebhook(self): - """Test V1beta1MutatingWebhook""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_mutating_webhook.V1beta1MutatingWebhook() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_mutating_webhook_configuration.py b/kubernetes/test/test_v1beta1_mutating_webhook_configuration.py deleted file mode 100644 index 956726e303..0000000000 --- a/kubernetes/test/test_v1beta1_mutating_webhook_configuration.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_mutating_webhook_configuration import V1beta1MutatingWebhookConfiguration # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1MutatingWebhookConfiguration(unittest.TestCase): - """V1beta1MutatingWebhookConfiguration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1MutatingWebhookConfiguration(self): - """Test V1beta1MutatingWebhookConfiguration""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_mutating_webhook_configuration.V1beta1MutatingWebhookConfiguration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_mutating_webhook_configuration_list.py b/kubernetes/test/test_v1beta1_mutating_webhook_configuration_list.py deleted file mode 100644 index 8cb01e363d..0000000000 --- a/kubernetes/test/test_v1beta1_mutating_webhook_configuration_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_mutating_webhook_configuration_list import V1beta1MutatingWebhookConfigurationList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1MutatingWebhookConfigurationList(unittest.TestCase): - """V1beta1MutatingWebhookConfigurationList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1MutatingWebhookConfigurationList(self): - """Test V1beta1MutatingWebhookConfigurationList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_mutating_webhook_configuration_list.V1beta1MutatingWebhookConfigurationList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_network_policy.py b/kubernetes/test/test_v1beta1_network_policy.py deleted file mode 100644 index d3e28e95be..0000000000 --- a/kubernetes/test/test_v1beta1_network_policy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_network_policy import V1beta1NetworkPolicy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1NetworkPolicy(unittest.TestCase): - """V1beta1NetworkPolicy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NetworkPolicy(self): - """Test V1beta1NetworkPolicy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_network_policy.V1beta1NetworkPolicy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_network_policy_egress_rule.py b/kubernetes/test/test_v1beta1_network_policy_egress_rule.py deleted file mode 100644 index eb63d1a0be..0000000000 --- a/kubernetes/test/test_v1beta1_network_policy_egress_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_network_policy_egress_rule import V1beta1NetworkPolicyEgressRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1NetworkPolicyEgressRule(unittest.TestCase): - """V1beta1NetworkPolicyEgressRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NetworkPolicyEgressRule(self): - """Test V1beta1NetworkPolicyEgressRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_network_policy_egress_rule.V1beta1NetworkPolicyEgressRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py b/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py deleted file mode 100644 index f6fee6f012..0000000000 --- a/kubernetes/test/test_v1beta1_network_policy_ingress_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_network_policy_ingress_rule import V1beta1NetworkPolicyIngressRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1NetworkPolicyIngressRule(unittest.TestCase): - """V1beta1NetworkPolicyIngressRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NetworkPolicyIngressRule(self): - """Test V1beta1NetworkPolicyIngressRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_network_policy_ingress_rule.V1beta1NetworkPolicyIngressRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_network_policy_list.py b/kubernetes/test/test_v1beta1_network_policy_list.py deleted file mode 100644 index 83535223c9..0000000000 --- a/kubernetes/test/test_v1beta1_network_policy_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_network_policy_list import V1beta1NetworkPolicyList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1NetworkPolicyList(unittest.TestCase): - """V1beta1NetworkPolicyList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NetworkPolicyList(self): - """Test V1beta1NetworkPolicyList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_network_policy_list.V1beta1NetworkPolicyList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_network_policy_peer.py b/kubernetes/test/test_v1beta1_network_policy_peer.py deleted file mode 100644 index 041a3df0bd..0000000000 --- a/kubernetes/test/test_v1beta1_network_policy_peer.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_network_policy_peer import V1beta1NetworkPolicyPeer # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1NetworkPolicyPeer(unittest.TestCase): - """V1beta1NetworkPolicyPeer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NetworkPolicyPeer(self): - """Test V1beta1NetworkPolicyPeer""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_network_policy_peer.V1beta1NetworkPolicyPeer() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_network_policy_port.py b/kubernetes/test/test_v1beta1_network_policy_port.py deleted file mode 100644 index fb2df857e0..0000000000 --- a/kubernetes/test/test_v1beta1_network_policy_port.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_network_policy_port import V1beta1NetworkPolicyPort # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1NetworkPolicyPort(unittest.TestCase): - """V1beta1NetworkPolicyPort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NetworkPolicyPort(self): - """Test V1beta1NetworkPolicyPort""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_network_policy_port.V1beta1NetworkPolicyPort() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_network_policy_spec.py b/kubernetes/test/test_v1beta1_network_policy_spec.py deleted file mode 100644 index 24a97d4657..0000000000 --- a/kubernetes/test/test_v1beta1_network_policy_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_network_policy_spec import V1beta1NetworkPolicySpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1NetworkPolicySpec(unittest.TestCase): - """V1beta1NetworkPolicySpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NetworkPolicySpec(self): - """Test V1beta1NetworkPolicySpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_network_policy_spec.V1beta1NetworkPolicySpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_non_resource_attributes.py b/kubernetes/test/test_v1beta1_non_resource_attributes.py deleted file mode 100644 index 5831954a97..0000000000 --- a/kubernetes/test/test_v1beta1_non_resource_attributes.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_non_resource_attributes import V1beta1NonResourceAttributes # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1NonResourceAttributes(unittest.TestCase): - """V1beta1NonResourceAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NonResourceAttributes(self): - """Test V1beta1NonResourceAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_non_resource_attributes.V1beta1NonResourceAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_non_resource_rule.py b/kubernetes/test/test_v1beta1_non_resource_rule.py deleted file mode 100644 index bae2fa8f00..0000000000 --- a/kubernetes/test/test_v1beta1_non_resource_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_non_resource_rule import V1beta1NonResourceRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1NonResourceRule(unittest.TestCase): - """V1beta1NonResourceRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1NonResourceRule(self): - """Test V1beta1NonResourceRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_non_resource_rule.V1beta1NonResourceRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_overhead.py b/kubernetes/test/test_v1beta1_overhead.py deleted file mode 100644 index 3723ff352a..0000000000 --- a/kubernetes/test/test_v1beta1_overhead.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_overhead import V1beta1Overhead # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1Overhead(unittest.TestCase): - """V1beta1Overhead unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Overhead(self): - """Test V1beta1Overhead""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_overhead.V1beta1Overhead() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget.py b/kubernetes/test/test_v1beta1_pod_disruption_budget.py deleted file mode 100644 index e57445d156..0000000000 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_pod_disruption_budget import V1beta1PodDisruptionBudget # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1PodDisruptionBudget(unittest.TestCase): - """V1beta1PodDisruptionBudget unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1PodDisruptionBudget(self): - """Test V1beta1PodDisruptionBudget""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_pod_disruption_budget.V1beta1PodDisruptionBudget() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py deleted file mode 100644 index e40ada4f2d..0000000000 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_pod_disruption_budget_list import V1beta1PodDisruptionBudgetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1PodDisruptionBudgetList(unittest.TestCase): - """V1beta1PodDisruptionBudgetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1PodDisruptionBudgetList(self): - """Test V1beta1PodDisruptionBudgetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_pod_disruption_budget_list.V1beta1PodDisruptionBudgetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py deleted file mode 100644 index e5ddb0a3fa..0000000000 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_pod_disruption_budget_spec import V1beta1PodDisruptionBudgetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1PodDisruptionBudgetSpec(unittest.TestCase): - """V1beta1PodDisruptionBudgetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1PodDisruptionBudgetSpec(self): - """Test V1beta1PodDisruptionBudgetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_pod_disruption_budget_spec.V1beta1PodDisruptionBudgetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py b/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py deleted file mode 100644 index 84dea66071..0000000000 --- a/kubernetes/test/test_v1beta1_pod_disruption_budget_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_pod_disruption_budget_status import V1beta1PodDisruptionBudgetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1PodDisruptionBudgetStatus(unittest.TestCase): - """V1beta1PodDisruptionBudgetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1PodDisruptionBudgetStatus(self): - """Test V1beta1PodDisruptionBudgetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_pod_disruption_budget_status.V1beta1PodDisruptionBudgetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_policy_rule.py b/kubernetes/test/test_v1beta1_policy_rule.py deleted file mode 100644 index 7521a584b2..0000000000 --- a/kubernetes/test/test_v1beta1_policy_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_policy_rule import V1beta1PolicyRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1PolicyRule(unittest.TestCase): - """V1beta1PolicyRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1PolicyRule(self): - """Test V1beta1PolicyRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_policy_rule.V1beta1PolicyRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_priority_class.py b/kubernetes/test/test_v1beta1_priority_class.py deleted file mode 100644 index 190182d888..0000000000 --- a/kubernetes/test/test_v1beta1_priority_class.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_priority_class import V1beta1PriorityClass # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1PriorityClass(unittest.TestCase): - """V1beta1PriorityClass unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1PriorityClass(self): - """Test V1beta1PriorityClass""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_priority_class.V1beta1PriorityClass() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_priority_class_list.py b/kubernetes/test/test_v1beta1_priority_class_list.py deleted file mode 100644 index 456bf6e4c3..0000000000 --- a/kubernetes/test/test_v1beta1_priority_class_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_priority_class_list import V1beta1PriorityClassList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1PriorityClassList(unittest.TestCase): - """V1beta1PriorityClassList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1PriorityClassList(self): - """Test V1beta1PriorityClassList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_priority_class_list.V1beta1PriorityClassList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_replica_set.py b/kubernetes/test/test_v1beta1_replica_set.py deleted file mode 100644 index 738ff30de5..0000000000 --- a/kubernetes/test/test_v1beta1_replica_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_replica_set import V1beta1ReplicaSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ReplicaSet(unittest.TestCase): - """V1beta1ReplicaSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ReplicaSet(self): - """Test V1beta1ReplicaSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_replica_set.V1beta1ReplicaSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_replica_set_condition.py b/kubernetes/test/test_v1beta1_replica_set_condition.py deleted file mode 100644 index ff683bc166..0000000000 --- a/kubernetes/test/test_v1beta1_replica_set_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_replica_set_condition import V1beta1ReplicaSetCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ReplicaSetCondition(unittest.TestCase): - """V1beta1ReplicaSetCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ReplicaSetCondition(self): - """Test V1beta1ReplicaSetCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_replica_set_condition.V1beta1ReplicaSetCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_replica_set_list.py b/kubernetes/test/test_v1beta1_replica_set_list.py deleted file mode 100644 index 0cefe6f1e3..0000000000 --- a/kubernetes/test/test_v1beta1_replica_set_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_replica_set_list import V1beta1ReplicaSetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ReplicaSetList(unittest.TestCase): - """V1beta1ReplicaSetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ReplicaSetList(self): - """Test V1beta1ReplicaSetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_replica_set_list.V1beta1ReplicaSetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_replica_set_spec.py b/kubernetes/test/test_v1beta1_replica_set_spec.py deleted file mode 100644 index c98f1ae461..0000000000 --- a/kubernetes/test/test_v1beta1_replica_set_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_replica_set_spec import V1beta1ReplicaSetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ReplicaSetSpec(unittest.TestCase): - """V1beta1ReplicaSetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ReplicaSetSpec(self): - """Test V1beta1ReplicaSetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_replica_set_spec.V1beta1ReplicaSetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_replica_set_status.py b/kubernetes/test/test_v1beta1_replica_set_status.py deleted file mode 100644 index 94311c4206..0000000000 --- a/kubernetes/test/test_v1beta1_replica_set_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_replica_set_status import V1beta1ReplicaSetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ReplicaSetStatus(unittest.TestCase): - """V1beta1ReplicaSetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ReplicaSetStatus(self): - """Test V1beta1ReplicaSetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_replica_set_status.V1beta1ReplicaSetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_resource_attributes.py b/kubernetes/test/test_v1beta1_resource_attributes.py deleted file mode 100644 index 2e242c4d17..0000000000 --- a/kubernetes/test/test_v1beta1_resource_attributes.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_resource_attributes import V1beta1ResourceAttributes # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ResourceAttributes(unittest.TestCase): - """V1beta1ResourceAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ResourceAttributes(self): - """Test V1beta1ResourceAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_resource_attributes.V1beta1ResourceAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_resource_rule.py b/kubernetes/test/test_v1beta1_resource_rule.py deleted file mode 100644 index 19253ce51c..0000000000 --- a/kubernetes/test/test_v1beta1_resource_rule.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_resource_rule import V1beta1ResourceRule # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ResourceRule(unittest.TestCase): - """V1beta1ResourceRule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ResourceRule(self): - """Test V1beta1ResourceRule""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_resource_rule.V1beta1ResourceRule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role.py b/kubernetes/test/test_v1beta1_role.py deleted file mode 100644 index df6dc840da..0000000000 --- a/kubernetes/test/test_v1beta1_role.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_role import V1beta1Role # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1Role(unittest.TestCase): - """V1beta1Role unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Role(self): - """Test V1beta1Role""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_role.V1beta1Role() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_binding.py b/kubernetes/test/test_v1beta1_role_binding.py deleted file mode 100644 index 8d69990e54..0000000000 --- a/kubernetes/test/test_v1beta1_role_binding.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_role_binding import V1beta1RoleBinding # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1RoleBinding(unittest.TestCase): - """V1beta1RoleBinding unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RoleBinding(self): - """Test V1beta1RoleBinding""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_role_binding.V1beta1RoleBinding() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_binding_list.py b/kubernetes/test/test_v1beta1_role_binding_list.py deleted file mode 100644 index ff25b95d7c..0000000000 --- a/kubernetes/test/test_v1beta1_role_binding_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_role_binding_list import V1beta1RoleBindingList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1RoleBindingList(unittest.TestCase): - """V1beta1RoleBindingList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RoleBindingList(self): - """Test V1beta1RoleBindingList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_role_binding_list.V1beta1RoleBindingList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_list.py b/kubernetes/test/test_v1beta1_role_list.py deleted file mode 100644 index a2b195b5c4..0000000000 --- a/kubernetes/test/test_v1beta1_role_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_role_list import V1beta1RoleList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1RoleList(unittest.TestCase): - """V1beta1RoleList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RoleList(self): - """Test V1beta1RoleList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_role_list.V1beta1RoleList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_role_ref.py b/kubernetes/test/test_v1beta1_role_ref.py deleted file mode 100644 index cd3449a85d..0000000000 --- a/kubernetes/test/test_v1beta1_role_ref.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_role_ref import V1beta1RoleRef # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1RoleRef(unittest.TestCase): - """V1beta1RoleRef unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RoleRef(self): - """Test V1beta1RoleRef""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_role_ref.V1beta1RoleRef() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py b/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py deleted file mode 100644 index 67e95cb412..0000000000 --- a/kubernetes/test/test_v1beta1_rolling_update_daemon_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_rolling_update_daemon_set import V1beta1RollingUpdateDaemonSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1RollingUpdateDaemonSet(unittest.TestCase): - """V1beta1RollingUpdateDaemonSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RollingUpdateDaemonSet(self): - """Test V1beta1RollingUpdateDaemonSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_rolling_update_daemon_set.V1beta1RollingUpdateDaemonSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_rolling_update_stateful_set_strategy.py b/kubernetes/test/test_v1beta1_rolling_update_stateful_set_strategy.py deleted file mode 100644 index b5c7dd9889..0000000000 --- a/kubernetes/test/test_v1beta1_rolling_update_stateful_set_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_rolling_update_stateful_set_strategy import V1beta1RollingUpdateStatefulSetStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1RollingUpdateStatefulSetStrategy(unittest.TestCase): - """V1beta1RollingUpdateStatefulSetStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RollingUpdateStatefulSetStrategy(self): - """Test V1beta1RollingUpdateStatefulSetStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_rolling_update_stateful_set_strategy.V1beta1RollingUpdateStatefulSetStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_rule_with_operations.py b/kubernetes/test/test_v1beta1_rule_with_operations.py deleted file mode 100644 index c7be21b493..0000000000 --- a/kubernetes/test/test_v1beta1_rule_with_operations.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_rule_with_operations import V1beta1RuleWithOperations # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1RuleWithOperations(unittest.TestCase): - """V1beta1RuleWithOperations unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RuleWithOperations(self): - """Test V1beta1RuleWithOperations""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_rule_with_operations.V1beta1RuleWithOperations() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_runtime_class.py b/kubernetes/test/test_v1beta1_runtime_class.py deleted file mode 100644 index b1a1ebdf51..0000000000 --- a/kubernetes/test/test_v1beta1_runtime_class.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_runtime_class import V1beta1RuntimeClass # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1RuntimeClass(unittest.TestCase): - """V1beta1RuntimeClass unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RuntimeClass(self): - """Test V1beta1RuntimeClass""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_runtime_class.V1beta1RuntimeClass() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_runtime_class_list.py b/kubernetes/test/test_v1beta1_runtime_class_list.py deleted file mode 100644 index a8e0640a4b..0000000000 --- a/kubernetes/test/test_v1beta1_runtime_class_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_runtime_class_list import V1beta1RuntimeClassList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1RuntimeClassList(unittest.TestCase): - """V1beta1RuntimeClassList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1RuntimeClassList(self): - """Test V1beta1RuntimeClassList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_runtime_class_list.V1beta1RuntimeClassList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_scheduling.py b/kubernetes/test/test_v1beta1_scheduling.py deleted file mode 100644 index 0a914757bf..0000000000 --- a/kubernetes/test/test_v1beta1_scheduling.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_scheduling import V1beta1Scheduling # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1Scheduling(unittest.TestCase): - """V1beta1Scheduling unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Scheduling(self): - """Test V1beta1Scheduling""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_scheduling.V1beta1Scheduling() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_self_subject_access_review.py b/kubernetes/test/test_v1beta1_self_subject_access_review.py deleted file mode 100644 index 3f1cead039..0000000000 --- a/kubernetes/test/test_v1beta1_self_subject_access_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_self_subject_access_review import V1beta1SelfSubjectAccessReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1SelfSubjectAccessReview(unittest.TestCase): - """V1beta1SelfSubjectAccessReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SelfSubjectAccessReview(self): - """Test V1beta1SelfSubjectAccessReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_self_subject_access_review.V1beta1SelfSubjectAccessReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py b/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py deleted file mode 100644 index 9c1e4596ae..0000000000 --- a/kubernetes/test/test_v1beta1_self_subject_access_review_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_self_subject_access_review_spec import V1beta1SelfSubjectAccessReviewSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1SelfSubjectAccessReviewSpec(unittest.TestCase): - """V1beta1SelfSubjectAccessReviewSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SelfSubjectAccessReviewSpec(self): - """Test V1beta1SelfSubjectAccessReviewSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_self_subject_access_review_spec.V1beta1SelfSubjectAccessReviewSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_self_subject_rules_review.py b/kubernetes/test/test_v1beta1_self_subject_rules_review.py deleted file mode 100644 index bb7d5cae64..0000000000 --- a/kubernetes/test/test_v1beta1_self_subject_rules_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_self_subject_rules_review import V1beta1SelfSubjectRulesReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1SelfSubjectRulesReview(unittest.TestCase): - """V1beta1SelfSubjectRulesReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SelfSubjectRulesReview(self): - """Test V1beta1SelfSubjectRulesReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_self_subject_rules_review.V1beta1SelfSubjectRulesReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_self_subject_rules_review_spec.py b/kubernetes/test/test_v1beta1_self_subject_rules_review_spec.py deleted file mode 100644 index d945b0d605..0000000000 --- a/kubernetes/test/test_v1beta1_self_subject_rules_review_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_self_subject_rules_review_spec import V1beta1SelfSubjectRulesReviewSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1SelfSubjectRulesReviewSpec(unittest.TestCase): - """V1beta1SelfSubjectRulesReviewSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SelfSubjectRulesReviewSpec(self): - """Test V1beta1SelfSubjectRulesReviewSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_self_subject_rules_review_spec.V1beta1SelfSubjectRulesReviewSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_stateful_set.py b/kubernetes/test/test_v1beta1_stateful_set.py deleted file mode 100644 index 4b6ea7ecd1..0000000000 --- a/kubernetes/test/test_v1beta1_stateful_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_stateful_set import V1beta1StatefulSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1StatefulSet(unittest.TestCase): - """V1beta1StatefulSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1StatefulSet(self): - """Test V1beta1StatefulSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_stateful_set.V1beta1StatefulSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_stateful_set_condition.py b/kubernetes/test/test_v1beta1_stateful_set_condition.py deleted file mode 100644 index 4e23491fd5..0000000000 --- a/kubernetes/test/test_v1beta1_stateful_set_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_stateful_set_condition import V1beta1StatefulSetCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1StatefulSetCondition(unittest.TestCase): - """V1beta1StatefulSetCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1StatefulSetCondition(self): - """Test V1beta1StatefulSetCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_stateful_set_condition.V1beta1StatefulSetCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_stateful_set_list.py b/kubernetes/test/test_v1beta1_stateful_set_list.py deleted file mode 100644 index 0d9f830497..0000000000 --- a/kubernetes/test/test_v1beta1_stateful_set_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_stateful_set_list import V1beta1StatefulSetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1StatefulSetList(unittest.TestCase): - """V1beta1StatefulSetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1StatefulSetList(self): - """Test V1beta1StatefulSetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_stateful_set_list.V1beta1StatefulSetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_stateful_set_spec.py b/kubernetes/test/test_v1beta1_stateful_set_spec.py deleted file mode 100644 index 0fbe76dcfb..0000000000 --- a/kubernetes/test/test_v1beta1_stateful_set_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_stateful_set_spec import V1beta1StatefulSetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1StatefulSetSpec(unittest.TestCase): - """V1beta1StatefulSetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1StatefulSetSpec(self): - """Test V1beta1StatefulSetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_stateful_set_spec.V1beta1StatefulSetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_stateful_set_status.py b/kubernetes/test/test_v1beta1_stateful_set_status.py deleted file mode 100644 index 77c522d157..0000000000 --- a/kubernetes/test/test_v1beta1_stateful_set_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_stateful_set_status import V1beta1StatefulSetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1StatefulSetStatus(unittest.TestCase): - """V1beta1StatefulSetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1StatefulSetStatus(self): - """Test V1beta1StatefulSetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_stateful_set_status.V1beta1StatefulSetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_stateful_set_update_strategy.py b/kubernetes/test/test_v1beta1_stateful_set_update_strategy.py deleted file mode 100644 index b70260bd13..0000000000 --- a/kubernetes/test/test_v1beta1_stateful_set_update_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_stateful_set_update_strategy import V1beta1StatefulSetUpdateStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1StatefulSetUpdateStrategy(unittest.TestCase): - """V1beta1StatefulSetUpdateStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1StatefulSetUpdateStrategy(self): - """Test V1beta1StatefulSetUpdateStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_stateful_set_update_strategy.V1beta1StatefulSetUpdateStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_storage_class.py b/kubernetes/test/test_v1beta1_storage_class.py deleted file mode 100644 index c32a20fa6b..0000000000 --- a/kubernetes/test/test_v1beta1_storage_class.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_storage_class import V1beta1StorageClass # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1StorageClass(unittest.TestCase): - """V1beta1StorageClass unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1StorageClass(self): - """Test V1beta1StorageClass""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_storage_class.V1beta1StorageClass() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_storage_class_list.py b/kubernetes/test/test_v1beta1_storage_class_list.py deleted file mode 100644 index 21e0d063b5..0000000000 --- a/kubernetes/test/test_v1beta1_storage_class_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_storage_class_list import V1beta1StorageClassList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1StorageClassList(unittest.TestCase): - """V1beta1StorageClassList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1StorageClassList(self): - """Test V1beta1StorageClassList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_storage_class_list.V1beta1StorageClassList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_subject.py b/kubernetes/test/test_v1beta1_subject.py deleted file mode 100644 index 35a2079dd7..0000000000 --- a/kubernetes/test/test_v1beta1_subject.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_subject import V1beta1Subject # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1Subject(unittest.TestCase): - """V1beta1Subject unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1Subject(self): - """Test V1beta1Subject""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_subject.V1beta1Subject() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_subject_access_review.py b/kubernetes/test/test_v1beta1_subject_access_review.py deleted file mode 100644 index 2d2d3d2e08..0000000000 --- a/kubernetes/test/test_v1beta1_subject_access_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_subject_access_review import V1beta1SubjectAccessReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1SubjectAccessReview(unittest.TestCase): - """V1beta1SubjectAccessReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SubjectAccessReview(self): - """Test V1beta1SubjectAccessReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_subject_access_review.V1beta1SubjectAccessReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_subject_access_review_spec.py b/kubernetes/test/test_v1beta1_subject_access_review_spec.py deleted file mode 100644 index 6cdce073ba..0000000000 --- a/kubernetes/test/test_v1beta1_subject_access_review_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_subject_access_review_spec import V1beta1SubjectAccessReviewSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1SubjectAccessReviewSpec(unittest.TestCase): - """V1beta1SubjectAccessReviewSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SubjectAccessReviewSpec(self): - """Test V1beta1SubjectAccessReviewSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_subject_access_review_spec.V1beta1SubjectAccessReviewSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_subject_access_review_status.py b/kubernetes/test/test_v1beta1_subject_access_review_status.py deleted file mode 100644 index b08306d4b1..0000000000 --- a/kubernetes/test/test_v1beta1_subject_access_review_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_subject_access_review_status import V1beta1SubjectAccessReviewStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1SubjectAccessReviewStatus(unittest.TestCase): - """V1beta1SubjectAccessReviewStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SubjectAccessReviewStatus(self): - """Test V1beta1SubjectAccessReviewStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_subject_access_review_status.V1beta1SubjectAccessReviewStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_subject_rules_review_status.py b/kubernetes/test/test_v1beta1_subject_rules_review_status.py deleted file mode 100644 index 73e79046b7..0000000000 --- a/kubernetes/test/test_v1beta1_subject_rules_review_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_subject_rules_review_status import V1beta1SubjectRulesReviewStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1SubjectRulesReviewStatus(unittest.TestCase): - """V1beta1SubjectRulesReviewStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1SubjectRulesReviewStatus(self): - """Test V1beta1SubjectRulesReviewStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_subject_rules_review_status.V1beta1SubjectRulesReviewStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_token_review.py b/kubernetes/test/test_v1beta1_token_review.py deleted file mode 100644 index cfb1ba812e..0000000000 --- a/kubernetes/test/test_v1beta1_token_review.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_token_review import V1beta1TokenReview # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1TokenReview(unittest.TestCase): - """V1beta1TokenReview unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1TokenReview(self): - """Test V1beta1TokenReview""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_token_review.V1beta1TokenReview() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_token_review_spec.py b/kubernetes/test/test_v1beta1_token_review_spec.py deleted file mode 100644 index 27f5d35aa2..0000000000 --- a/kubernetes/test/test_v1beta1_token_review_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_token_review_spec import V1beta1TokenReviewSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1TokenReviewSpec(unittest.TestCase): - """V1beta1TokenReviewSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1TokenReviewSpec(self): - """Test V1beta1TokenReviewSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_token_review_spec.V1beta1TokenReviewSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_token_review_status.py b/kubernetes/test/test_v1beta1_token_review_status.py deleted file mode 100644 index ebb4092639..0000000000 --- a/kubernetes/test/test_v1beta1_token_review_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_token_review_status import V1beta1TokenReviewStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1TokenReviewStatus(unittest.TestCase): - """V1beta1TokenReviewStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1TokenReviewStatus(self): - """Test V1beta1TokenReviewStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_token_review_status.V1beta1TokenReviewStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_user_info.py b/kubernetes/test/test_v1beta1_user_info.py deleted file mode 100644 index 79700c0930..0000000000 --- a/kubernetes/test/test_v1beta1_user_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_user_info import V1beta1UserInfo # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1UserInfo(unittest.TestCase): - """V1beta1UserInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1UserInfo(self): - """Test V1beta1UserInfo""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_user_info.V1beta1UserInfo() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_validating_webhook.py b/kubernetes/test/test_v1beta1_validating_webhook.py deleted file mode 100644 index a56fd025e9..0000000000 --- a/kubernetes/test/test_v1beta1_validating_webhook.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_validating_webhook import V1beta1ValidatingWebhook # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ValidatingWebhook(unittest.TestCase): - """V1beta1ValidatingWebhook unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ValidatingWebhook(self): - """Test V1beta1ValidatingWebhook""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_validating_webhook.V1beta1ValidatingWebhook() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_validating_webhook_configuration.py b/kubernetes/test/test_v1beta1_validating_webhook_configuration.py deleted file mode 100644 index b8029be6d6..0000000000 --- a/kubernetes/test/test_v1beta1_validating_webhook_configuration.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_validating_webhook_configuration import V1beta1ValidatingWebhookConfiguration # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ValidatingWebhookConfiguration(unittest.TestCase): - """V1beta1ValidatingWebhookConfiguration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ValidatingWebhookConfiguration(self): - """Test V1beta1ValidatingWebhookConfiguration""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_validating_webhook_configuration.V1beta1ValidatingWebhookConfiguration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_validating_webhook_configuration_list.py b/kubernetes/test/test_v1beta1_validating_webhook_configuration_list.py deleted file mode 100644 index 05c6a12cec..0000000000 --- a/kubernetes/test/test_v1beta1_validating_webhook_configuration_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_validating_webhook_configuration_list import V1beta1ValidatingWebhookConfigurationList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1ValidatingWebhookConfigurationList(unittest.TestCase): - """V1beta1ValidatingWebhookConfigurationList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1ValidatingWebhookConfigurationList(self): - """Test V1beta1ValidatingWebhookConfigurationList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_validating_webhook_configuration_list.V1beta1ValidatingWebhookConfigurationList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_volume_attachment.py b/kubernetes/test/test_v1beta1_volume_attachment.py deleted file mode 100644 index 4c5e440c32..0000000000 --- a/kubernetes/test/test_v1beta1_volume_attachment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attachment import V1beta1VolumeAttachment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1VolumeAttachment(unittest.TestCase): - """V1beta1VolumeAttachment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1VolumeAttachment(self): - """Test V1beta1VolumeAttachment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_volume_attachment.V1beta1VolumeAttachment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_volume_attachment_list.py b/kubernetes/test/test_v1beta1_volume_attachment_list.py deleted file mode 100644 index b7ea57c841..0000000000 --- a/kubernetes/test/test_v1beta1_volume_attachment_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attachment_list import V1beta1VolumeAttachmentList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1VolumeAttachmentList(unittest.TestCase): - """V1beta1VolumeAttachmentList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1VolumeAttachmentList(self): - """Test V1beta1VolumeAttachmentList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_volume_attachment_list.V1beta1VolumeAttachmentList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_volume_attachment_source.py b/kubernetes/test/test_v1beta1_volume_attachment_source.py deleted file mode 100644 index 393a2764be..0000000000 --- a/kubernetes/test/test_v1beta1_volume_attachment_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attachment_source import V1beta1VolumeAttachmentSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1VolumeAttachmentSource(unittest.TestCase): - """V1beta1VolumeAttachmentSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1VolumeAttachmentSource(self): - """Test V1beta1VolumeAttachmentSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_volume_attachment_source.V1beta1VolumeAttachmentSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_volume_attachment_spec.py b/kubernetes/test/test_v1beta1_volume_attachment_spec.py deleted file mode 100644 index 03f7913fbc..0000000000 --- a/kubernetes/test/test_v1beta1_volume_attachment_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attachment_spec import V1beta1VolumeAttachmentSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1VolumeAttachmentSpec(unittest.TestCase): - """V1beta1VolumeAttachmentSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1VolumeAttachmentSpec(self): - """Test V1beta1VolumeAttachmentSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_volume_attachment_spec.V1beta1VolumeAttachmentSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_volume_attachment_status.py b/kubernetes/test/test_v1beta1_volume_attachment_status.py deleted file mode 100644 index a5c678bb3b..0000000000 --- a/kubernetes/test/test_v1beta1_volume_attachment_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_volume_attachment_status import V1beta1VolumeAttachmentStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1VolumeAttachmentStatus(unittest.TestCase): - """V1beta1VolumeAttachmentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1VolumeAttachmentStatus(self): - """Test V1beta1VolumeAttachmentStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_volume_attachment_status.V1beta1VolumeAttachmentStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_volume_error.py b/kubernetes/test/test_v1beta1_volume_error.py deleted file mode 100644 index 7434bd8dff..0000000000 --- a/kubernetes/test/test_v1beta1_volume_error.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_volume_error import V1beta1VolumeError # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1VolumeError(unittest.TestCase): - """V1beta1VolumeError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1VolumeError(self): - """Test V1beta1VolumeError""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_volume_error.V1beta1VolumeError() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta1_volume_node_resources.py b/kubernetes/test/test_v1beta1_volume_node_resources.py deleted file mode 100644 index 24ada03708..0000000000 --- a/kubernetes/test/test_v1beta1_volume_node_resources.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta1_volume_node_resources import V1beta1VolumeNodeResources # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta1VolumeNodeResources(unittest.TestCase): - """V1beta1VolumeNodeResources unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta1VolumeNodeResources(self): - """Test V1beta1VolumeNodeResources""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta1_volume_node_resources.V1beta1VolumeNodeResources() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_controller_revision.py b/kubernetes/test/test_v1beta2_controller_revision.py deleted file mode 100644 index 77423f41da..0000000000 --- a/kubernetes/test/test_v1beta2_controller_revision.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_controller_revision import V1beta2ControllerRevision # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2ControllerRevision(unittest.TestCase): - """V1beta2ControllerRevision unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2ControllerRevision(self): - """Test V1beta2ControllerRevision""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_controller_revision.V1beta2ControllerRevision() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_controller_revision_list.py b/kubernetes/test/test_v1beta2_controller_revision_list.py deleted file mode 100644 index 289c486b3f..0000000000 --- a/kubernetes/test/test_v1beta2_controller_revision_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_controller_revision_list import V1beta2ControllerRevisionList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2ControllerRevisionList(unittest.TestCase): - """V1beta2ControllerRevisionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2ControllerRevisionList(self): - """Test V1beta2ControllerRevisionList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_controller_revision_list.V1beta2ControllerRevisionList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_daemon_set.py b/kubernetes/test/test_v1beta2_daemon_set.py deleted file mode 100644 index ad1e8d0e72..0000000000 --- a/kubernetes/test/test_v1beta2_daemon_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_daemon_set import V1beta2DaemonSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DaemonSet(unittest.TestCase): - """V1beta2DaemonSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DaemonSet(self): - """Test V1beta2DaemonSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_daemon_set.V1beta2DaemonSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_daemon_set_condition.py b/kubernetes/test/test_v1beta2_daemon_set_condition.py deleted file mode 100644 index 294f7e55e8..0000000000 --- a/kubernetes/test/test_v1beta2_daemon_set_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_daemon_set_condition import V1beta2DaemonSetCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DaemonSetCondition(unittest.TestCase): - """V1beta2DaemonSetCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DaemonSetCondition(self): - """Test V1beta2DaemonSetCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_daemon_set_condition.V1beta2DaemonSetCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_daemon_set_list.py b/kubernetes/test/test_v1beta2_daemon_set_list.py deleted file mode 100644 index fc494472dd..0000000000 --- a/kubernetes/test/test_v1beta2_daemon_set_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_daemon_set_list import V1beta2DaemonSetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DaemonSetList(unittest.TestCase): - """V1beta2DaemonSetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DaemonSetList(self): - """Test V1beta2DaemonSetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_daemon_set_list.V1beta2DaemonSetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_daemon_set_spec.py b/kubernetes/test/test_v1beta2_daemon_set_spec.py deleted file mode 100644 index 4a59de72a3..0000000000 --- a/kubernetes/test/test_v1beta2_daemon_set_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_daemon_set_spec import V1beta2DaemonSetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DaemonSetSpec(unittest.TestCase): - """V1beta2DaemonSetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DaemonSetSpec(self): - """Test V1beta2DaemonSetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_daemon_set_spec.V1beta2DaemonSetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_daemon_set_status.py b/kubernetes/test/test_v1beta2_daemon_set_status.py deleted file mode 100644 index 3ea4fec9af..0000000000 --- a/kubernetes/test/test_v1beta2_daemon_set_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_daemon_set_status import V1beta2DaemonSetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DaemonSetStatus(unittest.TestCase): - """V1beta2DaemonSetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DaemonSetStatus(self): - """Test V1beta2DaemonSetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_daemon_set_status.V1beta2DaemonSetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_daemon_set_update_strategy.py b/kubernetes/test/test_v1beta2_daemon_set_update_strategy.py deleted file mode 100644 index 72115f30e4..0000000000 --- a/kubernetes/test/test_v1beta2_daemon_set_update_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_daemon_set_update_strategy import V1beta2DaemonSetUpdateStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DaemonSetUpdateStrategy(unittest.TestCase): - """V1beta2DaemonSetUpdateStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DaemonSetUpdateStrategy(self): - """Test V1beta2DaemonSetUpdateStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_daemon_set_update_strategy.V1beta2DaemonSetUpdateStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_deployment.py b/kubernetes/test/test_v1beta2_deployment.py deleted file mode 100644 index 9afb11ac23..0000000000 --- a/kubernetes/test/test_v1beta2_deployment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_deployment import V1beta2Deployment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2Deployment(unittest.TestCase): - """V1beta2Deployment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2Deployment(self): - """Test V1beta2Deployment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_deployment.V1beta2Deployment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_deployment_condition.py b/kubernetes/test/test_v1beta2_deployment_condition.py deleted file mode 100644 index 1cf9bf7850..0000000000 --- a/kubernetes/test/test_v1beta2_deployment_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_deployment_condition import V1beta2DeploymentCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DeploymentCondition(unittest.TestCase): - """V1beta2DeploymentCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DeploymentCondition(self): - """Test V1beta2DeploymentCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_deployment_condition.V1beta2DeploymentCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_deployment_list.py b/kubernetes/test/test_v1beta2_deployment_list.py deleted file mode 100644 index f047e56309..0000000000 --- a/kubernetes/test/test_v1beta2_deployment_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_deployment_list import V1beta2DeploymentList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DeploymentList(unittest.TestCase): - """V1beta2DeploymentList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DeploymentList(self): - """Test V1beta2DeploymentList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_deployment_list.V1beta2DeploymentList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_deployment_spec.py b/kubernetes/test/test_v1beta2_deployment_spec.py deleted file mode 100644 index d7d625b736..0000000000 --- a/kubernetes/test/test_v1beta2_deployment_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_deployment_spec import V1beta2DeploymentSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DeploymentSpec(unittest.TestCase): - """V1beta2DeploymentSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DeploymentSpec(self): - """Test V1beta2DeploymentSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_deployment_spec.V1beta2DeploymentSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_deployment_status.py b/kubernetes/test/test_v1beta2_deployment_status.py deleted file mode 100644 index fa3190b7db..0000000000 --- a/kubernetes/test/test_v1beta2_deployment_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_deployment_status import V1beta2DeploymentStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DeploymentStatus(unittest.TestCase): - """V1beta2DeploymentStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DeploymentStatus(self): - """Test V1beta2DeploymentStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_deployment_status.V1beta2DeploymentStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_deployment_strategy.py b/kubernetes/test/test_v1beta2_deployment_strategy.py deleted file mode 100644 index 521e3d856f..0000000000 --- a/kubernetes/test/test_v1beta2_deployment_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_deployment_strategy import V1beta2DeploymentStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2DeploymentStrategy(unittest.TestCase): - """V1beta2DeploymentStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2DeploymentStrategy(self): - """Test V1beta2DeploymentStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_deployment_strategy.V1beta2DeploymentStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_replica_set.py b/kubernetes/test/test_v1beta2_replica_set.py deleted file mode 100644 index 85a592a1ad..0000000000 --- a/kubernetes/test/test_v1beta2_replica_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_replica_set import V1beta2ReplicaSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2ReplicaSet(unittest.TestCase): - """V1beta2ReplicaSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2ReplicaSet(self): - """Test V1beta2ReplicaSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_replica_set.V1beta2ReplicaSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_replica_set_condition.py b/kubernetes/test/test_v1beta2_replica_set_condition.py deleted file mode 100644 index 8767601c90..0000000000 --- a/kubernetes/test/test_v1beta2_replica_set_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_replica_set_condition import V1beta2ReplicaSetCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2ReplicaSetCondition(unittest.TestCase): - """V1beta2ReplicaSetCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2ReplicaSetCondition(self): - """Test V1beta2ReplicaSetCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_replica_set_condition.V1beta2ReplicaSetCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_replica_set_list.py b/kubernetes/test/test_v1beta2_replica_set_list.py deleted file mode 100644 index 9c7ad5a990..0000000000 --- a/kubernetes/test/test_v1beta2_replica_set_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_replica_set_list import V1beta2ReplicaSetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2ReplicaSetList(unittest.TestCase): - """V1beta2ReplicaSetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2ReplicaSetList(self): - """Test V1beta2ReplicaSetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_replica_set_list.V1beta2ReplicaSetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_replica_set_spec.py b/kubernetes/test/test_v1beta2_replica_set_spec.py deleted file mode 100644 index eeef1e65fc..0000000000 --- a/kubernetes/test/test_v1beta2_replica_set_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_replica_set_spec import V1beta2ReplicaSetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2ReplicaSetSpec(unittest.TestCase): - """V1beta2ReplicaSetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2ReplicaSetSpec(self): - """Test V1beta2ReplicaSetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_replica_set_spec.V1beta2ReplicaSetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_replica_set_status.py b/kubernetes/test/test_v1beta2_replica_set_status.py deleted file mode 100644 index b9e71ae3b9..0000000000 --- a/kubernetes/test/test_v1beta2_replica_set_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_replica_set_status import V1beta2ReplicaSetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2ReplicaSetStatus(unittest.TestCase): - """V1beta2ReplicaSetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2ReplicaSetStatus(self): - """Test V1beta2ReplicaSetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_replica_set_status.V1beta2ReplicaSetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_rolling_update_daemon_set.py b/kubernetes/test/test_v1beta2_rolling_update_daemon_set.py deleted file mode 100644 index 0d2381618c..0000000000 --- a/kubernetes/test/test_v1beta2_rolling_update_daemon_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_rolling_update_daemon_set import V1beta2RollingUpdateDaemonSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2RollingUpdateDaemonSet(unittest.TestCase): - """V1beta2RollingUpdateDaemonSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2RollingUpdateDaemonSet(self): - """Test V1beta2RollingUpdateDaemonSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_rolling_update_daemon_set.V1beta2RollingUpdateDaemonSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_rolling_update_deployment.py b/kubernetes/test/test_v1beta2_rolling_update_deployment.py deleted file mode 100644 index 12d5758898..0000000000 --- a/kubernetes/test/test_v1beta2_rolling_update_deployment.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_rolling_update_deployment import V1beta2RollingUpdateDeployment # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2RollingUpdateDeployment(unittest.TestCase): - """V1beta2RollingUpdateDeployment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2RollingUpdateDeployment(self): - """Test V1beta2RollingUpdateDeployment""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_rolling_update_deployment.V1beta2RollingUpdateDeployment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_rolling_update_stateful_set_strategy.py b/kubernetes/test/test_v1beta2_rolling_update_stateful_set_strategy.py deleted file mode 100644 index 504104bd4d..0000000000 --- a/kubernetes/test/test_v1beta2_rolling_update_stateful_set_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_rolling_update_stateful_set_strategy import V1beta2RollingUpdateStatefulSetStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2RollingUpdateStatefulSetStrategy(unittest.TestCase): - """V1beta2RollingUpdateStatefulSetStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2RollingUpdateStatefulSetStrategy(self): - """Test V1beta2RollingUpdateStatefulSetStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_rolling_update_stateful_set_strategy.V1beta2RollingUpdateStatefulSetStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_scale.py b/kubernetes/test/test_v1beta2_scale.py deleted file mode 100644 index d60a170b5d..0000000000 --- a/kubernetes/test/test_v1beta2_scale.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_scale import V1beta2Scale # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2Scale(unittest.TestCase): - """V1beta2Scale unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2Scale(self): - """Test V1beta2Scale""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_scale.V1beta2Scale() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_scale_spec.py b/kubernetes/test/test_v1beta2_scale_spec.py deleted file mode 100644 index 20a2ed5910..0000000000 --- a/kubernetes/test/test_v1beta2_scale_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_scale_spec import V1beta2ScaleSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2ScaleSpec(unittest.TestCase): - """V1beta2ScaleSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2ScaleSpec(self): - """Test V1beta2ScaleSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_scale_spec.V1beta2ScaleSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_scale_status.py b/kubernetes/test/test_v1beta2_scale_status.py deleted file mode 100644 index c7261ee655..0000000000 --- a/kubernetes/test/test_v1beta2_scale_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_scale_status import V1beta2ScaleStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2ScaleStatus(unittest.TestCase): - """V1beta2ScaleStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2ScaleStatus(self): - """Test V1beta2ScaleStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_scale_status.V1beta2ScaleStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_stateful_set.py b/kubernetes/test/test_v1beta2_stateful_set.py deleted file mode 100644 index 41f37fe5e9..0000000000 --- a/kubernetes/test/test_v1beta2_stateful_set.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_stateful_set import V1beta2StatefulSet # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2StatefulSet(unittest.TestCase): - """V1beta2StatefulSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2StatefulSet(self): - """Test V1beta2StatefulSet""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_stateful_set.V1beta2StatefulSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_stateful_set_condition.py b/kubernetes/test/test_v1beta2_stateful_set_condition.py deleted file mode 100644 index 5e70b3f748..0000000000 --- a/kubernetes/test/test_v1beta2_stateful_set_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_stateful_set_condition import V1beta2StatefulSetCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2StatefulSetCondition(unittest.TestCase): - """V1beta2StatefulSetCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2StatefulSetCondition(self): - """Test V1beta2StatefulSetCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_stateful_set_condition.V1beta2StatefulSetCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_stateful_set_list.py b/kubernetes/test/test_v1beta2_stateful_set_list.py deleted file mode 100644 index 5eebb3860f..0000000000 --- a/kubernetes/test/test_v1beta2_stateful_set_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_stateful_set_list import V1beta2StatefulSetList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2StatefulSetList(unittest.TestCase): - """V1beta2StatefulSetList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2StatefulSetList(self): - """Test V1beta2StatefulSetList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_stateful_set_list.V1beta2StatefulSetList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_stateful_set_spec.py b/kubernetes/test/test_v1beta2_stateful_set_spec.py deleted file mode 100644 index daabdbfc85..0000000000 --- a/kubernetes/test/test_v1beta2_stateful_set_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_stateful_set_spec import V1beta2StatefulSetSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2StatefulSetSpec(unittest.TestCase): - """V1beta2StatefulSetSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2StatefulSetSpec(self): - """Test V1beta2StatefulSetSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_stateful_set_spec.V1beta2StatefulSetSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_stateful_set_status.py b/kubernetes/test/test_v1beta2_stateful_set_status.py deleted file mode 100644 index 2906122b87..0000000000 --- a/kubernetes/test/test_v1beta2_stateful_set_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_stateful_set_status import V1beta2StatefulSetStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2StatefulSetStatus(unittest.TestCase): - """V1beta2StatefulSetStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2StatefulSetStatus(self): - """Test V1beta2StatefulSetStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_stateful_set_status.V1beta2StatefulSetStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1beta2_stateful_set_update_strategy.py b/kubernetes/test/test_v1beta2_stateful_set_update_strategy.py deleted file mode 100644 index 0c097203de..0000000000 --- a/kubernetes/test/test_v1beta2_stateful_set_update_strategy.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v1beta2_stateful_set_update_strategy import V1beta2StatefulSetUpdateStrategy # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV1beta2StatefulSetUpdateStrategy(unittest.TestCase): - """V1beta2StatefulSetUpdateStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1beta2StatefulSetUpdateStrategy(self): - """Test V1beta2StatefulSetUpdateStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v1beta2_stateful_set_update_strategy.V1beta2StatefulSetUpdateStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_cron_job.py b/kubernetes/test/test_v2alpha1_cron_job.py deleted file mode 100644 index 9f817f2670..0000000000 --- a/kubernetes/test/test_v2alpha1_cron_job.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2alpha1_cron_job import V2alpha1CronJob # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2alpha1CronJob(unittest.TestCase): - """V2alpha1CronJob unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1CronJob(self): - """Test V2alpha1CronJob""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2alpha1_cron_job.V2alpha1CronJob() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_cron_job_list.py b/kubernetes/test/test_v2alpha1_cron_job_list.py deleted file mode 100644 index 68479ca1af..0000000000 --- a/kubernetes/test/test_v2alpha1_cron_job_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2alpha1_cron_job_list import V2alpha1CronJobList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2alpha1CronJobList(unittest.TestCase): - """V2alpha1CronJobList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1CronJobList(self): - """Test V2alpha1CronJobList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2alpha1_cron_job_list.V2alpha1CronJobList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_cron_job_spec.py b/kubernetes/test/test_v2alpha1_cron_job_spec.py deleted file mode 100644 index 576eefacde..0000000000 --- a/kubernetes/test/test_v2alpha1_cron_job_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2alpha1_cron_job_spec import V2alpha1CronJobSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2alpha1CronJobSpec(unittest.TestCase): - """V2alpha1CronJobSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1CronJobSpec(self): - """Test V2alpha1CronJobSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2alpha1_cron_job_spec.V2alpha1CronJobSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_cron_job_status.py b/kubernetes/test/test_v2alpha1_cron_job_status.py deleted file mode 100644 index f5ffc10161..0000000000 --- a/kubernetes/test/test_v2alpha1_cron_job_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2alpha1_cron_job_status import V2alpha1CronJobStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2alpha1CronJobStatus(unittest.TestCase): - """V2alpha1CronJobStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1CronJobStatus(self): - """Test V2alpha1CronJobStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2alpha1_cron_job_status.V2alpha1CronJobStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2alpha1_job_template_spec.py b/kubernetes/test/test_v2alpha1_job_template_spec.py deleted file mode 100644 index c54dccad72..0000000000 --- a/kubernetes/test/test_v2alpha1_job_template_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2alpha1_job_template_spec import V2alpha1JobTemplateSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2alpha1JobTemplateSpec(unittest.TestCase): - """V2alpha1JobTemplateSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2alpha1JobTemplateSpec(self): - """Test V2alpha1JobTemplateSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2alpha1_job_template_spec.V2alpha1JobTemplateSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_cross_version_object_reference.py b/kubernetes/test/test_v2beta1_cross_version_object_reference.py deleted file mode 100644 index 23a3bae65b..0000000000 --- a/kubernetes/test/test_v2beta1_cross_version_object_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_cross_version_object_reference import V2beta1CrossVersionObjectReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1CrossVersionObjectReference(unittest.TestCase): - """V2beta1CrossVersionObjectReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1CrossVersionObjectReference(self): - """Test V2beta1CrossVersionObjectReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_cross_version_object_reference.V2beta1CrossVersionObjectReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_external_metric_source.py b/kubernetes/test/test_v2beta1_external_metric_source.py deleted file mode 100644 index eb51e054a7..0000000000 --- a/kubernetes/test/test_v2beta1_external_metric_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_external_metric_source import V2beta1ExternalMetricSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1ExternalMetricSource(unittest.TestCase): - """V2beta1ExternalMetricSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1ExternalMetricSource(self): - """Test V2beta1ExternalMetricSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_external_metric_source.V2beta1ExternalMetricSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_external_metric_status.py b/kubernetes/test/test_v2beta1_external_metric_status.py deleted file mode 100644 index 2fc1ee75e9..0000000000 --- a/kubernetes/test/test_v2beta1_external_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_external_metric_status import V2beta1ExternalMetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1ExternalMetricStatus(unittest.TestCase): - """V2beta1ExternalMetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1ExternalMetricStatus(self): - """Test V2beta1ExternalMetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_external_metric_status.V2beta1ExternalMetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler.py deleted file mode 100644 index dcad550b50..0000000000 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler import V2beta1HorizontalPodAutoscaler # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1HorizontalPodAutoscaler(unittest.TestCase): - """V2beta1HorizontalPodAutoscaler unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1HorizontalPodAutoscaler(self): - """Test V2beta1HorizontalPodAutoscaler""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler.V2beta1HorizontalPodAutoscaler() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_condition.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_condition.py deleted file mode 100644 index 35df074657..0000000000 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_condition import V2beta1HorizontalPodAutoscalerCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1HorizontalPodAutoscalerCondition(unittest.TestCase): - """V2beta1HorizontalPodAutoscalerCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1HorizontalPodAutoscalerCondition(self): - """Test V2beta1HorizontalPodAutoscalerCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_condition.V2beta1HorizontalPodAutoscalerCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_list.py deleted file mode 100644 index ea64003167..0000000000 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_list import V2beta1HorizontalPodAutoscalerList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1HorizontalPodAutoscalerList(unittest.TestCase): - """V2beta1HorizontalPodAutoscalerList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1HorizontalPodAutoscalerList(self): - """Test V2beta1HorizontalPodAutoscalerList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_list.V2beta1HorizontalPodAutoscalerList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_spec.py deleted file mode 100644 index 183465216c..0000000000 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_spec import V2beta1HorizontalPodAutoscalerSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1HorizontalPodAutoscalerSpec(unittest.TestCase): - """V2beta1HorizontalPodAutoscalerSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1HorizontalPodAutoscalerSpec(self): - """Test V2beta1HorizontalPodAutoscalerSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_spec.V2beta1HorizontalPodAutoscalerSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_status.py deleted file mode 100644 index 74b0a8e879..0000000000 --- a/kubernetes/test/test_v2beta1_horizontal_pod_autoscaler_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_status import V2beta1HorizontalPodAutoscalerStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1HorizontalPodAutoscalerStatus(unittest.TestCase): - """V2beta1HorizontalPodAutoscalerStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1HorizontalPodAutoscalerStatus(self): - """Test V2beta1HorizontalPodAutoscalerStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_horizontal_pod_autoscaler_status.V2beta1HorizontalPodAutoscalerStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_metric_spec.py b/kubernetes/test/test_v2beta1_metric_spec.py deleted file mode 100644 index dd64701538..0000000000 --- a/kubernetes/test/test_v2beta1_metric_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_metric_spec import V2beta1MetricSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1MetricSpec(unittest.TestCase): - """V2beta1MetricSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1MetricSpec(self): - """Test V2beta1MetricSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_metric_spec.V2beta1MetricSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_metric_status.py b/kubernetes/test/test_v2beta1_metric_status.py deleted file mode 100644 index 39e7c41b55..0000000000 --- a/kubernetes/test/test_v2beta1_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_metric_status import V2beta1MetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1MetricStatus(unittest.TestCase): - """V2beta1MetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1MetricStatus(self): - """Test V2beta1MetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_metric_status.V2beta1MetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_object_metric_source.py b/kubernetes/test/test_v2beta1_object_metric_source.py deleted file mode 100644 index d078f2e47b..0000000000 --- a/kubernetes/test/test_v2beta1_object_metric_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_object_metric_source import V2beta1ObjectMetricSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1ObjectMetricSource(unittest.TestCase): - """V2beta1ObjectMetricSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1ObjectMetricSource(self): - """Test V2beta1ObjectMetricSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_object_metric_source.V2beta1ObjectMetricSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_object_metric_status.py b/kubernetes/test/test_v2beta1_object_metric_status.py deleted file mode 100644 index e107d2600c..0000000000 --- a/kubernetes/test/test_v2beta1_object_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_object_metric_status import V2beta1ObjectMetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1ObjectMetricStatus(unittest.TestCase): - """V2beta1ObjectMetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1ObjectMetricStatus(self): - """Test V2beta1ObjectMetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_object_metric_status.V2beta1ObjectMetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_pods_metric_source.py b/kubernetes/test/test_v2beta1_pods_metric_source.py deleted file mode 100644 index bc62cd1fb4..0000000000 --- a/kubernetes/test/test_v2beta1_pods_metric_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_pods_metric_source import V2beta1PodsMetricSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1PodsMetricSource(unittest.TestCase): - """V2beta1PodsMetricSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1PodsMetricSource(self): - """Test V2beta1PodsMetricSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_pods_metric_source.V2beta1PodsMetricSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_pods_metric_status.py b/kubernetes/test/test_v2beta1_pods_metric_status.py deleted file mode 100644 index 88e153cea4..0000000000 --- a/kubernetes/test/test_v2beta1_pods_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_pods_metric_status import V2beta1PodsMetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1PodsMetricStatus(unittest.TestCase): - """V2beta1PodsMetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1PodsMetricStatus(self): - """Test V2beta1PodsMetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_pods_metric_status.V2beta1PodsMetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_resource_metric_source.py b/kubernetes/test/test_v2beta1_resource_metric_source.py deleted file mode 100644 index dc0ac55bbd..0000000000 --- a/kubernetes/test/test_v2beta1_resource_metric_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_resource_metric_source import V2beta1ResourceMetricSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1ResourceMetricSource(unittest.TestCase): - """V2beta1ResourceMetricSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1ResourceMetricSource(self): - """Test V2beta1ResourceMetricSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_resource_metric_source.V2beta1ResourceMetricSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta1_resource_metric_status.py b/kubernetes/test/test_v2beta1_resource_metric_status.py deleted file mode 100644 index dbdd2f02f2..0000000000 --- a/kubernetes/test/test_v2beta1_resource_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta1_resource_metric_status import V2beta1ResourceMetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta1ResourceMetricStatus(unittest.TestCase): - """V2beta1ResourceMetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta1ResourceMetricStatus(self): - """Test V2beta1ResourceMetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta1_resource_metric_status.V2beta1ResourceMetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_cross_version_object_reference.py b/kubernetes/test/test_v2beta2_cross_version_object_reference.py deleted file mode 100644 index eebbde6249..0000000000 --- a/kubernetes/test/test_v2beta2_cross_version_object_reference.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_cross_version_object_reference import V2beta2CrossVersionObjectReference # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2CrossVersionObjectReference(unittest.TestCase): - """V2beta2CrossVersionObjectReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2CrossVersionObjectReference(self): - """Test V2beta2CrossVersionObjectReference""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_cross_version_object_reference.V2beta2CrossVersionObjectReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_external_metric_source.py b/kubernetes/test/test_v2beta2_external_metric_source.py deleted file mode 100644 index 8af3bfc547..0000000000 --- a/kubernetes/test/test_v2beta2_external_metric_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_external_metric_source import V2beta2ExternalMetricSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2ExternalMetricSource(unittest.TestCase): - """V2beta2ExternalMetricSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2ExternalMetricSource(self): - """Test V2beta2ExternalMetricSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_external_metric_source.V2beta2ExternalMetricSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_external_metric_status.py b/kubernetes/test/test_v2beta2_external_metric_status.py deleted file mode 100644 index 52d5c5d8ad..0000000000 --- a/kubernetes/test/test_v2beta2_external_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_external_metric_status import V2beta2ExternalMetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2ExternalMetricStatus(unittest.TestCase): - """V2beta2ExternalMetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2ExternalMetricStatus(self): - """Test V2beta2ExternalMetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_external_metric_status.V2beta2ExternalMetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler.py deleted file mode 100644 index 6e8503efc1..0000000000 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler import V2beta2HorizontalPodAutoscaler # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2HorizontalPodAutoscaler(unittest.TestCase): - """V2beta2HorizontalPodAutoscaler unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2HorizontalPodAutoscaler(self): - """Test V2beta2HorizontalPodAutoscaler""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler.V2beta2HorizontalPodAutoscaler() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_condition.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_condition.py deleted file mode 100644 index 6bf3f8c84c..0000000000 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_condition.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_condition import V2beta2HorizontalPodAutoscalerCondition # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2HorizontalPodAutoscalerCondition(unittest.TestCase): - """V2beta2HorizontalPodAutoscalerCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2HorizontalPodAutoscalerCondition(self): - """Test V2beta2HorizontalPodAutoscalerCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_condition.V2beta2HorizontalPodAutoscalerCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_list.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_list.py deleted file mode 100644 index e917675747..0000000000 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_list.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_list import V2beta2HorizontalPodAutoscalerList # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2HorizontalPodAutoscalerList(unittest.TestCase): - """V2beta2HorizontalPodAutoscalerList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2HorizontalPodAutoscalerList(self): - """Test V2beta2HorizontalPodAutoscalerList""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_list.V2beta2HorizontalPodAutoscalerList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py deleted file mode 100644 index 4a1c978c9f..0000000000 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_spec import V2beta2HorizontalPodAutoscalerSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2HorizontalPodAutoscalerSpec(unittest.TestCase): - """V2beta2HorizontalPodAutoscalerSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2HorizontalPodAutoscalerSpec(self): - """Test V2beta2HorizontalPodAutoscalerSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_spec.V2beta2HorizontalPodAutoscalerSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_status.py b/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_status.py deleted file mode 100644 index 4ea373019d..0000000000 --- a/kubernetes/test/test_v2beta2_horizontal_pod_autoscaler_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_status import V2beta2HorizontalPodAutoscalerStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2HorizontalPodAutoscalerStatus(unittest.TestCase): - """V2beta2HorizontalPodAutoscalerStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2HorizontalPodAutoscalerStatus(self): - """Test V2beta2HorizontalPodAutoscalerStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_horizontal_pod_autoscaler_status.V2beta2HorizontalPodAutoscalerStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_metric_identifier.py b/kubernetes/test/test_v2beta2_metric_identifier.py deleted file mode 100644 index b255f49633..0000000000 --- a/kubernetes/test/test_v2beta2_metric_identifier.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_metric_identifier import V2beta2MetricIdentifier # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2MetricIdentifier(unittest.TestCase): - """V2beta2MetricIdentifier unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2MetricIdentifier(self): - """Test V2beta2MetricIdentifier""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_metric_identifier.V2beta2MetricIdentifier() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_metric_spec.py b/kubernetes/test/test_v2beta2_metric_spec.py deleted file mode 100644 index 3a94a72466..0000000000 --- a/kubernetes/test/test_v2beta2_metric_spec.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_metric_spec import V2beta2MetricSpec # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2MetricSpec(unittest.TestCase): - """V2beta2MetricSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2MetricSpec(self): - """Test V2beta2MetricSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_metric_spec.V2beta2MetricSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_metric_status.py b/kubernetes/test/test_v2beta2_metric_status.py deleted file mode 100644 index 3e0d24e517..0000000000 --- a/kubernetes/test/test_v2beta2_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_metric_status import V2beta2MetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2MetricStatus(unittest.TestCase): - """V2beta2MetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2MetricStatus(self): - """Test V2beta2MetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_metric_status.V2beta2MetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_metric_target.py b/kubernetes/test/test_v2beta2_metric_target.py deleted file mode 100644 index 190c11217a..0000000000 --- a/kubernetes/test/test_v2beta2_metric_target.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_metric_target import V2beta2MetricTarget # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2MetricTarget(unittest.TestCase): - """V2beta2MetricTarget unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2MetricTarget(self): - """Test V2beta2MetricTarget""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_metric_target.V2beta2MetricTarget() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_metric_value_status.py b/kubernetes/test/test_v2beta2_metric_value_status.py deleted file mode 100644 index 72ea2eeb83..0000000000 --- a/kubernetes/test/test_v2beta2_metric_value_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_metric_value_status import V2beta2MetricValueStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2MetricValueStatus(unittest.TestCase): - """V2beta2MetricValueStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2MetricValueStatus(self): - """Test V2beta2MetricValueStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_metric_value_status.V2beta2MetricValueStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_object_metric_source.py b/kubernetes/test/test_v2beta2_object_metric_source.py deleted file mode 100644 index 9d2c7e6151..0000000000 --- a/kubernetes/test/test_v2beta2_object_metric_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_object_metric_source import V2beta2ObjectMetricSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2ObjectMetricSource(unittest.TestCase): - """V2beta2ObjectMetricSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2ObjectMetricSource(self): - """Test V2beta2ObjectMetricSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_object_metric_source.V2beta2ObjectMetricSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_object_metric_status.py b/kubernetes/test/test_v2beta2_object_metric_status.py deleted file mode 100644 index 6cc44629bd..0000000000 --- a/kubernetes/test/test_v2beta2_object_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_object_metric_status import V2beta2ObjectMetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2ObjectMetricStatus(unittest.TestCase): - """V2beta2ObjectMetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2ObjectMetricStatus(self): - """Test V2beta2ObjectMetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_object_metric_status.V2beta2ObjectMetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_pods_metric_source.py b/kubernetes/test/test_v2beta2_pods_metric_source.py deleted file mode 100644 index ee49d1210a..0000000000 --- a/kubernetes/test/test_v2beta2_pods_metric_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_pods_metric_source import V2beta2PodsMetricSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2PodsMetricSource(unittest.TestCase): - """V2beta2PodsMetricSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2PodsMetricSource(self): - """Test V2beta2PodsMetricSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_pods_metric_source.V2beta2PodsMetricSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_pods_metric_status.py b/kubernetes/test/test_v2beta2_pods_metric_status.py deleted file mode 100644 index a1dfa4ef3b..0000000000 --- a/kubernetes/test/test_v2beta2_pods_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_pods_metric_status import V2beta2PodsMetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2PodsMetricStatus(unittest.TestCase): - """V2beta2PodsMetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2PodsMetricStatus(self): - """Test V2beta2PodsMetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_pods_metric_status.V2beta2PodsMetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_resource_metric_source.py b/kubernetes/test/test_v2beta2_resource_metric_source.py deleted file mode 100644 index 852fa7eaf8..0000000000 --- a/kubernetes/test/test_v2beta2_resource_metric_source.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_resource_metric_source import V2beta2ResourceMetricSource # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2ResourceMetricSource(unittest.TestCase): - """V2beta2ResourceMetricSource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2ResourceMetricSource(self): - """Test V2beta2ResourceMetricSource""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_resource_metric_source.V2beta2ResourceMetricSource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v2beta2_resource_metric_status.py b/kubernetes/test/test_v2beta2_resource_metric_status.py deleted file mode 100644 index 1e91a94bea..0000000000 --- a/kubernetes/test/test_v2beta2_resource_metric_status.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.v2beta2_resource_metric_status import V2beta2ResourceMetricStatus # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestV2beta2ResourceMetricStatus(unittest.TestCase): - """V2beta2ResourceMetricStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV2beta2ResourceMetricStatus(self): - """Test V2beta2ResourceMetricStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.v2beta2_resource_metric_status.V2beta2ResourceMetricStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_version_api.py b/kubernetes/test/test_version_api.py deleted file mode 100644 index 4a4f0ab9e0..0000000000 --- a/kubernetes/test/test_version_api.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.api.version_api import VersionApi # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestVersionApi(unittest.TestCase): - """VersionApi unit test stubs""" - - def setUp(self): - self.api = kubernetes.client.api.version_api.VersionApi() # noqa: E501 - - def tearDown(self): - pass - - def test_get_code(self): - """Test case for get_code - - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_version_info.py b/kubernetes/test/test_version_info.py deleted file mode 100644 index 86d10d9896..0000000000 --- a/kubernetes/test/test_version_info.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 - - OpenAPI spec version: release-1.16 - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest - -import kubernetes.client -from kubernetes.client.models.version_info import VersionInfo # noqa: E501 -from kubernetes.client.rest import ApiException - - -class TestVersionInfo(unittest.TestCase): - """VersionInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testVersionInfo(self): - """Test VersionInfo""" - # FIXME: construct object with mandatory attributes with example values - # model = kubernetes.client.models.version_info.VersionInfo() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/scripts/apply-hotfixes.sh b/scripts/apply-hotfixes.sh index fdd46d79d7..bf866d7564 100755 --- a/scripts/apply-hotfixes.sh +++ b/scripts/apply-hotfixes.sh @@ -35,8 +35,10 @@ if ! [[ $GIT_BRANCH =~ .*release-.* ]]; then fi # Patching commit for custom client behavior +# UPDATE: The commit being cherry-picked is updated since the the client generated in 1adaaecd0879d7315f48259ad8d6cbd66b835385 +# differs from the initial hotfix # Ref: https://github.com/kubernetes-client/python/pull/995/commits/9959273625b999ae9a8f0679c4def2ee7d699ede -git cherry-pick -n 9959273625b999ae9a8f0679c4def2ee7d699ede +git cherry-pick -n a138dcbb7a9da972402a847ce982b027e0224e60 if [ $? -eq 0 ] then echo Succesfully patched changes for custom client behavior @@ -47,8 +49,9 @@ else fi # Patching commits for enabling from kubernetes import apis +# UPDATE: The commit being cherry-picked is updated to include both the commits as one # Ref: https://github.com/kubernetes-client/python/blob/0976d59d6ff206f2f428cabc7a6b7b1144843b2a/kubernetes/client/apis/__init__.py -git cherry-pick -n dee078639b5e848db73232397087a81f1a336510 b3164930dd1789dd66915acd6772f92f512cec47 +git cherry-pick -n 228a29a982aee922831c3af4fef66a7846ce4bb8 if [ $? -eq 0 ] then echo Succesfully patched changes for enabling from kubernetes import apis @@ -59,8 +62,9 @@ else fi; # Patching commits for Client Context Manager +# UPDATE: OpenAPI generator v4.3.0 has the context manager as a functionality. Cherry-picking just the tests for completeness. # Ref: https://github.com/kubernetes-client/python/pull/1073 -git cherry-pick -n 18d21df367bf9ab5554635f5c6d107f2cf2206a5 13dffb897617f87aaaee247095107d7011e002d5 +git cherry-pick -n 13dffb897617f87aaaee247095107d7011e002d5 if [ $? -eq 0 ] then echo Succesfully patched changes for Client Context Manager diff --git a/scripts/swagger.json b/scripts/swagger.json index d95319a14e..6259ee428f 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -21080,13 +21080,6 @@ "description": "delete collection of ConfigMap", "operationId": "deleteCollectionNamespacedConfigMap", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -21163,13 +21156,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -21199,7 +21185,8 @@ "group": "", "kind": "ConfigMap", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -21688,13 +21675,6 @@ "description": "delete collection of Endpoints", "operationId": "deleteCollectionNamespacedEndpoints", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -21771,13 +21751,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -21807,7 +21780,8 @@ "group": "", "kind": "Endpoints", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -22296,13 +22270,6 @@ "description": "delete collection of Event", "operationId": "deleteCollectionNamespacedEvent", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -22379,13 +22346,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -22415,7 +22375,8 @@ "group": "", "kind": "Event", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -22904,13 +22865,6 @@ "description": "delete collection of LimitRange", "operationId": "deleteCollectionNamespacedLimitRange", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -22987,13 +22941,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -23023,7 +22970,8 @@ "group": "", "kind": "LimitRange", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -23512,13 +23460,6 @@ "description": "delete collection of PersistentVolumeClaim", "operationId": "deleteCollectionNamespacedPersistentVolumeClaim", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -23595,13 +23536,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -23631,7 +23565,8 @@ "group": "", "kind": "PersistentVolumeClaim", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -24319,13 +24254,6 @@ "description": "delete collection of Pod", "operationId": "deleteCollectionNamespacedPod", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -24402,13 +24330,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -24438,7 +24359,8 @@ "group": "", "kind": "Pod", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -26302,13 +26224,6 @@ "description": "delete collection of PodTemplate", "operationId": "deleteCollectionNamespacedPodTemplate", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -26385,13 +26300,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -26421,7 +26329,8 @@ "group": "", "kind": "PodTemplate", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -26910,13 +26819,6 @@ "description": "delete collection of ReplicationController", "operationId": "deleteCollectionNamespacedReplicationController", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -26993,13 +26895,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -27029,7 +26924,8 @@ "group": "", "kind": "ReplicationController", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -27916,13 +27812,6 @@ "description": "delete collection of ResourceQuota", "operationId": "deleteCollectionNamespacedResourceQuota", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -27999,13 +27888,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -28035,7 +27917,8 @@ "group": "", "kind": "ResourceQuota", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -28723,13 +28606,6 @@ "description": "delete collection of Secret", "operationId": "deleteCollectionNamespacedSecret", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -28806,13 +28682,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -28842,7 +28711,8 @@ "group": "", "kind": "Secret", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -29331,13 +29201,6 @@ "description": "delete collection of ServiceAccount", "operationId": "deleteCollectionNamespacedServiceAccount", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -29414,13 +29277,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -29450,7 +29306,8 @@ "group": "", "kind": "ServiceAccount", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -31803,13 +31660,6 @@ "description": "delete collection of Node", "operationId": "deleteCollectionNode", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -31886,13 +31736,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -31922,7 +31765,8 @@ "group": "", "kind": "Node", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -33198,13 +33042,6 @@ "description": "delete collection of PersistentVolume", "operationId": "deleteCollectionPersistentVolume", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -33281,13 +33118,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -33317,7 +33147,8 @@ "group": "", "kind": "PersistentVolume", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -37934,13 +37765,6 @@ "description": "delete collection of MutatingWebhookConfiguration", "operationId": "deleteCollectionMutatingWebhookConfiguration", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -38017,13 +37841,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -38053,7 +37870,8 @@ "group": "admissionregistration.k8s.io", "kind": "MutatingWebhookConfiguration", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -38526,13 +38344,6 @@ "description": "delete collection of ValidatingWebhookConfiguration", "operationId": "deleteCollectionValidatingWebhookConfiguration", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -38609,13 +38420,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -38645,7 +38449,8 @@ "group": "admissionregistration.k8s.io", "kind": "ValidatingWebhookConfiguration", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -39435,13 +39240,6 @@ "description": "delete collection of MutatingWebhookConfiguration", "operationId": "deleteCollectionMutatingWebhookConfiguration", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -39518,13 +39316,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -39554,7 +39345,8 @@ "group": "admissionregistration.k8s.io", "kind": "MutatingWebhookConfiguration", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -40027,13 +39819,6 @@ "description": "delete collection of ValidatingWebhookConfiguration", "operationId": "deleteCollectionValidatingWebhookConfiguration", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -40110,13 +39895,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -40146,7 +39924,8 @@ "group": "admissionregistration.k8s.io", "kind": "ValidatingWebhookConfiguration", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -40969,13 +40748,6 @@ "description": "delete collection of CustomResourceDefinition", "operationId": "deleteCollectionCustomResourceDefinition", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -41052,13 +40824,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -41088,7 +40853,8 @@ "group": "apiextensions.k8s.io", "kind": "CustomResourceDefinition", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -41927,13 +41693,6 @@ "description": "delete collection of CustomResourceDefinition", "operationId": "deleteCollectionCustomResourceDefinition", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -42010,13 +41769,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -42046,7 +41798,8 @@ "group": "apiextensions.k8s.io", "kind": "CustomResourceDefinition", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -42918,13 +42671,6 @@ "description": "delete collection of APIService", "operationId": "deleteCollectionAPIService", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -43001,13 +42747,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -43037,7 +42776,8 @@ "group": "apiregistration.k8s.io", "kind": "APIService", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -43876,13 +43616,6 @@ "description": "delete collection of APIService", "operationId": "deleteCollectionAPIService", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -43959,13 +43692,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -43995,7 +43721,8 @@ "group": "apiregistration.k8s.io", "kind": "APIService", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -45179,13 +44906,6 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -45262,13 +44982,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -45298,7 +45011,8 @@ "group": "apps", "kind": "ControllerRevision", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -45787,13 +45501,6 @@ "description": "delete collection of DaemonSet", "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -45870,13 +45577,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -45906,7 +45606,8 @@ "group": "apps", "kind": "DaemonSet", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -46594,13 +46295,6 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -46677,13 +46371,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -46713,7 +46400,8 @@ "group": "apps", "kind": "Deployment", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -47600,13 +47288,6 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -47683,13 +47364,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -47719,7 +47393,8 @@ "group": "apps", "kind": "ReplicaSet", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -48606,13 +48281,6 @@ "description": "delete collection of StatefulSet", "operationId": "deleteCollectionNamespacedStatefulSet", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -48689,13 +48357,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -48725,7 +48386,8 @@ "group": "apps", "kind": "StatefulSet", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -51186,13 +50848,6 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -51269,13 +50924,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -51305,7 +50953,8 @@ "group": "apps", "kind": "ControllerRevision", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -51794,13 +51443,6 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -51877,13 +51519,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -51913,7 +51548,8 @@ "group": "apps", "kind": "Deployment", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -52899,13 +52535,6 @@ "description": "delete collection of StatefulSet", "operationId": "deleteCollectionNamespacedStatefulSet", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -52982,13 +52611,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -53018,7 +52640,8 @@ "group": "apps", "kind": "StatefulSet", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -55029,13 +54652,6 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -55112,13 +54728,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -55148,7 +54757,8 @@ "group": "apps", "kind": "ControllerRevision", "version": "v1beta2" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -55637,13 +55247,6 @@ "description": "delete collection of DaemonSet", "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -55720,13 +55323,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -55756,7 +55352,8 @@ "group": "apps", "kind": "DaemonSet", "version": "v1beta2" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -56444,13 +56041,6 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -56527,13 +56117,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -56563,7 +56146,8 @@ "group": "apps", "kind": "Deployment", "version": "v1beta2" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -57450,13 +57034,6 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -57533,13 +57110,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -57569,7 +57139,8 @@ "group": "apps", "kind": "ReplicaSet", "version": "v1beta2" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -58456,13 +58027,6 @@ "description": "delete collection of StatefulSet", "operationId": "deleteCollectionNamespacedStatefulSet", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -58539,13 +58103,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -58575,7 +58132,8 @@ "group": "apps", "kind": "StatefulSet", "version": "v1beta2" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -60861,13 +60419,6 @@ "description": "delete collection of AuditSink", "operationId": "deleteCollectionAuditSink", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -60944,13 +60495,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -60980,7 +60524,8 @@ "group": "auditregistration.k8s.io", "kind": "AuditSink", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -62809,13 +62354,6 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -62892,13 +62430,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -62928,7 +62459,8 @@ "group": "autoscaling", "kind": "HorizontalPodAutoscaler", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -63978,13 +63510,6 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -64061,13 +63586,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -64097,7 +63615,8 @@ "group": "autoscaling", "kind": "HorizontalPodAutoscaler", "version": "v2beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -65147,13 +64666,6 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -65230,13 +64742,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -65266,7 +64771,8 @@ "group": "autoscaling", "kind": "HorizontalPodAutoscaler", "version": "v2beta2" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -66349,13 +65855,6 @@ "description": "delete collection of Job", "operationId": "deleteCollectionNamespacedJob", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -66432,13 +65931,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -66468,7 +65960,8 @@ "group": "batch", "kind": "Job", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -67518,13 +67011,6 @@ "description": "delete collection of CronJob", "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -67601,13 +67087,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -67637,7 +67116,8 @@ "group": "batch", "kind": "CronJob", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -68687,13 +68167,6 @@ "description": "delete collection of CronJob", "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -68770,13 +68243,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -68806,7 +68272,8 @@ "group": "batch", "kind": "CronJob", "version": "v2alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -69785,13 +69252,6 @@ "description": "delete collection of CertificateSigningRequest", "operationId": "deleteCollectionCertificateSigningRequest", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -69868,13 +69328,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -69904,7 +69357,8 @@ "group": "certificates.k8s.io", "kind": "CertificateSigningRequest", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -70965,13 +70419,6 @@ "description": "delete collection of Lease", "operationId": "deleteCollectionNamespacedLease", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -71048,13 +70495,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -71084,7 +70524,8 @@ "group": "coordination.k8s.io", "kind": "Lease", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -71935,13 +71376,6 @@ "description": "delete collection of Lease", "operationId": "deleteCollectionNamespacedLease", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -72018,13 +71452,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -72054,7 +71481,8 @@ "group": "coordination.k8s.io", "kind": "Lease", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -72938,13 +72366,6 @@ "description": "delete collection of EndpointSlice", "operationId": "deleteCollectionNamespacedEndpointSlice", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -73021,13 +72442,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -73057,7 +72471,8 @@ "group": "discovery.k8s.io", "kind": "EndpointSlice", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -73941,13 +73356,6 @@ "description": "delete collection of Event", "operationId": "deleteCollectionNamespacedEvent", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -74024,13 +73432,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -74060,7 +73461,8 @@ "group": "events.k8s.io", "kind": "Event", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -75152,13 +74554,6 @@ "description": "delete collection of DaemonSet", "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -75235,13 +74630,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -75271,7 +74659,8 @@ "group": "extensions", "kind": "DaemonSet", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -75959,13 +75348,6 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -76042,13 +75424,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -76078,7 +75453,8 @@ "group": "extensions", "kind": "Deployment", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -77064,13 +76440,6 @@ "description": "delete collection of Ingress", "operationId": "deleteCollectionNamespacedIngress", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -77147,13 +76516,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -77183,7 +76545,8 @@ "group": "extensions", "kind": "Ingress", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -77871,13 +77234,6 @@ "description": "delete collection of NetworkPolicy", "operationId": "deleteCollectionNamespacedNetworkPolicy", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -77954,13 +77310,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -77990,7 +77339,8 @@ "group": "extensions", "kind": "NetworkPolicy", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -78479,13 +77829,6 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -78562,13 +77905,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -78598,7 +77934,8 @@ "group": "extensions", "kind": "ReplicaSet", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -79788,13 +79125,6 @@ "description": "delete collection of PodSecurityPolicy", "operationId": "deleteCollectionPodSecurityPolicy", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -79871,13 +79201,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -79907,7 +79230,8 @@ "group": "extensions", "kind": "PodSecurityPolicy", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -81817,13 +81141,6 @@ "description": "delete collection of NetworkPolicy", "operationId": "deleteCollectionNamespacedNetworkPolicy", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -81900,13 +81217,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -81936,7 +81246,8 @@ "group": "networking.k8s.io", "kind": "NetworkPolicy", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -82891,13 +82202,6 @@ "description": "delete collection of Ingress", "operationId": "deleteCollectionNamespacedIngress", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -82974,13 +82278,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -83010,7 +82307,8 @@ "group": "networking.k8s.io", "kind": "Ingress", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -83989,13 +83287,6 @@ "description": "delete collection of RuntimeClass", "operationId": "deleteCollectionRuntimeClass", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -84072,13 +83363,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -84108,7 +83392,8 @@ "group": "node.k8s.io", "kind": "RuntimeClass", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -84756,13 +84041,6 @@ "description": "delete collection of RuntimeClass", "operationId": "deleteCollectionRuntimeClass", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -84839,13 +84117,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -84875,7 +84146,8 @@ "group": "node.k8s.io", "kind": "RuntimeClass", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -85556,13 +84828,6 @@ "description": "delete collection of PodDisruptionBudget", "operationId": "deleteCollectionNamespacedPodDisruptionBudget", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -85639,13 +84904,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -85675,7 +84933,8 @@ "group": "policy", "kind": "PodDisruptionBudget", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -86467,13 +85726,6 @@ "description": "delete collection of PodSecurityPolicy", "operationId": "deleteCollectionPodSecurityPolicy", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -86550,13 +85802,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -86586,7 +85831,8 @@ "group": "policy", "kind": "PodSecurityPolicy", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -87492,13 +86738,6 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -87575,13 +86814,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -87611,7 +86843,8 @@ "group": "rbac.authorization.k8s.io", "kind": "ClusterRoleBinding", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -88068,13 +87301,6 @@ "description": "delete collection of ClusterRole", "operationId": "deleteCollectionClusterRole", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -88151,13 +87377,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -88187,7 +87406,8 @@ "group": "rbac.authorization.k8s.io", "kind": "ClusterRole", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -88644,13 +87864,6 @@ "description": "delete collection of RoleBinding", "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -88727,13 +87940,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -88763,7 +87969,8 @@ "group": "rbac.authorization.k8s.io", "kind": "RoleBinding", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -89236,13 +88443,6 @@ "description": "delete collection of Role", "operationId": "deleteCollectionNamespacedRole", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -89319,13 +88519,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -89355,7 +88548,8 @@ "group": "rbac.authorization.k8s.io", "kind": "Role", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -90803,13 +89997,6 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -90886,13 +90073,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -90922,7 +90102,8 @@ "group": "rbac.authorization.k8s.io", "kind": "ClusterRoleBinding", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -91379,13 +90560,6 @@ "description": "delete collection of ClusterRole", "operationId": "deleteCollectionClusterRole", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -91462,13 +90636,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -91498,7 +90665,8 @@ "group": "rbac.authorization.k8s.io", "kind": "ClusterRole", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -91955,13 +91123,6 @@ "description": "delete collection of RoleBinding", "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -92038,13 +91199,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -92074,7 +91228,8 @@ "group": "rbac.authorization.k8s.io", "kind": "RoleBinding", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -92547,13 +91702,6 @@ "description": "delete collection of Role", "operationId": "deleteCollectionNamespacedRole", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -92630,13 +91778,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -92666,7 +91807,8 @@ "group": "rbac.authorization.k8s.io", "kind": "Role", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -94114,13 +93256,6 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -94197,13 +93332,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -94233,7 +93361,8 @@ "group": "rbac.authorization.k8s.io", "kind": "ClusterRoleBinding", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -94690,13 +93819,6 @@ "description": "delete collection of ClusterRole", "operationId": "deleteCollectionClusterRole", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -94773,13 +93895,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -94809,7 +93924,8 @@ "group": "rbac.authorization.k8s.io", "kind": "ClusterRole", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -95266,13 +94382,6 @@ "description": "delete collection of RoleBinding", "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -95349,13 +94458,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -95385,7 +94487,8 @@ "group": "rbac.authorization.k8s.io", "kind": "RoleBinding", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -95858,13 +94961,6 @@ "description": "delete collection of Role", "operationId": "deleteCollectionNamespacedRole", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -95941,13 +95037,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -95977,7 +95066,8 @@ "group": "rbac.authorization.k8s.io", "kind": "Role", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -97458,13 +96548,6 @@ "description": "delete collection of PriorityClass", "operationId": "deleteCollectionPriorityClass", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -97541,13 +96624,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -97577,7 +96653,8 @@ "group": "scheduling.k8s.io", "kind": "PriorityClass", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -98225,13 +97302,6 @@ "description": "delete collection of PriorityClass", "operationId": "deleteCollectionPriorityClass", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -98308,13 +97378,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -98344,7 +97407,8 @@ "group": "scheduling.k8s.io", "kind": "PriorityClass", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -98992,13 +98056,6 @@ "description": "delete collection of PriorityClass", "operationId": "deleteCollectionPriorityClass", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -99075,13 +98132,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -99111,7 +98161,8 @@ "group": "scheduling.k8s.io", "kind": "PriorityClass", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -99792,13 +98843,6 @@ "description": "delete collection of PodPreset", "operationId": "deleteCollectionNamespacedPodPreset", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -99875,13 +98919,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -99911,7 +98948,8 @@ "group": "settings.k8s.io", "kind": "PodPreset", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -100795,13 +99833,6 @@ "description": "delete collection of StorageClass", "operationId": "deleteCollectionStorageClass", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -100878,13 +99909,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -100914,7 +99938,8 @@ "group": "storage.k8s.io", "kind": "StorageClass", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -101387,13 +100412,6 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteCollectionVolumeAttachment", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -101470,13 +100488,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -101506,7 +100517,8 @@ "group": "storage.k8s.io", "kind": "VolumeAttachment", "version": "v1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -102487,13 +101499,6 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteCollectionVolumeAttachment", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -102570,13 +101575,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -102606,7 +101604,8 @@ "group": "storage.k8s.io", "kind": "VolumeAttachment", "version": "v1alpha1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -103254,13 +102253,6 @@ "description": "delete collection of CSIDriver", "operationId": "deleteCollectionCSIDriver", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -103337,13 +102329,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -103373,7 +102358,8 @@ "group": "storage.k8s.io", "kind": "CSIDriver", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -103846,13 +102832,6 @@ "description": "delete collection of CSINode", "operationId": "deleteCollectionCSINode", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -103929,13 +102908,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -103965,7 +102937,8 @@ "group": "storage.k8s.io", "kind": "CSINode", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -104438,13 +103411,6 @@ "description": "delete collection of StorageClass", "operationId": "deleteCollectionStorageClass", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -104521,13 +103487,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -104557,7 +103516,8 @@ "group": "storage.k8s.io", "kind": "StorageClass", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -105030,13 +103990,6 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteCollectionVolumeAttachment", "parameters": [ - { - "description": "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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is beta.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, { "in": "body", "name": "body", @@ -105113,13 +104066,6 @@ "name": "timeoutSeconds", "type": "integer", "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -105149,7 +104095,8 @@ "group": "storage.k8s.io", "kind": "VolumeAttachment", "version": "v1beta1" - } + }, + "x-codegen-request-body-name": "body" }, "get": { "consumes": [ @@ -106279,6 +105226,20 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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.", + "name": "fieldManager", + "in": "query" } ], "produces": [ @@ -106305,7 +105266,7 @@ "schemes": [ "https" ], - "description": "Deletes the specified namespace scoped custom object", + "description": "Delete collection of namespace scoped custom objects", "parameters": [ { "schema": { @@ -106334,6 +105295,13 @@ "type": "string", "name": "propagationPolicy", "description": "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." + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" } ], "produces": [ @@ -106346,7 +105314,7 @@ "consumes": [ "*/*" ], - "operationId": "deleteNamespacedCustomObject" + "operationId": "deleteCollectionNamespacedCustomObject" }, "parameters": [ { @@ -106491,6 +105459,20 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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).", + "name": "fieldManager", + "in": "query" } ], "produces": [ @@ -106517,7 +105499,7 @@ "schemes": [ "https" ], - "description": "Deletes the specified cluster scoped custom object", + "description": "Delete collection of cluster scoped custom objects", "parameters": [ { "schema": { @@ -106546,6 +105528,13 @@ "type": "string", "name": "propagationPolicy", "description": "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." + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" } ], "produces": [ @@ -106558,7 +105547,7 @@ "consumes": [ "*/*" ], - "operationId": "deleteClusterCustomObject" + "operationId": "deleteCollectionClusterCustomObject" }, "parameters": [ { @@ -106701,6 +105690,20 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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.", + "name": "fieldManager", + "in": "query" } ], "produces": [ @@ -106742,6 +105745,27 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "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.", + "name": "force", + "in": "query" } ], "produces": [ @@ -106845,6 +105869,20 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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.", + "name": "fieldManager", + "in": "query" } ], "produces": [ @@ -106884,6 +105922,27 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "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.", + "name": "force", + "in": "query" } ], "produces": [ @@ -106943,6 +106002,13 @@ "type": "string", "name": "propagationPolicy", "description": "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." + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" } ], "produces": [ @@ -107053,6 +106119,20 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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.", + "name": "fieldManager", + "in": "query" } ], "produces": [ @@ -107094,6 +106174,27 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "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.", + "name": "force", + "in": "query" } ], "produces": [ @@ -107107,7 +106208,8 @@ ], "consumes": [ "application/json-patch+json", - "application/merge-patch+json" + "application/merge-patch+json", + "application/apply-patch+yaml" ], "operationId": "patchNamespacedCustomObjectScale" }, @@ -107209,6 +106311,20 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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.", + "name": "fieldManager", + "in": "query" } ], "produces": [ @@ -107250,6 +106366,27 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "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.", + "name": "force", + "in": "query" } ], "produces": [ @@ -107353,6 +106490,20 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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.", + "name": "fieldManager", + "in": "query" } ], "produces": [ @@ -107392,6 +106543,27 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "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.", + "name": "force", + "in": "query" } ], "produces": [ @@ -107451,6 +106623,13 @@ "type": "string", "name": "propagationPolicy", "description": "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." + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" } ], "produces": [ @@ -107554,6 +106733,20 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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.", + "name": "fieldManager", + "in": "query" } ], "produces": [ @@ -107595,6 +106788,27 @@ "required": true, "name": "body", "in": "body" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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", + "name": "dryRun", + "in": "query" + }, + { + "uniqueItems": true, + "type": "string", + "description": "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).", + "name": "fieldManager", + "in": "query" + }, + { + "uniqueItems": true, + "type": "boolean", + "description": "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.", + "name": "force", + "in": "query" } ], "produces": [ @@ -107608,7 +106822,8 @@ ], "consumes": [ "application/json-patch+json", - "application/merge-patch+json" + "application/merge-patch+json", + "application/apply-patch+yaml" ], "operationId": "patchNamespacedCustomObjectStatus" },